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



19076
19077
19078
// File 'service/s3/api.go', line 19076

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

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

SetBucket sets the Bucket field's value.



19105
19106
19107
19108
// File 'service/s3/api.go', line 19105

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

SetProtectionConfiguration sets the ProtectionConfiguration field's value.



19118
19119
19120
19121
// File 'service/s3/api.go', line 19118

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



19067
19068
19069
// File 'service/s3/api.go', line 19067

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.



19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
// File 'service/s3/api.go', line 19081

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 }