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



19177
19178
19179
// File 'service/s3/api.go', line 19177

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

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

SetBucket sets the Bucket field's value.



19206
19207
19208
19209
// File 'service/s3/api.go', line 19206

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.



19219
19220
19221
19222
// File 'service/s3/api.go', line 19219

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.



19225
19226
19227
19228
// File 'service/s3/api.go', line 19225

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



19168
19169
19170
// File 'service/s3/api.go', line 19168

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.



19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
// File 'service/s3/api.go', line 19182

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 }