Struct: s3.PutBucketProtectionConfigurationInput

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"`

Bucket is a required field

ProtectionConfiguration *ProtectionConfiguration `locationName:"ProtectionConfiguration" type:"structure" required:"true"`

ProtectionConfiguration is a required field

_ struct{} `locationName:"PutBucketProtectionConfigurationRequest" type:"structure" payload:"ProtectionConfiguration"`

Method Details

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



19313
19314
19315
// File 'service/s3/api.go', line 19313

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

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

SetBucket sets the Bucket field's value.



19342
19343
19344
19345
// File 'service/s3/api.go', line 19342

func (s *PutBucketProtectionConfigurationInput) SetProtectionConfiguration(v *ProtectionConfiguration) *PutBucketProtectionConfigurationInput

SetProtectionConfiguration sets the ProtectionConfiguration field's value.



19355
19356
19357
19358
// File 'service/s3/api.go', line 19355

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



19304
19305
19306
// File 'service/s3/api.go', line 19304

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

func (s *PutBucketProtectionConfigurationInput) Validate() error

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



19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
// File 'service/s3/api.go', line 19318

func (s *PutBucketProtectionConfigurationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "PutBucketProtectionConfigurationInput"} 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.ProtectionConfiguration == nil { invalidParams.Add(request.NewErrParamRequired("ProtectionConfiguration")) } if s.ProtectionConfiguration != nil { if err := s.ProtectionConfiguration.Validate(); err != nil { invalidParams.AddNested("ProtectionConfiguration", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil }