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



22783
22784
22785
// File 'service/s3/api.go', line 22783

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

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

SetDate sets the Date field’s value.



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

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.



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

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.



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

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



22774
22775
22776
// File 'service/s3/api.go', line 22774

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