Struct: s3.GetBucketLifecycleConfigurationInput

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

Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`

The name of the bucket for which to get the lifecycle information.

Bucket is a required field

ExpectedBucketOwner *string `location:"header" locationName:"x-amz-expected-bucket-owner" type:"string"`

Ignored by COS.

_ struct{} `locationName:"GetBucketLifecycleConfigurationRequest" type:"structure"`

Method Details

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



12176
12177
12178
// File 'service/s3/api.go', line 12176

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

func (s *GetBucketLifecycleConfigurationInput) SetBucket(v string) *GetBucketLifecycleConfigurationInput

SetBucket sets the Bucket field's value.



12197
12198
12199
12200
// File 'service/s3/api.go', line 12197

func (s *GetBucketLifecycleConfigurationInput) SetExpectedBucketOwner(v string) *GetBucketLifecycleConfigurationInput

SetExpectedBucketOwner sets the ExpectedBucketOwner field's value.



12210
12211
12212
12213
// File 'service/s3/api.go', line 12210

func (s *GetBucketLifecycleConfigurationInput) SetExpectedBucketOwner(v string) *GetBucketLifecycleConfigurationInput { s.ExpectedBucketOwner = &v return s }

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



12167
12168
12169
// File 'service/s3/api.go', line 12167

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

func (s *GetBucketLifecycleConfigurationInput) Validate() error

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



12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
// File 'service/s3/api.go', line 12181

func (s *GetBucketLifecycleConfigurationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetBucketLifecycleConfigurationInput"} if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } if s.Bucket != nil && len(*s.Bucket) < 1 { invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil }