Struct: s3.Part

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

Overview

Container for elements related to a part.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

ETag *string `type:"string"`

Entity tag returned when the part was uploaded.

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

Date and time at which the part was uploaded.

PartNumber *int64 `type:"integer"`

Part number identifying the part. This is a positive integer between 1 and 10,000.

Size *int64 `type:"integer"`

Size in bytes of the uploaded part data.

_ struct{} `type:"structure"`

Method Details

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



18610
18611
18612
// File 'service/s3/api.go', line 18610

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

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

SetETag sets the ETag field's value.



18615
18616
18617
18618
// File 'service/s3/api.go', line 18615

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

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

SetLastModified sets the LastModified field's value.



18621
18622
18623
18624
// File 'service/s3/api.go', line 18621

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

func (s *Part) SetPartNumber(v int64) *Part

SetPartNumber sets the PartNumber field's value.



18627
18628
18629
18630
// File 'service/s3/api.go', line 18627

func (s *Part) SetPartNumber(v int64) *Part { s.PartNumber = &v return s }

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

SetSize sets the Size field's value.



18633
18634
18635
18636
// File 'service/s3/api.go', line 18633

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

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



18601
18602
18603
// File 'service/s3/api.go', line 18601

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