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



10045
10046
10047
// File 'service/s3/api.go', line 10045

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

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

SetBucket sets the Bucket field's value.



10066
10067
10068
10069
// File 'service/s3/api.go', line 10066

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.



10079
10080
10081
10082
// File 'service/s3/api.go', line 10079

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



10036
10037
10038
// File 'service/s3/api.go', line 10036

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.



10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
// File 'service/s3/api.go', line 10050

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 }