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



7777
7778
7779
// File 'service/s3/api.go', line 7777

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

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

SetDays sets the Days field’s value.



7795
7796
7797
7798
// File 'service/s3/api.go', line 7795

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



7768
7769
7770
// File 'service/s3/api.go', line 7768

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.



7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
// File 'service/s3/api.go', line 7782

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 }