Struct: s3.CopyObjectInput

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

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"ObjectCannedACL"`

The canned ACL to apply to the object.

This action is not supported by Amazon S3 on Outposts.

Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`

The name of the destination bucket.

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points (docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the Amazon S3 User Guide.

When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see What is S3 on Outposts? (docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the Amazon S3 User Guide.

Bucket is a required field

CacheControl *string `location:"header" locationName:"Cache-Control" type:"string"`

Specifies caching behavior along the request/reply chain.

ContentDisposition *string `location:"header" locationName:"Content-Disposition" type:"string"`

Specifies presentational information for the object.

ContentEncoding *string `location:"header" locationName:"Content-Encoding" type:"string"`

Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.

ContentLanguage *string `location:"header" locationName:"Content-Language" type:"string"`

The language the content is in.

ContentType *string `location:"header" locationName:"Content-Type" type:"string"`

A standard MIME type describing the format of the object data.

CopySource *string `location:"header" locationName:"x-amz-copy-source" type:"string" required:"true"`

Specifies the source object for the copy operation. You specify the value in one of two formats, depending on whether you want to access the source object through an access point (docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html):

  • For objects not accessed through an access point, specify the name of the source bucket and the key of the source object, separated by a slash (/). For example, to copy the object reports/january.pdf from the bucket awsexamplebucket, use awsexamplebucket/reports/january.pdf. The value must be URL encoded.

  • For objects accessed through access points, specify the Amazon Resource Name (ARN) of the object as accessed through the access point, in the format arn:aws:s3:<Region>:<account-id>:accesspoint/<access-point-name>/object/<key>. For example, to copy the object reports/january.pdf through access point my-access-point owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3:us-west-2:123456789012:accesspoint/my-access-point/object/reports/january.pdf. The value must be URL encoded. Amazon S3 supports copy operations using access points only when the source and destination buckets are in the same AWS Region. Alternatively, for objects accessed through Amazon S3 on Outposts, specify the ARN of the object as accessed in the format arn:aws:s3-outposts:<Region>:<account-id>:outpost/<outpost-id>/object/<key>. For example, to copy the object reports/january.pdf through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/object/reports/january.pdf. The value must be URL encoded.

To copy a specific version of an object, append ?versionId=<version-id> to the value (for example, awsexamplebucket/reports/january.pdf?versionId=QUpfdndhfd8438MNFDN93jdnJFkdmqnh893). If you don’t specify a version ID, Amazon S3 copies the latest version of the source object.

CopySource is a required field

CopySourceIfMatch *string `location:"header" locationName:"x-amz-copy-source-if-match" type:"string"`

Copies the object if its entity tag (ETag) matches the specified tag.

CopySourceIfModifiedSince *time.Time `location:"header" locationName:"x-amz-copy-source-if-modified-since" type:"timestamp"`

Copies the object if it has been modified since the specified time.

CopySourceIfNoneMatch *string `location:"header" locationName:"x-amz-copy-source-if-none-match" type:"string"`

Copies the object if its entity tag (ETag) is different than the specified ETag.

CopySourceIfUnmodifiedSince *time.Time `location:"header" locationName:"x-amz-copy-source-if-unmodified-since" type:"timestamp"`

Copies the object if it hasn’t been modified since the specified time.

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

Specifies the algorithm to use when decrypting the source object (for example, AES256).

CopySourceSSECustomerKey *string `marshal-as:"blob" location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-key" type:"string" sensitive:"true"`

Specifies the customer-provided encryption key for Amazon S3 to use to decrypt the source object. The encryption key provided in this header must be one that was used when the source object was created.

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

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

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.

Expires *time.Time `location:"header" locationName:"Expires" type:"timestamp"`

The date and time at which the object is no longer cacheable.

GrantFullControl *string `location:"header" locationName:"x-amz-grant-full-control" type:"string"`

Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.

This action is not supported by Amazon S3 on Outposts.

GrantRead *string `location:"header" locationName:"x-amz-grant-read" type:"string"`

Allows grantee to read the object data and its metadata.

This action is not supported by Amazon S3 on Outposts.

GrantReadACP *string `location:"header" locationName:"x-amz-grant-read-acp" type:"string"`

Allows grantee to read the object ACL.

This action is not supported by Amazon S3 on Outposts.

GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"`

Allows grantee to write the ACL for the applicable object.

This action is not supported by Amazon S3 on Outposts.

Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`

The key of the destination object.

Key is a required field

Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"`

A map of metadata to store with the object in S3.

MetadataDirective *string `location:"header" locationName:"x-amz-metadata-directive" type:"string" enum:"MetadataDirective"`

Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request.

ObjectLockLegalHoldStatus *string `location:"header" locationName:"x-amz-object-lock-legal-hold" type:"string" enum:"ObjectLockLegalHoldStatus"`

Specifies whether you want to apply a Legal Hold to the copied object.

ObjectLockMode *string `location:"header" locationName:"x-amz-object-lock-mode" type:"string" enum:"ObjectLockMode"`

The Object Lock mode that you want to apply to the copied object.

ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"`

The date and time when you want the copied object’s Object Lock to expire.

RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`

Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. If either the source or destination Amazon S3 bucket has Requester Pays enabled, the requester will pay for corresponding charges to copy the object. For information about downloading objects from Requester Pays buckets, see Downloading Objects in Requester Pays Buckets (docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) in the Amazon S3 User Guide.

RetentionDirective *string `location:"header" locationName:"Retention-Directive" type:"string" enum:"RetentionDirective"`

This header controls how the Protection state of the source object is copied to the destination object.If copied, the retention period and all legal holds are copied onto the new object. The legal hold date’s is set to the date of the copy.

RetentionExpirationDate *time.Time `location:"header" locationName:"Retention-Expiration-Date" type:"timestamp"`

Date on which it will be legal to delete or modify the object. This field can only be specified if Retention-Directive is REPLACE. You can only specify this or the Retention-Period header. If both are specified a 400 error will be returned. If neither is specified the bucket’s DefaultRetention period will be used.

RetentionLegalHoldId *string `location:"header" locationName:"Retention-Legal-Hold-ID" type:"string"`

A single legal hold to apply to the object. This field can only be specified if Retention-Directive is REPLACE. A legal hold is a character long string of max length 64. The object cannot be overwritten or deleted until all legal holds associated with the object are removed.

RetentionPeriod *int64 `location:"header" locationName:"Retention-Period" type:"integer"`

Retention period to store on the object in seconds. The object can be neither overwritten nor deleted until the amount of time specified in the retention period has elapsed. If this field and Retention-Expiration-Date are specified a 400 error is returned. If neither is specified the bucket’s DefaultRetention period will be used. 0 is a legal value assuming the bucket’s minimum retention period is also 0.

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

Specifies the algorithm to use to when encrypting the object (for example, AES256).

SSECustomerKey *string `marshal-as:"blob" location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string" sensitive:"true"`

Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side-encryption-customer-algorithm header.

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

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

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.

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

Specifies the KMS ID (Key ID, Key ARN, or Key Alias) to use for object encryption. All GET and PUT requests for an object protected by KMS will fail if they’re not made via SSL or using SigV4. For information about configuring any of the officially supported Amazon Web Services SDKs and Amazon Web Services CLI, see Specifying the Signature Version in Request Authentication (docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version) in the Amazon S3 User Guide.

SSEKMSKeyId is a sensitive parameter and its value will be replaced with “sensitive” in string returned by CopyObjectInput’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).

StorageClass *string `location:"header" locationName:"x-amz-storage-class" type:"string" enum:"StorageClass"`

If the x-amz-storage-class header is not used, the copied object will be stored in the STANDARD Storage Class by default. The STANDARD storage class provides high durability and high availability. Depending on performance needs, you can specify a different Storage Class. Amazon S3 on Outposts only uses the OUTPOSTS Storage Class. For more information, see Storage Classes (docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html) in the Amazon S3 User Guide.

Tagging *string `location:"header" locationName:"x-amz-tagging" type:"string"`

The tag-set for the object destination object this value must be used in conjunction with the TaggingDirective. The tag-set must be encoded as URL Query parameters.

TaggingDirective *string `location:"header" locationName:"x-amz-tagging-directive" type:"string" enum:"TaggingDirective"`

Specifies whether the object tag-set are copied from the source object or replaced with tag-set provided in the request.

WebsiteRedirectLocation *string `location:"header" locationName:"x-amz-website-redirect-location" type:"string"`

If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata. This value is unique to each object and is not copied when using the x-amz-metadata-directive header. Instead, you may opt to provide this header in combination with the directive.

_ struct{} `locationName:"CopyObjectRequest" type:"structure"`

Method Details

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



8729
8730
8731
// File 'service/s3/api.go', line 8729

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

func (s *CopyObjectInput) SetACL(v string) *CopyObjectInput

SetACL sets the ACL field’s value.



8759
8760
8761
8762
// File 'service/s3/api.go', line 8759

func (s *CopyObjectInput) SetACL(v string) *CopyObjectInput { s.ACL = &v return s }

func (s *CopyObjectInput) SetBucket(v string) *CopyObjectInput

SetBucket sets the Bucket field’s value.



8765
8766
8767
8768
// File 'service/s3/api.go', line 8765

func (s *CopyObjectInput) SetBucket(v string) *CopyObjectInput { s.Bucket = &v return s }

func (s *CopyObjectInput) SetCacheControl(v string) *CopyObjectInput

SetCacheControl sets the CacheControl field’s value.



8778
8779
8780
8781
// File 'service/s3/api.go', line 8778

func (s *CopyObjectInput) SetCacheControl(v string) *CopyObjectInput { s.CacheControl = &v return s }

func (s *CopyObjectInput) SetContentDisposition(v string) *CopyObjectInput

SetContentDisposition sets the ContentDisposition field’s value.



8784
8785
8786
8787
// File 'service/s3/api.go', line 8784

func (s *CopyObjectInput) SetContentDisposition(v string) *CopyObjectInput { s.ContentDisposition = &v return s }

func (s *CopyObjectInput) SetContentEncoding(v string) *CopyObjectInput

SetContentEncoding sets the ContentEncoding field’s value.



8790
8791
8792
8793
// File 'service/s3/api.go', line 8790

func (s *CopyObjectInput) SetContentEncoding(v string) *CopyObjectInput { s.ContentEncoding = &v return s }

func (s *CopyObjectInput) SetContentLanguage(v string) *CopyObjectInput

SetContentLanguage sets the ContentLanguage field’s value.



8796
8797
8798
8799
// File 'service/s3/api.go', line 8796

func (s *CopyObjectInput) SetContentLanguage(v string) *CopyObjectInput { s.ContentLanguage = &v return s }

func (s *CopyObjectInput) SetContentType(v string) *CopyObjectInput

SetContentType sets the ContentType field’s value.



8802
8803
8804
8805
// File 'service/s3/api.go', line 8802

func (s *CopyObjectInput) SetContentType(v string) *CopyObjectInput { s.ContentType = &v return s }

func (s *CopyObjectInput) SetCopySource(v string) *CopyObjectInput

SetCopySource sets the CopySource field’s value.



8808
8809
8810
8811
// File 'service/s3/api.go', line 8808

func (s *CopyObjectInput) SetCopySource(v string) *CopyObjectInput { s.CopySource = &v return s }

func (s *CopyObjectInput) SetCopySourceIfMatch(v string) *CopyObjectInput

SetCopySourceIfMatch sets the CopySourceIfMatch field’s value.



8814
8815
8816
8817
// File 'service/s3/api.go', line 8814

func (s *CopyObjectInput) SetCopySourceIfMatch(v string) *CopyObjectInput { s.CopySourceIfMatch = &v return s }

func (s *CopyObjectInput) SetCopySourceIfModifiedSince(v time.Time) *CopyObjectInput

SetCopySourceIfModifiedSince sets the CopySourceIfModifiedSince field’s value.



8820
8821
8822
8823
// File 'service/s3/api.go', line 8820

func (s *CopyObjectInput) SetCopySourceIfModifiedSince(v time.Time) *CopyObjectInput { s.CopySourceIfModifiedSince = &v return s }

func (s *CopyObjectInput) SetCopySourceIfNoneMatch(v string) *CopyObjectInput

SetCopySourceIfNoneMatch sets the CopySourceIfNoneMatch field’s value.



8826
8827
8828
8829
// File 'service/s3/api.go', line 8826

func (s *CopyObjectInput) SetCopySourceIfNoneMatch(v string) *CopyObjectInput { s.CopySourceIfNoneMatch = &v return s }

func (s *CopyObjectInput) SetCopySourceIfUnmodifiedSince(v time.Time) *CopyObjectInput

SetCopySourceIfUnmodifiedSince sets the CopySourceIfUnmodifiedSince field’s value.



8832
8833
8834
8835
// File 'service/s3/api.go', line 8832

func (s *CopyObjectInput) SetCopySourceIfUnmodifiedSince(v time.Time) *CopyObjectInput { s.CopySourceIfUnmodifiedSince = &v return s }

func (s *CopyObjectInput) SetCopySourceSSECustomerAlgorithm(v string) *CopyObjectInput

SetCopySourceSSECustomerAlgorithm sets the CopySourceSSECustomerAlgorithm field’s value.



8838
8839
8840
8841
// File 'service/s3/api.go', line 8838

func (s *CopyObjectInput) SetCopySourceSSECustomerAlgorithm(v string) *CopyObjectInput { s.CopySourceSSECustomerAlgorithm = &v return s }

func (s *CopyObjectInput) SetCopySourceSSECustomerKey(v string) *CopyObjectInput

SetCopySourceSSECustomerKey sets the CopySourceSSECustomerKey field’s value.



8844
8845
8846
8847
// File 'service/s3/api.go', line 8844

func (s *CopyObjectInput) SetCopySourceSSECustomerKey(v string) *CopyObjectInput { s.CopySourceSSECustomerKey = &v return s }

func (s *CopyObjectInput) SetCopySourceSSECustomerKeyMD5(v string) *CopyObjectInput

SetCopySourceSSECustomerKeyMD5 sets the CopySourceSSECustomerKeyMD5 field’s value.



8857
8858
8859
8860
// File 'service/s3/api.go', line 8857

func (s *CopyObjectInput) SetCopySourceSSECustomerKeyMD5(v string) *CopyObjectInput { s.CopySourceSSECustomerKeyMD5 = &v return s }

func (s *CopyObjectInput) SetExpires(v time.Time) *CopyObjectInput

SetExpires sets the Expires field’s value.



8863
8864
8865
8866
// File 'service/s3/api.go', line 8863

func (s *CopyObjectInput) SetExpires(v time.Time) *CopyObjectInput { s.Expires = &v return s }

func (s *CopyObjectInput) SetGrantFullControl(v string) *CopyObjectInput

SetGrantFullControl sets the GrantFullControl field’s value.



8869
8870
8871
8872
// File 'service/s3/api.go', line 8869

func (s *CopyObjectInput) SetGrantFullControl(v string) *CopyObjectInput { s.GrantFullControl = &v return s }

func (s *CopyObjectInput) SetGrantRead(v string) *CopyObjectInput

SetGrantRead sets the GrantRead field’s value.



8875
8876
8877
8878
// File 'service/s3/api.go', line 8875

func (s *CopyObjectInput) SetGrantRead(v string) *CopyObjectInput { s.GrantRead = &v return s }

func (s *CopyObjectInput) SetGrantReadACP(v string) *CopyObjectInput

SetGrantReadACP sets the GrantReadACP field’s value.



8881
8882
8883
8884
// File 'service/s3/api.go', line 8881

func (s *CopyObjectInput) SetGrantReadACP(v string) *CopyObjectInput { s.GrantReadACP = &v return s }

func (s *CopyObjectInput) SetGrantWriteACP(v string) *CopyObjectInput

SetGrantWriteACP sets the GrantWriteACP field’s value.



8887
8888
8889
8890
// File 'service/s3/api.go', line 8887

func (s *CopyObjectInput) SetGrantWriteACP(v string) *CopyObjectInput { s.GrantWriteACP = &v return s }

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

SetKey sets the Key field’s value.



8893
8894
8895
8896
// File 'service/s3/api.go', line 8893

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

func (s *CopyObjectInput) SetMetadata(v map[string]*string) *CopyObjectInput

SetMetadata sets the Metadata field’s value.



8899
8900
8901
8902
// File 'service/s3/api.go', line 8899

func (s *CopyObjectInput) SetMetadata(v map[string]*string) *CopyObjectInput { s.Metadata = v return s }

func (s *CopyObjectInput) SetMetadataDirective(v string) *CopyObjectInput

SetMetadataDirective sets the MetadataDirective field’s value.



8905
8906
8907
8908
// File 'service/s3/api.go', line 8905

func (s *CopyObjectInput) SetMetadataDirective(v string) *CopyObjectInput { s.MetadataDirective = &v return s }

func (s *CopyObjectInput) SetObjectLockLegalHoldStatus(v string) *CopyObjectInput

SetObjectLockLegalHoldStatus sets the ObjectLockLegalHoldStatus field’s value.



8911
8912
8913
8914
// File 'service/s3/api.go', line 8911

func (s *CopyObjectInput) SetObjectLockLegalHoldStatus(v string) *CopyObjectInput { s.ObjectLockLegalHoldStatus = &v return s }

func (s *CopyObjectInput) SetObjectLockMode(v string) *CopyObjectInput

SetObjectLockMode sets the ObjectLockMode field’s value.



8917
8918
8919
8920
// File 'service/s3/api.go', line 8917

func (s *CopyObjectInput) SetObjectLockMode(v string) *CopyObjectInput { s.ObjectLockMode = &v return s }

func (s *CopyObjectInput) SetObjectLockRetainUntilDate(v time.Time) *CopyObjectInput

SetObjectLockRetainUntilDate sets the ObjectLockRetainUntilDate field’s value.



8923
8924
8925
8926
// File 'service/s3/api.go', line 8923

func (s *CopyObjectInput) SetObjectLockRetainUntilDate(v time.Time) *CopyObjectInput { s.ObjectLockRetainUntilDate = &v return s }

func (s *CopyObjectInput) SetRequestPayer(v string) *CopyObjectInput

SetRequestPayer sets the RequestPayer field’s value.



8929
8930
8931
8932
// File 'service/s3/api.go', line 8929

func (s *CopyObjectInput) SetRequestPayer(v string) *CopyObjectInput { s.RequestPayer = &v return s }

func (s *CopyObjectInput) SetRetentionDirective(v string) *CopyObjectInput

SetRetentionDirective sets the RetentionDirective field’s value.



8935
8936
8937
8938
// File 'service/s3/api.go', line 8935

func (s *CopyObjectInput) SetRetentionDirective(v string) *CopyObjectInput { s.RetentionDirective = &v return s }

func (s *CopyObjectInput) SetRetentionExpirationDate(v time.Time) *CopyObjectInput

SetRetentionExpirationDate sets the RetentionExpirationDate field’s value.



8941
8942
8943
8944
// File 'service/s3/api.go', line 8941

func (s *CopyObjectInput) SetRetentionExpirationDate(v time.Time) *CopyObjectInput { s.RetentionExpirationDate = &v return s }

func (s *CopyObjectInput) SetRetentionLegalHoldId(v string) *CopyObjectInput

SetRetentionLegalHoldId sets the RetentionLegalHoldId field’s value.



8947
8948
8949
8950
// File 'service/s3/api.go', line 8947

func (s *CopyObjectInput) SetRetentionLegalHoldId(v string) *CopyObjectInput { s.RetentionLegalHoldId = &v return s }

func (s *CopyObjectInput) SetRetentionPeriod(v int64) *CopyObjectInput

SetRetentionPeriod sets the RetentionPeriod field’s value.



8953
8954
8955
8956
// File 'service/s3/api.go', line 8953

func (s *CopyObjectInput) SetRetentionPeriod(v int64) *CopyObjectInput { s.RetentionPeriod = &v return s }

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

SetServerSideEncryption sets the ServerSideEncryption field’s value.



8990
8991
8992
8993
// File 'service/s3/api.go', line 8990

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

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

SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field’s value.



8959
8960
8961
8962
// File 'service/s3/api.go', line 8959

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

func (s *CopyObjectInput) SetSSECustomerKey(v string) *CopyObjectInput

SetSSECustomerKey sets the SSECustomerKey field’s value.



8965
8966
8967
8968
// File 'service/s3/api.go', line 8965

func (s *CopyObjectInput) SetSSECustomerKey(v string) *CopyObjectInput { s.SSECustomerKey = &v return s }

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

SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field’s value.



8978
8979
8980
8981
// File 'service/s3/api.go', line 8978

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

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

SetSSEKMSKeyId sets the SSEKMSKeyId field’s value.



8984
8985
8986
8987
// File 'service/s3/api.go', line 8984

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

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

SetStorageClass sets the StorageClass field’s value.



8996
8997
8998
8999
// File 'service/s3/api.go', line 8996

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

func (s *CopyObjectInput) SetTagging(v string) *CopyObjectInput

SetTagging sets the Tagging field’s value.



9002
9003
9004
9005
// File 'service/s3/api.go', line 9002

func (s *CopyObjectInput) SetTagging(v string) *CopyObjectInput { s.Tagging = &v return s }

func (s *CopyObjectInput) SetTaggingDirective(v string) *CopyObjectInput

SetTaggingDirective sets the TaggingDirective field’s value.



9008
9009
9010
9011
// File 'service/s3/api.go', line 9008

func (s *CopyObjectInput) SetTaggingDirective(v string) *CopyObjectInput { s.TaggingDirective = &v return s }

func (s *CopyObjectInput) SetWebsiteRedirectLocation(v string) *CopyObjectInput

SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field’s value.



9014
9015
9016
9017
// File 'service/s3/api.go', line 9014

func (s *CopyObjectInput) SetWebsiteRedirectLocation(v string) *CopyObjectInput { s.WebsiteRedirectLocation = &v return s }

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



8720
8721
8722
// File 'service/s3/api.go', line 8720

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

func (s *CopyObjectInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.



8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
// File 'service/s3/api.go', line 8734

func (s *CopyObjectInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CopyObjectInput"} if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } if s.Bucket != nil && len(*s.Bucket) < 1 { invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) } if s.CopySource == nil { invalidParams.Add(request.NewErrParamRequired("CopySource")) } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } if s.Key != nil && len(*s.Key) < 1 { invalidParams.Add(request.NewErrParamMinLen("Key", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil }