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



12473
12474
12475
// File 'service/s3/api.go', line 12473

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

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

SetBucket sets the Bucket field's value.



12494
12495
12496
12497
// File 'service/s3/api.go', line 12494

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



12464
12465
12466
// File 'service/s3/api.go', line 12464

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.



12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
// File 'service/s3/api.go', line 12478

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 }