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



7670
7671
7672
// File 'service/s3/api.go', line 7670

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

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

SetDays sets the Days field's value.



7688
7689
7690
7691
// File 'service/s3/api.go', line 7688

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



7661
7662
7663
// File 'service/s3/api.go', line 7661

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.



7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
// File 'service/s3/api.go', line 7675

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 }