Struct: s3.BucketProtectionDefaultRetention

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



7733
7734
7735
// File 'service/s3/api.go', line 7733

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

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

SetDays sets the Days field’s value.



7751
7752
7753
7754
// File 'service/s3/api.go', line 7751

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



7724
7725
7726
// File 'service/s3/api.go', line 7724

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

func (s *BucketProtectionDefaultRetention) Validate() error

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



7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
// File 'service/s3/api.go', line 7738

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