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



22018
22019
22020
// File 'service/s3/api.go', line 22018

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

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

SetDate sets the Date field's value.



22023
22024
22025
22026
// File 'service/s3/api.go', line 22023

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.



22029
22030
22031
22032
// File 'service/s3/api.go', line 22029

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.



22035
22036
22037
22038
// File 'service/s3/api.go', line 22035

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



22009
22010
22011
// File 'service/s3/api.go', line 22009

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