Struct: s3.PutBucketReplicationInput

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 name of the bucket

Bucket is a required field

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

Ignored by COS.

ReplicationConfiguration *ReplicationConfiguration `locationName:"ReplicationConfiguration" type:"structure" required:"true" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`

A container for replication rules. You can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB.

ReplicationConfiguration is a required field

_ struct{} `locationName:"PutBucketReplicationRequest" type:"structure" payload:"ReplicationConfiguration"`

Method Details

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



19414
19415
19416
// File 'service/s3/api.go', line 19414

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

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

SetBucket sets the Bucket field's value.



19443
19444
19445
19446
// File 'service/s3/api.go', line 19443

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

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

SetExpectedBucketOwner sets the ExpectedBucketOwner field's value.



19456
19457
19458
19459
// File 'service/s3/api.go', line 19456

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

func (s *PutBucketReplicationInput) SetReplicationConfiguration(v *ReplicationConfiguration) *PutBucketReplicationInput

SetReplicationConfiguration sets the ReplicationConfiguration field's value.



19462
19463
19464
19465
// File 'service/s3/api.go', line 19462

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



19405
19406
19407
// File 'service/s3/api.go', line 19405

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

func (s *PutBucketReplicationInput) Validate() error

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



19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
// File 'service/s3/api.go', line 19419

func (s *PutBucketReplicationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "PutBucketReplicationInput"} if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } if s.Bucket != nil && len(*s.Bucket) < 1 { invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) } if s.ReplicationConfiguration == nil { invalidParams.Add(request.NewErrParamRequired("ReplicationConfiguration")) } if s.ReplicationConfiguration != nil { if err := s.ReplicationConfiguration.Validate(); err != nil { invalidParams.AddNested("ReplicationConfiguration", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil }