Struct: s3.DeleteBucketLifecycleInput

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 bucket name of the lifecycle to delete.

Bucket is a required field

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

Ignored by COS.

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

Method Details

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



10261
10262
10263
// File 'service/s3/api.go', line 10261

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

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

SetBucket sets the Bucket field’s value.



10282
10283
10284
10285
// File 'service/s3/api.go', line 10282

func (s *DeleteBucketLifecycleInput) SetBucket(v string) *DeleteBucketLifecycleInput { s.Bucket = &v return s }

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

SetExpectedBucketOwner sets the ExpectedBucketOwner field’s value.



10295
10296
10297
10298
// File 'service/s3/api.go', line 10295

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

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



10252
10253
10254
// File 'service/s3/api.go', line 10252

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

func (s *DeleteBucketLifecycleInput) Validate() error

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



10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
// File 'service/s3/api.go', line 10266

func (s *DeleteBucketLifecycleInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteBucketLifecycleInput"} 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 }