Struct: s3.GetPublicAccessBlockInput

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

The name of the Amazon S3 bucket whose PublicAccessBlock configuration you want to retrieve.

Bucket is a required field

ExpectedBucketOwner *string `location:"header" locationName:"x-amz-expected-bucket-owner" type:"string"`

Ignored by COS.

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

Method Details

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



14285
14286
14287
// File 'service/s3/api.go', line 14285

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

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

SetBucket sets the Bucket field's value.



14306
14307
14308
14309
// File 'service/s3/api.go', line 14306

func (s *GetPublicAccessBlockInput) SetBucket(v string) *GetPublicAccessBlockInput { s.Bucket = &v return s }

func (s *GetPublicAccessBlockInput) SetExpectedBucketOwner(v string) *GetPublicAccessBlockInput

SetExpectedBucketOwner sets the ExpectedBucketOwner field's value.



14319
14320
14321
14322
// File 'service/s3/api.go', line 14319

func (s *GetPublicAccessBlockInput) SetExpectedBucketOwner(v string) *GetPublicAccessBlockInput { s.ExpectedBucketOwner = &v return s }

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



14276
14277
14278
// File 'service/s3/api.go', line 14276

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

func (s *GetPublicAccessBlockInput) Validate() error

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



14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
// File 'service/s3/api.go', line 14290

func (s *GetPublicAccessBlockInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetPublicAccessBlockInput"} 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 }