Struct: s3.CopyObjectOutput

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

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

CopyObjectResult *CopyObjectResult `type:"structure"`

Container for all response elements.

CopySourceVersionId *string `location:"header" locationName:"x-amz-copy-source-version-id" type:"string"`

Version of the copied object in the destination bucket.

Expiration *string `location:"header" locationName:"x-amz-expiration" type:"string"`

If the object expiration is configured, the response includes this header.

RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"`

If present, indicates that the requester was successfully charged for the request.

SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`

If server-side encryption with a customer-provided encryption key was requested, the response will include this header confirming the encryption algorithm used.

SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`

If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide round-trip message integrity verification of the customer-provided encryption key.

SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"`

If present, specifies the ID of the Key Management Service (KMS) symmetric encryption customer managed key that was used for the object.

SSEKMSKeyId is a sensitive parameter and its value will be replaced with “sensitive” in string returned by CopyObjectOutput’s String and GoString methods.

ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`

The server-side encryption algorithm used when storing this object in Amazon S3 (for example, AES256, aws:kms, aws:kms:dsse).

VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"`

Version ID of the newly created copy.

_ struct{} `type:"structure" payload:"CopyObjectResult"`

Method Details

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



9075
9076
9077
// File 'service/s3/api.go', line 9075

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

func (s *CopyObjectOutput) SetCopyObjectResult(v *CopyObjectResult) *CopyObjectOutput

SetCopyObjectResult sets the CopyObjectResult field’s value.



9080
9081
9082
9083
// File 'service/s3/api.go', line 9080

func (s *CopyObjectOutput) SetCopyObjectResult(v *CopyObjectResult) *CopyObjectOutput { s.CopyObjectResult = v return s }

func (s *CopyObjectOutput) SetCopySourceVersionId(v string) *CopyObjectOutput

SetCopySourceVersionId sets the CopySourceVersionId field’s value.



9086
9087
9088
9089
// File 'service/s3/api.go', line 9086

func (s *CopyObjectOutput) SetCopySourceVersionId(v string) *CopyObjectOutput { s.CopySourceVersionId = &v return s }

func (s *CopyObjectOutput) SetExpiration(v string) *CopyObjectOutput

SetExpiration sets the Expiration field’s value.



9092
9093
9094
9095
// File 'service/s3/api.go', line 9092

func (s *CopyObjectOutput) SetExpiration(v string) *CopyObjectOutput { s.Expiration = &v return s }

func (s *CopyObjectOutput) SetRequestCharged(v string) *CopyObjectOutput

SetRequestCharged sets the RequestCharged field’s value.



9098
9099
9100
9101
// File 'service/s3/api.go', line 9098

func (s *CopyObjectOutput) SetRequestCharged(v string) *CopyObjectOutput { s.RequestCharged = &v return s }

func (s *CopyObjectOutput) SetServerSideEncryption(v string) *CopyObjectOutput

SetServerSideEncryption sets the ServerSideEncryption field’s value.



9122
9123
9124
9125
// File 'service/s3/api.go', line 9122

func (s *CopyObjectOutput) SetServerSideEncryption(v string) *CopyObjectOutput { s.ServerSideEncryption = &v return s }

func (s *CopyObjectOutput) SetSSECustomerAlgorithm(v string) *CopyObjectOutput

SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field’s value.



9104
9105
9106
9107
// File 'service/s3/api.go', line 9104

func (s *CopyObjectOutput) SetSSECustomerAlgorithm(v string) *CopyObjectOutput { s.SSECustomerAlgorithm = &v return s }

func (s *CopyObjectOutput) SetSSECustomerKeyMD5(v string) *CopyObjectOutput

SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field’s value.



9110
9111
9112
9113
// File 'service/s3/api.go', line 9110

func (s *CopyObjectOutput) SetSSECustomerKeyMD5(v string) *CopyObjectOutput { s.SSECustomerKeyMD5 = &v return s }

func (s *CopyObjectOutput) SetSSEKMSKeyId(v string) *CopyObjectOutput

SetSSEKMSKeyId sets the SSEKMSKeyId field’s value.



9116
9117
9118
9119
// File 'service/s3/api.go', line 9116

func (s *CopyObjectOutput) SetSSEKMSKeyId(v string) *CopyObjectOutput { s.SSEKMSKeyId = &v return s }

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

SetVersionId sets the VersionId field’s value.



9128
9129
9130
9131
// File 'service/s3/api.go', line 9128

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

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



9066
9067
9068
// File 'service/s3/api.go', line 9066

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