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



12668
12669
12670
// File 'service/s3/api.go', line 12668

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

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

SetBucket sets the Bucket field's value.



12689
12690
12691
12692
// File 'service/s3/api.go', line 12689

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.



12702
12703
12704
12705
// File 'service/s3/api.go', line 12702

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



12659
12660
12661
// File 'service/s3/api.go', line 12659

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.



12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
// File 'service/s3/api.go', line 12673

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 }