com.amazonaws.services.s3.model

## クラス CopyObjectRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.s3.model.CopyObjectRequest

-     public class CopyObjectRequest
      extends AmazonWebServiceRequest

  Provides options for copying an Amazon S3 object from a source location to a new destination.

  All `CopyObjectRequests` must specify a source bucket and key, along with a destination bucket and key. Beyond that, requests also specify:

  - Object metadata for new object,
  - A `CannedAccessControlList` for the new object,
  - Constraints controlling if the copy will be performed or not.
  関連項目:
    `AmazonS3Client.copyObject(String, String, String, String)`, `AmazonS3Client.copyObject(com.amazonaws.services.s3.model.CopyObjectRequest)`, `CopyObjectResult`

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `CopyObjectRequest(java.lang.String sourceBucketName, java.lang.String sourceKey, java.lang.String destinationBucketName, java.lang.String destinationKey)` Constructs a new `com.amazonaws.services.s3.model` with only basic options.
    `CopyObjectRequest(java.lang.String sourceBucketName, java.lang.String sourceKey, java.lang.String sourceVersionId, java.lang.String destinationBucketName, java.lang.String destinationKey)` Constructs a new `CopyObjectRequest` with basic options, providing an S3 version ID identifying the specific version of the source object to copy.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `AccessControlList` | `getAccessControlList()` Returns the optional access control list for the new object.
    `CannedAccessControlList` | `getCannedAccessControlList()` Gets the canned ACL to use for the new, copied object.
    `java.lang.String` | `getDestinationBucketName()` Gets the destination bucket name which will contain the new, copied object.
    `java.lang.String` | `getDestinationKey()` Gets the destination bucket key under which the new, copied object will be stored.
    `java.util.List<java.lang.String>` | `getMatchingETagConstraints()` Gets 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.
    `java.util.Date` | `getModifiedSinceConstraint()` Gets the optional modified constraint that restricts this request to executing only if the source object has been modified after the specified date.
    `ObjectMetadata` | `getNewObjectMetadata()` Gets the optional object metadata to set for the new, copied object.
    `java.util.List<java.lang.String>` | `getNonmatchingETagConstraints()` Gets 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.
    `java.lang.String` | `getRedirectLocation()` Gets the optional redirect location for the newly copied object.
    `java.lang.String` | `getSourceBucketName()` Gets the name of the bucket containing the source object to be copied.
    `java.lang.String` | `getSourceKey()` Gets the source bucket key under which the source object to be copied is stored.
    `java.lang.String` | `getSourceVersionId()` Gets the version ID specifying which version of the source object to copy.
    `java.lang.String` | `getStorageClass()` Gets the optional Amazon S3 storage class to use when storing the newly copied object.
    `java.util.Date` | `getUnmodifiedSinceConstraint()` Gets the optional unmodified constraint that restricts this request to executing only if the source object has not been modified after the specified date.
    `void` | `setAccessControlList(AccessControlList accessControlList)` Sets the optional access control list for the new object.
    `void` | `setCannedAccessControlList(CannedAccessControlList cannedACL)` Sets the canned ACL to use for the newly copied object.
    `void` | `setDestinationBucketName(java.lang.String destinationBucketName)` Sets the destination bucket name which will contain the new, copied object.
    `void` | `setDestinationKey(java.lang.String destinationKey)` Sets the destination bucket key under which the new, copied object will be stored.
    `void` | `setMatchingETagConstraints(java.util.List<java.lang.String> 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.
    `void` | `setModifiedSinceConstraint(java.util.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.
    `void` | `setNewObjectMetadata(ObjectMetadata newObjectMetadata)` Sets the object metadata to use for the new, copied object.
    `void` | `setNonmatchingETagConstraints(java.util.List<java.lang.String> 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.
    `void` | `setRedirectLocation(java.lang.String redirectLocation)` Sets the optional redirect location for the newly copied object.
    `void` | `setSourceBucketName(java.lang.String sourceBucketName)` Sets the name of the bucket containing the source object to be copied.
    `void` | `setSourceKey(java.lang.String sourceKey)` Sets the source bucket key under which the source object to be copied is stored.
    `void` | `setSourceVersionId(java.lang.String sourceVersionId)` Sets the optional version ID specifying which version of the source object to copy.
    `void` | `setStorageClass(StorageClass storageClass)` Sets the optional Amazon S3 storage class to use when storing the newly copied object.
    `void` | `setStorageClass(java.lang.String storageClass)` Sets the optional Amazon S3 storage class to use when storing the newly copied object.
    `void` | `setUnmodifiedSinceConstraint(java.util.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.
    `CopyObjectRequest` | `withAccessControlList(AccessControlList accessControlList)` Sets the optional access control list for the new object.
    `CopyObjectRequest` | `withCannedAccessControlList(CannedAccessControlList cannedACL)` Sets the canned ACL to use for the newly copied object, and returns this `CopyObjectRequest`, enabling additional method calls to be chained together.
    `CopyObjectRequest` | `withDestinationBucketName(java.lang.String destinationBucketName)` Sets the name of the destination bucket which will contain the new, copied object and returns this object, enabling additional method calls to be chained together.
    `CopyObjectRequest` | `withDestinationKey(java.lang.String destinationKey)` Sets the destination bucket key under which the new, copied object will be stored and returns this object, enabling additional method calls can be chained together.
    `CopyObjectRequest` | `withMatchingETagConstraint(java.lang.String eTag)` Adds a single ETag constraint to this request and returns this object, enabling additional method calls to be chained together.
    `CopyObjectRequest` | `withModifiedSinceConstraint(java.util.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.
    `CopyObjectRequest` | `withNewObjectMetadata(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.
    `CopyObjectRequest` | `withNonmatchingETagConstraint(java.lang.String eTag)` Adds a single ETag constraint to this request and returns this object, enabling additional method calls to be chained together.
    `CopyObjectRequest` | `withRedirectLocation(java.lang.String redirectLocation)` Sets the optional redirect location for the newly copied object.Returns this `CopyObjectRequest`, enabling additional method calls to be chained together.
    `CopyObjectRequest` | `withSourceBucketName(java.lang.String sourceBucketName)` Sets the name of the bucket containing the source object to be copied, and returns this object, enabling additional method calls to be chained together.
    `CopyObjectRequest` | `withSourceKey(java.lang.String sourceKey)` Sets the key in the source bucket under which the source object to be copied is stored and returns this object, enabling additional method calls to be chained together.
    `CopyObjectRequest` | `withSourceVersionId(java.lang.String sourceVersionId)` Sets the optional version ID specifying which version of the source object to copy and returns this object, enabling additional method calls to be chained together.
    `CopyObjectRequest` | `withStorageClass(StorageClass storageClass)` Sets the optional Amazon S3 storage class to use when storing the newly copied object and returns this CopyObjectRequest, enabling additional method calls to be chained together.
    `CopyObjectRequest` | `withStorageClass(java.lang.String storageClass)` Sets the optional Amazon S3 storage class to use when storing the newly copied object and returns this `CopyObjectRequest`, enabling additional method calls to be chained together.
    `CopyObjectRequest` | `withUnmodifiedSinceConstraint(java.util.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.

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### CopyObjectRequest

          public CopyObjectRequest(java.lang.String sourceBucketName,
                           java.lang.String sourceKey,
                           java.lang.String destinationBucketName,
                           java.lang.String destinationKey)

      Constructs a new `com.amazonaws.services.s3.model` with only basic options.

      パラメータ:
        `sourceBucketName` - The name of the S3 bucket containing the object to copy.
        `sourceKey` - The source bucket key under which the object to copy is stored.
        `destinationBucketName` - The name of the S3 bucket to which the new object will be copied.
        `destinationKey` - The destination bucket key under which the new object will be copied.
      関連項目:
        `CopyObjectRequest(String, String, String, String, String)`

    - #### CopyObjectRequest

          public CopyObjectRequest(java.lang.String sourceBucketName,
                           java.lang.String sourceKey,
                           java.lang.String sourceVersionId,
                           java.lang.String destinationBucketName,
                           java.lang.String destinationKey)

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

      パラメータ:
        `sourceBucketName` - The name of the S3 bucket containing the object to copy.
        `sourceKey` - The key in the source bucket under which the object to copy is stored.
        `sourceVersionId` - The S3 version ID which uniquely identifies a specific version of the source object to copy.
        `destinationBucketName` - The name of the S3 bucket in which the new object will be copied.
        `destinationKey` - The key in the destination bucket under which the new object will be copied.
      関連項目:
        `CopyObjectRequest(String sourceBucketName, String sourceKey, String destinationBucketName, String destinationKey)`

  - ### メソッドの詳細

    - #### getSourceBucketName

          public java.lang.String getSourceBucketName()

      Gets the name of the bucket containing the source object to be copied.
      戻り値:
        The name of the bucket containing the source object to be copied.
      関連項目:
        `setSourceBucketName(String sourceBucketName)`

    - #### setSourceBucketName

          public void setSourceBucketName(java.lang.String sourceBucketName)

      Sets the name of the bucket containing the source object to be copied.
      パラメータ:
        `sourceBucketName` - The name of the bucket containing the source object to be copied.
      関連項目:
        `getSourceBucketName()`

    - #### withSourceBucketName

          public CopyObjectRequest withSourceBucketName(java.lang.String sourceBucketName)

      Sets the name of the bucket containing the source object to be copied, and returns this object, enabling additional method calls to be chained together.
      パラメータ:
        `sourceBucketName` - The name of the bucket containing the source object to be copied.
      戻り値:
        This `CopyObjectRequest` instance, enabling additional method calls to be chained together.

    - #### getSourceKey

          public java.lang.String getSourceKey()

      Gets the source bucket key under which the source object to be copied is stored.
      戻り値:
        The source bucket key under which the source object to be copied is stored.
      関連項目:
        `setSourceKey(String sourceKey)`

    - #### setSourceKey

          public void setSourceKey(java.lang.String sourceKey)

      Sets the source bucket key under which the source object to be copied is stored.
      パラメータ:
        `sourceKey` - The source bucket key under which the source object to be copied is stored.
      関連項目:
        `setSourceKey(String sourceKey)}`

    - #### withSourceKey

          public CopyObjectRequest withSourceKey(java.lang.String sourceKey)

      Sets the key in the source bucket under which the source object to be copied is stored and returns this object, enabling additional method calls to be chained together.
      パラメータ:
        `sourceKey` - The key in the source bucket under which the source object to be copied is stored.
      戻り値:
        This `CopyObjectRequest` instance, enabling additional method calls to be chained together.

    - #### getSourceVersionId

          public java.lang.String getSourceVersionId()

      Gets the version ID specifying which version of the source object to copy. If not specified, the most recent version of the source object will be copied.

      Objects created before enabling versioning or when versioning is suspended are given the default `null` version ID (see `Constants.NULL_VERSION_ID`). Note that the `null` version ID is a valid version ID and is not the same as not having a version ID.

      For more information about enabling versioning for a bucket, see `AmazonS3.setBucketVersioningConfiguration(SetBucketVersioningConfigurationRequest)`.

      戻り値:
        The version ID specifying which version of the source object to copy.
      関連項目:
        `Constants.NULL_VERSION_ID`, `setSourceVersionId(String sourceVersionId)`

    - #### setSourceVersionId

          public void setSourceVersionId(java.lang.String sourceVersionId)

      Sets the optional version ID specifying which version of the source object to copy. If not specified, the most recent version of the source object will be copied.

      Objects created before enabling versioning or when versioning is suspended are given the default `null` version ID (see `Constants.NULL_VERSION_ID`). Note that the `null` version ID is a valid version ID and is not the same as not having a version ID.

      For more information about enabling versioning for a bucket, see `AmazonS3.setBucketVersioningConfiguration(SetBucketVersioningConfigurationRequest)`.

      パラメータ:
        `sourceVersionId` - The optional version ID specifying which version of the source object to copy.

    - #### withSourceVersionId

          public CopyObjectRequest withSourceVersionId(java.lang.String sourceVersionId)

      Sets the optional version ID specifying which version of the source object to copy and returns this object, enabling additional method calls to be chained together. If not specified, the most recent version of the source object will be copied.

      Objects created before enabling versioning or when versioning is suspended are given the default `null` version ID (see `Constants.NULL_VERSION_ID`). Note that the `null` version ID is a valid version ID and is not the same as not having a version ID.

      For more information about enabling versioning for a bucket, see `AmazonS3.setBucketVersioningConfiguration(SetBucketVersioningConfigurationRequest)`.

      パラメータ:
        `sourceVersionId` - The optional version ID specifying which version of the source object to copy.
      戻り値:
        This `CopyObjectRequest`, enabling additional method calls to be chained together.

    - #### getDestinationBucketName

          public java.lang.String getDestinationBucketName()

      Gets the destination bucket name which will contain the new, copied object.
      戻り値:
        The name of the destination bucket which will contain the new, copied object.
      関連項目:
        `setDestinationBucketName(String destinationBucketName)`

    - #### setDestinationBucketName

          public void setDestinationBucketName(java.lang.String destinationBucketName)

      Sets the destination bucket name which will contain the new, copied object.
      パラメータ:
        `destinationBucketName` - The name of the destination bucket which will contain the new, copied object.
      関連項目:
        `getDestinationBucketName()`

    - #### withDestinationBucketName

          public CopyObjectRequest withDestinationBucketName(java.lang.String destinationBucketName)

      Sets the name of the destination bucket which will contain the new, copied object and returns this object, enabling additional method calls to be chained together.
      パラメータ:
        `destinationBucketName` - The name of the destination bucket which will contain the new, copied object.
      戻り値:
        This `CopyObjectRequest`, enabling additional method calls to be chained together.

    - #### getDestinationKey

          public java.lang.String getDestinationKey()

      Gets the destination bucket key under which the new, copied object will be stored.
      戻り値:
        The destination bucket key under which the new, copied object will be stored.
      関連項目:
        `setDestinationKey(String destinationKey)`

    - #### setDestinationKey

          public void setDestinationKey(java.lang.String destinationKey)

      Sets the destination bucket key under which the new, copied object will be stored.
      パラメータ:
        `destinationKey` - The destination bucket key under which the new, copied object will be stored.
      関連項目:
        `getDestinationKey()`

    - #### withDestinationKey

          public CopyObjectRequest withDestinationKey(java.lang.String destinationKey)

      Sets the destination bucket key under which the new, copied object will be stored and returns this object, enabling additional method calls can be chained together.
      パラメータ:
        `destinationKey` - The destination bucket key under which the new, copied object will be stored.
      戻り値:
        This `CopyObjectRequest`, enabling additional method calls to be chained together.

    - #### getStorageClass

          public java.lang.String getStorageClass()

      Gets the optional Amazon S3 storage class to use when storing the newly copied object. If not specified, the default standard storage class is used.

      For more information on available Amazon S3 storage classes, see the `StorageClass` enumeration.

      戻り値:
        The Amazon S3 storage class to use when storing the newly copied object.
      関連項目:
        `setStorageClass(String)`, `setStorageClass(StorageClass)`

    - #### setStorageClass

          public void setStorageClass(java.lang.String storageClass)

      Sets the optional Amazon S3 storage class to use when storing the newly copied object. If not specified, the default standard storage class is used.

      For more information on Amazon S3 storage classes and available values, see the `StorageClass` enumeration.

      関連項目:
        `getStorageClass()`, `setStorageClass(StorageClass)`

    - #### withStorageClass

          public CopyObjectRequest withStorageClass(java.lang.String storageClass)

      Sets the optional Amazon S3 storage class to use when storing the newly copied object and returns this `CopyObjectRequest`, enabling additional method calls to be chained together. If not specified, the default standard storage class is used.

      For more information on Amazon S3 storage classes and available values, see the `StorageClass` enumeration.

      戻り値:
        This `CopyObjectRequest`, enabling additional method calls to be chained together.

    - #### setStorageClass

          public void setStorageClass(StorageClass storageClass)

      Sets the optional Amazon S3 storage class to use when storing the newly copied object. If not specified, the default standard storage class is used.

      For more information on Amazon S3 storage classes and available values, see the `StorageClass` enumeration.

      関連項目:
        `getStorageClass()`, `setStorageClass(String)`

    - #### withStorageClass

          public CopyObjectRequest withStorageClass(StorageClass storageClass)

      Sets the optional Amazon S3 storage class to use when storing the newly copied object and returns this CopyObjectRequest, enabling additional method calls to be chained together. If not specified, the default standard storage class is used.

      For more information on Amazon S3 storage classes and available values, see the `StorageClass` enumeration.

      戻り値:
        This `CopyObjectRequest`, enabling additional method calls to be chained together.

    - #### getCannedAccessControlList

          public CannedAccessControlList getCannedAccessControlList()

      Gets the canned ACL to use for the new, copied object. If no canned ACL is specified, S3 will default to using the `CannedAccessControlList.Private` canned ACL for all copied objects.
      戻り値:
        The canned ACL to set for the newly copied object, or `null` if no canned ACL has been specified.

    - #### setCannedAccessControlList

          public void setCannedAccessControlList(CannedAccessControlList cannedACL)

      Sets the canned ACL to use for the newly copied object. If no canned ACL is specified, S3 will default to using the `CannedAccessControlList.Private` canned ACL for all copied objects.
      パラメータ:
        `cannedACL` - The canned ACL to set for the newly copied object.

    - #### withCannedAccessControlList

          public CopyObjectRequest withCannedAccessControlList(CannedAccessControlList cannedACL)

      Sets the canned ACL to use for the newly copied object, and returns this `CopyObjectRequest`, enabling additional method calls to be chained together.
      パラメータ:
        `cannedACL` - The canned ACL to set for the newly copied object.
      戻り値:
        This `CopyObjectRequest`, enabling additional method calls to be chained together.

    - #### getAccessControlList

          public AccessControlList getAccessControlList()

      Returns the optional access control list for the new object. If specified, cannedAcl will be ignored.

    - #### setAccessControlList

          public void setAccessControlList(AccessControlList accessControlList)

      Sets the optional access control list for the new object. If specified, cannedAcl will be ignored.
      パラメータ:
        `accessControlList` - The access control list for the new object.

    - #### withAccessControlList

          public CopyObjectRequest withAccessControlList(AccessControlList accessControlList)

      Sets the optional access control list for the new object. If specified, cannedAcl will be ignored. Returns this `CopyObjectRequest`, enabling additional method calls to be chained together.
      パラメータ:
        `accessControlList` - The access control list for the new object.

    - #### getNewObjectMetadata

          public ObjectMetadata getNewObjectMetadata()

      Gets the optional object metadata to set for the new, copied object.
      戻り値:
        The object metadata to set for the newly copied object. Returns `null` if no object metadata has been specified.
      関連項目:
        `setNewObjectMetadata(ObjectMetadata newObjectMetadata)`

    - #### setNewObjectMetadata

          public void setNewObjectMetadata(ObjectMetadata newObjectMetadata)

      Sets the object metadata to use for the new, copied object. By default the object metadata from the source object is copied to the destination object, but when setting object metadata with this method, no metadata from the source object is copied. Instead, the new destination object will have the metadata specified with this call.
      パラメータ:
        `newObjectMetadata` - The object metadata to use for the newly copied object.
      関連項目:
        `getNewObjectMetadata()`

    - #### withNewObjectMetadata

          public CopyObjectRequest withNewObjectMetadata(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. By default, the object metadata from the source object will be copied to the destination object, but if callers set object metadata with this method, it will be used instead.
      パラメータ:
        `newObjectMetadata` - The object metadata to use for the newly copied object.
      戻り値:
        This `CopyObjectRequest`, enabling additional method calls to be chained together.

    - #### getMatchingETagConstraints

          public java.util.List<java.lang.String> getMatchingETagConstraints()

      Gets 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. Only one ETag in the list needs to match for the request to be executed by Amazon S3.

      Matching ETag constraints may be used with the unmodified since constraint, but not with any other type of constraint.

      戻り値:
        The optional list of ETag constraints that when present must include a match for the source object's current ETag in order for this request to be executed.

    - #### setMatchingETagConstraints

          public void setMatchingETagConstraints(java.util.List<java.lang.String> 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. If none of the specified ETags match the source object's current ETag, the copy object operation will be aborted. Only one ETag in the list needs to match for the request to be executed by Amazon S3.

      Matching ETag constraints may be used with the unmodified since constraint, but not with any other type of constraint.

      パラメータ:
        `eTagList` - The optional list of ETag constraints that must include a match for the source object's current ETag in order for this request to be executed.

    - #### withMatchingETagConstraint

          public CopyObjectRequest withMatchingETagConstraint(java.lang.String eTag)

      Adds a single ETag constraint to this request and returns this object, enabling additional method calls to be chained together. Multiple ETag constraints can be added to a request, but one must match the source object's current ETag in order for the copy object request to be executed. If none of the ETag constraints added to this request match the source object's current ETag, the copy object operation will be aborted.

      Matching ETag constraints may be used with the unmodified since constraint, but not with any other type of constraint.

      パラメータ:
        `eTag` - The matching ETag constraint to add to this request.
      戻り値:
        This `CopyObjectRequest`, enabling additional method calls to be chained together.

    - #### getNonmatchingETagConstraints

          public java.util.List<java.lang.String> getNonmatchingETagConstraints()

      Gets 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. If any entry in the non-matching ETag constraint list matches the source object's current ETag, this copy request will not be executed by Amazon S3.

      Non-matching ETag constraints may be used with the modified since constraint, but not with any other type of constraint.

      戻り値:
        The optional list of ETag constraints that when present must not include a match for the source object's current ETag in order for this request to be executed.

    - #### setNonmatchingETagConstraints

          public void setNonmatchingETagConstraints(java.util.List<java.lang.String> 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. If any entry in the non-matching ETag constraint list matches the source object's current ETag, this copy request will not be executed by Amazon S3.

      Non-matching ETag constraints may be used with the modified since constraint, but not with any other type of constraint.

      パラメータ:
        `eTagList` - The list of ETag constraints that, when present, must not include a match for the source object's current ETag in order for this request to be executed.

    - #### withNonmatchingETagConstraint

          public CopyObjectRequest withNonmatchingETagConstraint(java.lang.String eTag)

      Adds a single ETag constraint to this request and returns this object, enabling additional method calls to be chained together. Multiple ETag constraints can be added to a request, but all ETag constraints must not match the source object's current ETag in order for the copy object request to be executed. If any entry in the non-matching ETag constraint list matches the source object's current ETag, this copy request will not be executed by Amazon S3.

      Non-matching ETag constraints may be used with the modified since constraint, but not with any other type of constraint.

      パラメータ:
        `eTag` - The non-matching ETag constraint to add to this request.
      戻り値:
        This `CopyObjectRequest`, enabling additional method calls to be chained together.

    - #### getUnmodifiedSinceConstraint

          public java.util.Date getUnmodifiedSinceConstraint()

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

      The unmodified since constraint may be used with matching ETag constraints, but not with any other type of constraint.

      戻り値:
        The optional unmodified constraint that restricts this request to executing only if the source object has not been modified after the specified date.

    - #### setUnmodifiedSinceConstraint

          public void setUnmodifiedSinceConstraint(java.util.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.

      The unmodified constraint may be used with matching ETag constraints, but not with any other type of constraint.

      Note that Amazon S3 will ignore any dates occurring in the future.

      パラメータ:
        `date` - The unmodified constraint that restricts this request to executing only if the source object has not been modified after this date.

    - #### withUnmodifiedSinceConstraint

          public CopyObjectRequest withUnmodifiedSinceConstraint(java.util.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. Returns this object, enabling additional method calls to be chained together.

      The unmodified constraint may be used with matching ETag constraints, but not with any other type of constraint.

      Note that Amazon S3 will ignore any dates occurring in the future.

      パラメータ:
        `date` - The unmodified constraint that restricts this request to executing only if the source object has not been modified after this date.
      戻り値:
        This `CopyObjectRequest`, enabling additional method calls to be chained together.

    - #### getModifiedSinceConstraint

          public java.util.Date getModifiedSinceConstraint()

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

      The modified constraint may be used with non-matching ETag constraints, but not with any other type of constraint.

      戻り値:
        The optional modified constraint that restricts this request to executing only if the source object has been modified after the specified date.

    - #### setModifiedSinceConstraint

          public void setModifiedSinceConstraint(java.util.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.

      The modified constraint may be used with non-matching ETag constraints, but not with any other type of constraint.

      Note that Amazon S3 will ignore any dates occurring in the future.

      パラメータ:
        `date` - The modified constraint that restricts this request to executing only if the source object has been modified after the specified date.

    - #### withModifiedSinceConstraint

          public CopyObjectRequest withModifiedSinceConstraint(java.util.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. Returns this object, enabling additional method calls to be chained together.

      The modified constraint may be used with non-matching ETag constraints, but not with any other type of constraint.

      Note that Amazon S3 will ignore any dates occurring in the future.

      パラメータ:
        `date` - The modified constraint that restricts this request to executing only if the source object has been modified after the specified date.
      戻り値:
        This `CopyObjectRequest`, enabling additional method calls to be chained together.

    - #### setRedirectLocation

          public void setRedirectLocation(java.lang.String redirectLocation)

      Sets the optional redirect location for the newly copied object.
      パラメータ:
        `redirectLocation` - The redirect location for the newly copied object.

    - #### getRedirectLocation

          public java.lang.String getRedirectLocation()

      Gets the optional redirect location for the newly copied object.

    - #### withRedirectLocation

          public CopyObjectRequest withRedirectLocation(java.lang.String redirectLocation)

      Sets the optional redirect location for the newly copied object.Returns this `CopyObjectRequest`, enabling additional method calls to be chained together.
      パラメータ:
        `redirectLocation` - The redirect location for the newly copied object.