Struct: s3.GetBucketReplicationInput

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 for which to get the replication information.

Bucket is a required field

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

Ignored by COS.

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

Method Details

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



12571
12572
12573
// File 'service/s3/api.go', line 12571

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

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

SetBucket sets the Bucket field's value.



12592
12593
12594
12595
// File 'service/s3/api.go', line 12592

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

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

SetExpectedBucketOwner sets the ExpectedBucketOwner field's value.



12605
12606
12607
12608
// File 'service/s3/api.go', line 12605

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

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



12562
12563
12564
// File 'service/s3/api.go', line 12562

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

func (s *GetBucketReplicationInput) Validate() error

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



12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
// File 'service/s3/api.go', line 12576

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