@Generated(value="software.amazon.awssdk:codegen") public final class S3CopyObjectOperation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<S3CopyObjectOperation.Builder,S3CopyObjectOperation>
Contains the configuration parameters for a PUT Copy object operation. S3 Batch Operations passes every object to the underlying PUT Copy object API. For more information about the parameters for this operation, see PUT Object - Copy.
| Modifier and Type | Class and Description |
|---|---|
static interface |
S3CopyObjectOperation.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<S3Grant> |
accessControlGrants()
|
Boolean |
bucketKeyEnabled()
Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using
Amazon Web Services KMS (SSE-KMS).
|
static S3CopyObjectOperation.Builder |
builder() |
S3CannedAccessControlList |
cannedAccessControlList()
|
String |
cannedAccessControlListAsString()
|
S3ChecksumAlgorithm |
checksumAlgorithm()
Indicates the algorithm you want Amazon S3 to use to create the checksum.
|
String |
checksumAlgorithmAsString()
Indicates the algorithm you want Amazon S3 to use to create the checksum.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAccessControlGrants()
For responses, this returns true if the service returned a value for the AccessControlGrants property.
|
int |
hashCode() |
boolean |
hasNewObjectTagging()
For responses, this returns true if the service returned a value for the NewObjectTagging property.
|
S3MetadataDirective |
metadataDirective()
|
String |
metadataDirectiveAsString()
|
Instant |
modifiedSinceConstraint()
|
S3ObjectMetadata |
newObjectMetadata()
If you don't provide this parameter, Amazon S3 copies all the metadata from the original objects.
|
List<S3Tag> |
newObjectTagging()
|
S3ObjectLockLegalHoldStatus |
objectLockLegalHoldStatus()
The legal hold status to be applied to all objects in the Batch Operations job.
|
String |
objectLockLegalHoldStatusAsString()
The legal hold status to be applied to all objects in the Batch Operations job.
|
S3ObjectLockMode |
objectLockMode()
The retention mode to be applied to all objects in the Batch Operations job.
|
String |
objectLockModeAsString()
The retention mode to be applied to all objects in the Batch Operations job.
|
Instant |
objectLockRetainUntilDate()
The date when the applied object retention configuration expires on all objects in the Batch Operations job.
|
String |
redirectLocation()
Specifies an optional metadata property for website redirects,
x-amz-website-redirect-location. |
Boolean |
requesterPays()
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends S3CopyObjectOperation.Builder> |
serializableBuilderClass() |
String |
sseAwsKmsKeyId()
|
S3StorageClass |
storageClass()
|
String |
storageClassAsString()
|
String |
targetKeyPrefix()
Specifies the folder prefix into which you would like the objects to be copied.
|
String |
targetResource()
Specifies the destination bucket ARN for the batch copy operation.
|
S3CopyObjectOperation.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Instant |
unModifiedSinceConstraint()
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String targetResource()
Specifies the destination bucket ARN for the batch copy operation. For example, to copy objects to a bucket named
destinationBucket, set the TargetResource property to
arn:aws:s3:::destinationBucket.
destinationBucket, set the TargetResource property to
arn:aws:s3:::destinationBucket.public final S3CannedAccessControlList cannedAccessControlList()
If the service returns an enum value that is not available in the current SDK version,
cannedAccessControlList will return S3CannedAccessControlList.UNKNOWN_TO_SDK_VERSION. The raw
value returned by the service is available from cannedAccessControlListAsString().
S3CannedAccessControlListpublic final String cannedAccessControlListAsString()
If the service returns an enum value that is not available in the current SDK version,
cannedAccessControlList will return S3CannedAccessControlList.UNKNOWN_TO_SDK_VERSION. The raw
value returned by the service is available from cannedAccessControlListAsString().
S3CannedAccessControlListpublic final boolean hasAccessControlGrants()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<S3Grant> accessControlGrants()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAccessControlGrants() method.
public final S3MetadataDirective metadataDirective()
If the service returns an enum value that is not available in the current SDK version, metadataDirective
will return S3MetadataDirective.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from metadataDirectiveAsString().
S3MetadataDirectivepublic final String metadataDirectiveAsString()
If the service returns an enum value that is not available in the current SDK version, metadataDirective
will return S3MetadataDirective.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from metadataDirectiveAsString().
S3MetadataDirectivepublic final Instant modifiedSinceConstraint()
public final S3ObjectMetadata newObjectMetadata()
If you don't provide this parameter, Amazon S3 copies all the metadata from the original objects. If you specify an empty set, the new objects will have no tags. Otherwise, Amazon S3 assigns the supplied tags to the new objects.
public final boolean hasNewObjectTagging()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<S3Tag> newObjectTagging()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasNewObjectTagging() method.
public final String redirectLocation()
Specifies an optional metadata property for website redirects, x-amz-website-redirect-location.
Allows webpage redirects if the object is accessed through a website endpoint.
x-amz-website-redirect-location. Allows webpage redirects if the object is accessed through
a website endpoint.public final Boolean requesterPays()
public final S3StorageClass storageClass()
If the service returns an enum value that is not available in the current SDK version, storageClass will
return S3StorageClass.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
storageClassAsString().
S3StorageClasspublic final String storageClassAsString()
If the service returns an enum value that is not available in the current SDK version, storageClass will
return S3StorageClass.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
storageClassAsString().
S3StorageClasspublic final Instant unModifiedSinceConstraint()
public final String sseAwsKmsKeyId()
public final String targetKeyPrefix()
Specifies the folder prefix into which you would like the objects to be copied. For example, to copy objects into
a folder named Folder1 in the destination bucket, set the TargetKeyPrefix to Folder1.
Folder1 in the destination bucket, set the TargetKeyPrefix to
Folder1.public final S3ObjectLockLegalHoldStatus objectLockLegalHoldStatus()
The legal hold status to be applied to all objects in the Batch Operations job.
If the service returns an enum value that is not available in the current SDK version,
objectLockLegalHoldStatus will return S3ObjectLockLegalHoldStatus.UNKNOWN_TO_SDK_VERSION. The
raw value returned by the service is available from objectLockLegalHoldStatusAsString().
S3ObjectLockLegalHoldStatuspublic final String objectLockLegalHoldStatusAsString()
The legal hold status to be applied to all objects in the Batch Operations job.
If the service returns an enum value that is not available in the current SDK version,
objectLockLegalHoldStatus will return S3ObjectLockLegalHoldStatus.UNKNOWN_TO_SDK_VERSION. The
raw value returned by the service is available from objectLockLegalHoldStatusAsString().
S3ObjectLockLegalHoldStatuspublic final S3ObjectLockMode objectLockMode()
The retention mode to be applied to all objects in the Batch Operations job.
If the service returns an enum value that is not available in the current SDK version, objectLockMode
will return S3ObjectLockMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from objectLockModeAsString().
S3ObjectLockModepublic final String objectLockModeAsString()
The retention mode to be applied to all objects in the Batch Operations job.
If the service returns an enum value that is not available in the current SDK version, objectLockMode
will return S3ObjectLockMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from objectLockModeAsString().
S3ObjectLockModepublic final Instant objectLockRetainUntilDate()
The date when the applied object retention configuration expires on all objects in the Batch Operations job.
public final Boolean bucketKeyEnabled()
Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using
Amazon Web Services KMS (SSE-KMS). Setting this header to true causes Amazon S3 to use an S3 Bucket
Key for object encryption with SSE-KMS.
Specifying this header with an object action doesn’t affect bucket-level settings for S3 Bucket Key.
true causes Amazon S3 to use
an S3 Bucket Key for object encryption with SSE-KMS.
Specifying this header with an object action doesn’t affect bucket-level settings for S3 Bucket Key.
public final S3ChecksumAlgorithm checksumAlgorithm()
Indicates the algorithm you want Amazon S3 to use to create the checksum. For more information see Checking object integrity in the Amazon S3 User Guide.
If the service returns an enum value that is not available in the current SDK version, checksumAlgorithm
will return S3ChecksumAlgorithm.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from checksumAlgorithmAsString().
S3ChecksumAlgorithmpublic final String checksumAlgorithmAsString()
Indicates the algorithm you want Amazon S3 to use to create the checksum. For more information see Checking object integrity in the Amazon S3 User Guide.
If the service returns an enum value that is not available in the current SDK version, checksumAlgorithm
will return S3ChecksumAlgorithm.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from checksumAlgorithmAsString().
S3ChecksumAlgorithmpublic S3CopyObjectOperation.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<S3CopyObjectOperation.Builder,S3CopyObjectOperation>public static S3CopyObjectOperation.Builder builder()
public static Class<? extends S3CopyObjectOperation.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.