Struct: s3.NoncurrentVersionTransition

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

Overview

Container for the transition rule that describes when noncurrent objects transition to the STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, or DEEP_ARCHIVE storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to the STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, or DEEP_ARCHIVE storage class at a specific period in the object’s lifetime.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

NewerNoncurrentVersions *int64 `type:"integer"`

NoncurrentDays *int64 `type:"integer"`

Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action. For information about the noncurrent days calculations, see How Amazon S3 Calculates How Long an Object Has Been Noncurrent (docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations) in the Amazon S3 User Guide.

StorageClass *string `type:"string" enum:"TransitionStorageClass"`

The class of storage used to store the object.

_ struct{} `type:"structure"`

Method Details

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



18487
18488
18489
// File 'service/s3/api.go', line 18487

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

func (s *NoncurrentVersionTransition) SetNewerNoncurrentVersions(v int64) *NoncurrentVersionTransition

SetNewerNoncurrentVersions sets the NewerNoncurrentVersions field’s value.



18492
18493
18494
18495
// File 'service/s3/api.go', line 18492

func (s *NoncurrentVersionTransition) SetNewerNoncurrentVersions(v int64) *NoncurrentVersionTransition { s.NewerNoncurrentVersions = &v return s }

func (s *NoncurrentVersionTransition) SetNoncurrentDays(v int64) *NoncurrentVersionTransition

SetNoncurrentDays sets the NoncurrentDays field’s value.



18498
18499
18500
18501
// File 'service/s3/api.go', line 18498

func (s *NoncurrentVersionTransition) SetNoncurrentDays(v int64) *NoncurrentVersionTransition { s.NoncurrentDays = &v return s }

func (s *NoncurrentVersionTransition) SetStorageClass(v string) *NoncurrentVersionTransition

SetStorageClass sets the StorageClass field’s value.



18504
18505
18506
18507
// File 'service/s3/api.go', line 18504

func (s *NoncurrentVersionTransition) SetStorageClass(v string) *NoncurrentVersionTransition { s.StorageClass = &v return s }

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



18478
18479
18480
// File 'service/s3/api.go', line 18478

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