Struct: s3.VersioningConfiguration

import "../ibm-cos-sdk-go/service/s3"

Overview

Describes the versioning state of an Amazon S3 bucket. For more information, see PUT Bucket versioning (docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTVersioningStatus.html) in the Amazon Simple Storage Service API Reference.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

MFADelete *string `locationName:"MfaDelete" type:"string" enum:"MFADelete"`

Specifies whether MFA delete is enabled in the bucket versioning configuration. This element is only returned if the bucket has been configured with MFA delete. If the bucket has never been so configured, this element is not returned.

Status *string `type:"string" enum:"BucketVersioningStatus"`

The versioning state of the bucket.

_ struct{} `type:"structure"`

Method Details

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



22802
22803
22804
// File 'service/s3/api.go', line 22802

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

func (s *VersioningConfiguration) SetMFADelete(v string) *VersioningConfiguration

SetMFADelete sets the MFADelete field's value.



22807
22808
22809
22810
// File 'service/s3/api.go', line 22807

func (s *VersioningConfiguration) SetMFADelete(v string) *VersioningConfiguration { s.MFADelete = &v return s }

func (s *VersioningConfiguration) SetStatus(v string) *VersioningConfiguration

SetStatus sets the Status field's value.



22813
22814
22815
22816
// File 'service/s3/api.go', line 22813

func (s *VersioningConfiguration) SetStatus(v string) *VersioningConfiguration { s.Status = &v return s }

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



22793
22794
22795
// File 'service/s3/api.go', line 22793

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