Struct: s3.DeleteBucketInput

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"`

Specifies the bucket being deleted.

Bucket is a required field

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

Ignored by COS.

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

Method Details

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



10196
10197
10198
// File 'service/s3/api.go', line 10196

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

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

SetBucket sets the Bucket field’s value.



10217
10218
10219
10220
// File 'service/s3/api.go', line 10217

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

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

SetExpectedBucketOwner sets the ExpectedBucketOwner field’s value.



10230
10231
10232
10233
// File 'service/s3/api.go', line 10230

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

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



10187
10188
10189
// File 'service/s3/api.go', line 10187

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

func (s *DeleteBucketInput) Validate() error

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



10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
// File 'service/s3/api.go', line 10201

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