Struct: s3.BucketProtectionMaximumRetention

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 BucketProtectionMaximumRetention) 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”.



7626
7627
7628
// File 'service/s3/api.go', line 7626

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

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

SetDays sets the Days field's value.



7644
7645
7646
7647
// File 'service/s3/api.go', line 7644

func (s BucketProtectionMaximumRetention) 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”.



7617
7618
7619
// File 'service/s3/api.go', line 7617

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

func (s *BucketProtectionMaximumRetention) Validate() error

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



7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
// File 'service/s3/api.go', line 7631

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