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



10370
10371
10372
// File 'service/s3/api.go', line 10370

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

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

SetBucket sets the Bucket field’s value.



10391
10392
10393
10394
// File 'service/s3/api.go', line 10391

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.



10404
10405
10406
10407
// File 'service/s3/api.go', line 10404

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



10361
10362
10363
// File 'service/s3/api.go', line 10361

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.



10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
// File 'service/s3/api.go', line 10375

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 }