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



7582
7583
7584
// File 'service/s3/api.go', line 7582

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

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

SetDays sets the Days field's value.



7600
7601
7602
7603
// File 'service/s3/api.go', line 7600

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



7573
7574
7575
// File 'service/s3/api.go', line 7573

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.



7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
// File 'service/s3/api.go', line 7587

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 }