Struct: s3.Transition

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

Overview

Specifies when an object transitions to a specified storage class. For more information about Amazon S3 lifecycle configuration rules, see Transitioning Objects Using Amazon S3 Lifecycle (docs.aws.amazon.com/AmazonS3/latest/dev/lifecycle-transition-general-considerations.html) in the Amazon S3 User Guide.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

Date *time.Time `type:"timestamp" timestampFormat:"iso8601"`

Indicates when objects are transitioned to the specified storage class. The date value must be in ISO 8601 format. The time is always midnight UTC.

Days *int64 `type:"integer"`

Indicates the number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer.

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

The storage class to which you want the object to transition.

_ struct{} `type:"structure"`

Method Details

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



22787
22788
22789
// File 'service/s3/api.go', line 22787

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

func (s *Transition) SetDate(v time.Time) *Transition

SetDate sets the Date field’s value.



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

func (s *Transition) SetDate(v time.Time) *Transition { s.Date = &v return s }

func (s *Transition) SetDays(v int64) *Transition

SetDays sets the Days field’s value.



22798
22799
22800
22801
// File 'service/s3/api.go', line 22798

func (s *Transition) SetDays(v int64) *Transition { s.Days = &v return s }

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

SetStorageClass sets the StorageClass field’s value.



22804
22805
22806
22807
// File 'service/s3/api.go', line 22804

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

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



22778
22779
22780
// File 'service/s3/api.go', line 22778

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