Struct: s3.ObjectVersion

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

Overview

The version of an object.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

ETag *string `type:"string"`

The entity tag is an MD5 hash of that version of the object.

IsLatest *bool `type:"boolean"`

Specifies whether the object is (true) or is not (false) the latest version of an object.

Key *string `min:"1" type:"string"`

The object key.

LastModified *time.Time `type:"timestamp"`

Date and time the object was last modified.

Owner *Owner `type:"structure"`

Specifies the owner of the object.

Size *int64 `type:"integer"`

Size in bytes of the object.

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

The class of storage used to store the object.

VersionId *string `type:"string"`

Version ID of an object.

_ struct{} `type:"structure"`

Method Details

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



18485
18486
18487
// File 'service/s3/api.go', line 18485

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

func (s *ObjectVersion) SetETag(v string) *ObjectVersion

SetETag sets the ETag field's value.



18490
18491
18492
18493
// File 'service/s3/api.go', line 18490

func (s *ObjectVersion) SetETag(v string) *ObjectVersion { s.ETag = &v return s }

func (s *ObjectVersion) SetIsLatest(v bool) *ObjectVersion

SetIsLatest sets the IsLatest field's value.



18496
18497
18498
18499
// File 'service/s3/api.go', line 18496

func (s *ObjectVersion) SetIsLatest(v bool) *ObjectVersion { s.IsLatest = &v return s }

func (s *ObjectVersion) SetKey(v string) *ObjectVersion

SetKey sets the Key field's value.



18502
18503
18504
18505
// File 'service/s3/api.go', line 18502

func (s *ObjectVersion) SetKey(v string) *ObjectVersion { s.Key = &v return s }

func (s *ObjectVersion) SetLastModified(v time.Time) *ObjectVersion

SetLastModified sets the LastModified field's value.



18508
18509
18510
18511
// File 'service/s3/api.go', line 18508

func (s *ObjectVersion) SetLastModified(v time.Time) *ObjectVersion { s.LastModified = &v return s }

func (s *ObjectVersion) SetOwner(v *Owner) *ObjectVersion

SetOwner sets the Owner field's value.



18514
18515
18516
18517
// File 'service/s3/api.go', line 18514

func (s *ObjectVersion) SetOwner(v *Owner) *ObjectVersion { s.Owner = v return s }

func (s *ObjectVersion) SetSize(v int64) *ObjectVersion

SetSize sets the Size field's value.



18520
18521
18522
18523
// File 'service/s3/api.go', line 18520

func (s *ObjectVersion) SetSize(v int64) *ObjectVersion { s.Size = &v return s }

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

SetStorageClass sets the StorageClass field's value.



18526
18527
18528
18529
// File 'service/s3/api.go', line 18526

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

func (s *ObjectVersion) SetVersionId(v string) *ObjectVersion

SetVersionId sets the VersionId field's value.



18532
18533
18534
18535
// File 'service/s3/api.go', line 18532

func (s *ObjectVersion) SetVersionId(v string) *ObjectVersion { s.VersionId = &v return s }

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



18476
18477
18478
// File 'service/s3/api.go', line 18476

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