Struct: s3.GetBucketVersioningInput

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 bucket for which to get the versioning information.

Bucket is a required field

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

Ignored by COS.

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

Method Details

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



12819
12820
12821
// File 'service/s3/api.go', line 12819

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

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

SetBucket sets the Bucket field’s value.



12840
12841
12842
12843
// File 'service/s3/api.go', line 12840

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

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

SetExpectedBucketOwner sets the ExpectedBucketOwner field’s value.



12853
12854
12855
12856
// File 'service/s3/api.go', line 12853

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

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



12810
12811
12812
// File 'service/s3/api.go', line 12810

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

func (s *GetBucketVersioningInput) Validate() error

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



12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
// File 'service/s3/api.go', line 12824

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