@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()
|
static S3CopyObjectOperation.Builder |
builder() |
S3CannedAccessControlList |
cannedAccessControlList()
|
String |
cannedAccessControlListAsString()
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAccessControlGrants()
Returns true if the AccessControlGrants property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasNewObjectTagging()
Returns true if the NewObjectTagging property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
S3MetadataDirective |
metadataDirective()
|
String |
metadataDirectiveAsString()
|
Instant |
modifiedSinceConstraint()
|
S3ObjectMetadata |
newObjectMetadata()
|
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 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()
public final List<S3Grant> accessControlGrants()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAccessControlGrants() to see if a value was sent in this field.
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()
public final boolean hasNewObjectTagging()
public final List<S3Tag> newObjectTagging()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasNewObjectTagging() to see if a value was sent in this field.
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/".
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 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 © 2021. All rights reserved.