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



12722
12723
12724
// File 'service/s3/api.go', line 12722

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

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

SetBucket sets the Bucket field’s value.



12743
12744
12745
12746
// File 'service/s3/api.go', line 12743

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.



12756
12757
12758
12759
// File 'service/s3/api.go', line 12756

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



12713
12714
12715
// File 'service/s3/api.go', line 12713

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.



12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
// File 'service/s3/api.go', line 12727

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 }