Struct: s3.DeleteBucketReplicationInput

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.

Bucket is a required field

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

Ignored by COS.

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

Method Details

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



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

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

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

SetBucket sets the Bucket field's value.



10240
10241
10242
10243
// File 'service/s3/api.go', line 10240

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

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

SetExpectedBucketOwner sets the ExpectedBucketOwner field's value.



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

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

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



10210
10211
10212
// File 'service/s3/api.go', line 10210

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

func (s *DeleteBucketReplicationInput) Validate() error

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



10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
// File 'service/s3/api.go', line 10224

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