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



12327
12328
12329
// File 'service/s3/api.go', line 12327

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

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

SetBucket sets the Bucket field’s value.



12348
12349
12350
12351
// File 'service/s3/api.go', line 12348

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

SetExpectedBucketOwner sets the ExpectedBucketOwner field’s value.



12361
12362
12363
12364
// File 'service/s3/api.go', line 12361

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



12318
12319
12320
// File 'service/s3/api.go', line 12318

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.



12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
// File 'service/s3/api.go', line 12332

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 }