Struct: s3.BucketProtectionMinimumRetention

import "../ibm-cos-sdk-go/service/s3"

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

Days *int64 `type:"integer" required:"true"`

Days is a required field

_ struct{} `type:"structure"`

Method Details

func (s BucketProtectionMinimumRetention) GoString() string

GoString returns the string representation.

API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.



7821
7822
7823
// File 'service/s3/api.go', line 7821

func (s BucketProtectionMinimumRetention) GoString() string { return s.String() }

func (s *BucketProtectionMinimumRetention) SetDays(v int64) *BucketProtectionMinimumRetention

SetDays sets the Days field’s value.



7839
7840
7841
7842
// File 'service/s3/api.go', line 7839

func (s BucketProtectionMinimumRetention) String() string

String returns the string representation.

API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.



7812
7813
7814
// File 'service/s3/api.go', line 7812

func (s BucketProtectionMinimumRetention) String() string { return awsutil.Prettify(s) }

func (s *BucketProtectionMinimumRetention) Validate() error

Validate inspects the fields of the type to determine if they are valid.



7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
// File 'service/s3/api.go', line 7826

func (s *BucketProtectionMinimumRetention) Validate() error { invalidParams := request.ErrInvalidParams{Context: "BucketProtectionMinimumRetention"} if s.Days == nil { invalidParams.Add(request.NewErrParamRequired("Days")) } if invalidParams.Len() > 0 { return invalidParams } return nil }