Struct: s3.GetBucketProtectionConfigurationInput

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

_ struct{} `locationName:"GetBucketProtectionConfigurationRequest" type:"structure"`

Method Details

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



12624
12625
12626
// File 'service/s3/api.go', line 12624

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

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

SetBucket sets the Bucket field’s value.



12645
12646
12647
12648
// File 'service/s3/api.go', line 12645

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



12615
12616
12617
// File 'service/s3/api.go', line 12615

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

func (s *GetBucketProtectionConfigurationInput) Validate() error

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



12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
// File 'service/s3/api.go', line 12629

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