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



23571
23572
23573
// File 'service/s3/api.go', line 23571

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

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

SetMFADelete sets the MFADelete field’s value.



23576
23577
23578
23579
// File 'service/s3/api.go', line 23576

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.



23582
23583
23584
23585
// File 'service/s3/api.go', line 23582

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



23562
23563
23564
// File 'service/s3/api.go', line 23562

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