Java com.amazonaws.services.s3.model CopyObjectRequest fields, constructors, methods, implement or subclass

Example usage for Java com.amazonaws.services.s3.model CopyObjectRequest fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.amazonaws.services.s3.model CopyObjectRequest.

The text is from its open source code.

Constructor

CopyObjectRequest(String sourceBucketName, String sourceKey, String destinationBucketName, String destinationKey)

Constructs with basic options.

CopyObjectRequest(String sourceBucketName, String sourceKey, String sourceVersionId, String destinationBucketName, String destinationKey)

Constructs a new CopyObjectRequest with basic options, providing an S3 version ID identifying the specific version of the source object to copy.

Method

StringgetDestinationBucketName()
Gets the destination bucket name which will contain the new, copied object.
StringgetDestinationKey()
Gets the destination bucket key under which the new, copied object will be stored.
ObjectMetadatagetNewObjectMetadata()
Gets the optional object metadata to set for the new, copied object.
StringgetSourceBucketName()
Gets the name of the bucket containing the source object to be copied.
StringgetSourceKey()
Gets the source bucket key under which the source object to be copied is stored.
SSEAwsKeyManagementParamsgetSSEAwsKeyManagementParams()
Returns the AWS Key Management System parameters used to encrypt the object on server side.
voidsetAccessControlList(AccessControlList accessControlList)
Sets the optional access control list for the new object.
voidsetCannedAccessControlList(CannedAccessControlList cannedACL)
Sets the canned ACL to use for the newly copied object.
voidsetDestinationSSECustomerKey(SSECustomerKey sseKey)
Sets the optional customer-provided server-side encryption key to use to encrypt the destination object being copied.
voidsetMatchingETagConstraints(List eTagList)

Sets the optional list of ETag constraints that, when present, must include a match for the source object's current ETag in order for the copy object request to be executed.

voidsetModifiedSinceConstraint(Date date)

Sets the optional modified constraint that restricts this request to executing only if the source object has been modified after the specified date.

voidsetNewObjectMetadata(ObjectMetadata newObjectMetadata)
Sets the object metadata to use for the new, copied object.
voidsetNonmatchingETagConstraints(List eTagList)

Sets the optional list of ETag constraints that, when present, must not include a match for the source object's current ETag in order for the copy object request to be executed.

voidsetSourceSSECustomerKey(SSECustomerKey sseKey)
Sets the optional customer-provided server-side encryption key to use to decrypt the source object being copied.
voidsetSSEAwsKeyManagementParams(SSEAwsKeyManagementParams params)
Sets the AWS Key Management System parameters used to encrypt the object on server side.
voidsetStorageClass(String storageClass)

Sets the optional Amazon S3 storage class to use when storing the newly copied object.

voidsetStorageClass(StorageClass storageClass)

Sets the optional Amazon S3 storage class to use when storing the newly copied object.

voidsetUnmodifiedSinceConstraint(Date date)

Sets the optional unmodified constraint that restricts this request to executing only if the source object has not been modified after the specified date.

CopyObjectRequestwithAccessControlList(AccessControlList accessControlList)
Sets the optional access control list for the new object.
CopyObjectRequestwithDestinationSSECustomerKey(SSECustomerKey sseKey)
Sets the optional customer-provided server-side encryption key to use to encrypt the destination object being copied, and returns the updated request object so that additional method calls can be chained together.
CopyObjectRequestwithMetadataDirective(String metadataDirective)
Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request.
CopyObjectRequestwithMetadataDirective(MetadataDirective metadataDirective)
Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request.
CopyObjectRequestwithNewObjectMetadata(ObjectMetadata newObjectMetadata)
Sets the object metadata to use for the new, copied object and returns this object, enabling additional method calls to be chained together.
CopyObjectRequestwithSourceSSECustomerKey(SSECustomerKey sseKey)
Sets the optional customer-provided server-side encryption key to use to decrypt the source object being copied, and returns the updated request object so that additional method calls can be chained together.
CopyObjectRequestwithSSEAwsKeyManagementParams(SSEAwsKeyManagementParams sseAwsKeyManagementParams)
Sets the AWS Key Management System parameters used to encrypt the object on server side.