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



19765
19766
19767
// File 'service/s3/api.go', line 19765

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

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

SetBucket sets the Bucket field’s value.



19794
19795
19796
19797
// File 'service/s3/api.go', line 19794

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

SetProtectionConfiguration sets the ProtectionConfiguration field’s value.



19807
19808
19809
19810
// File 'service/s3/api.go', line 19807

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



19756
19757
19758
// File 'service/s3/api.go', line 19756

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.



19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
// File 'service/s3/api.go', line 19770

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 }