com.amazonaws.services.s3.model

## クラス CopyObjectResult

- java.lang.Object
- - com.amazonaws.services.s3.model.CopyObjectResult

- すべての実装されたインタフェース:
    ObjectExpirationResult, ServerSideEncryptionResult

      public class CopyObjectResult
      extends java.lang.Object
      implements ServerSideEncryptionResult, ObjectExpirationResult

  Contains the data returned by Amazon S3 from the `AmazonS3#copyObject(CopyObjectRequest copyObjectRequest)` call. This result may be ignored if not needed; otherwise, use this result to access information about the new object created from the copyObject call.

  関連項目:
    `AmazonS3Client.copyObject(String, String, String, String)`, `AmazonS3Client.copyObject(com.amazonaws.services.s3.model.CopyObjectRequest)`

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

    コンストラクタ
    コンストラクタと説明
    `CopyObjectResult()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `java.lang.String` | `getETag()` Gets the ETag value for the new object that was created in the associated `CopyObjectRequest`.
    `java.util.Date` | `getExpirationTime()` Returns the expiration time for this object, or null if it doesn't expire.
    `java.lang.String` | `getExpirationTimeRuleId()` Returns the `BucketLifecycleConfiguration` rule ID for this object's expiration, or null if it doesn't expire.
    `java.util.Date` | `getLastModifiedDate()` Gets the date the newly copied object was last modified.
    `java.lang.String` | `getServerSideEncryption()` Returns the server-side encryption algorithm for the newly created object, or null if none was used.
    `java.lang.String` | `getVersionId()` Gets the version ID of the newly copied object.
    `void` | `setETag(java.lang.String etag)` Sets the ETag value for the new object that was created from the associated copy object request.
    `void` | `setExpirationTime(java.util.Date expirationTime)` Sets the expiration time for the object.
    `void` | `setExpirationTimeRuleId(java.lang.String expirationTimeRuleId)` Sets the `BucketLifecycleConfiguration` rule ID for this object's expiration
    `void` | `setLastModifiedDate(java.util.Date lastModifiedDate)` Sets the date the newly copied object was last modified.
    `void` | `setServerSideEncryption(java.lang.String serverSideEncryption)` Sets the server-side encryption algorithm for the newly created object.
    `void` | `setVersionId(java.lang.String versionId)` Sets the version ID of the newly copied object.

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

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

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

    - #### CopyObjectResult

          public CopyObjectResult()

  - ### メソッドの詳細

    - #### getETag

          public java.lang.String getETag()

      Gets the ETag value for the new object that was created in the associated `CopyObjectRequest`.
      戻り値:
        The ETag value for the new object.
      関連項目:
        `setETag(String)`

    - #### setETag

          public void setETag(java.lang.String etag)

      Sets the ETag value for the new object that was created from the associated copy object request.
      パラメータ:
        `etag` - The ETag value for the new object.
      関連項目:
        `getETag()`

    - #### getLastModifiedDate

          public java.util.Date getLastModifiedDate()

      Gets the date the newly copied object was last modified.
      戻り値:
        The date the newly copied object was last modified.
      関連項目:
        `setLastModifiedDate(Date)`

    - #### setLastModifiedDate

          public void setLastModifiedDate(java.util.Date lastModifiedDate)

      Sets the date the newly copied object was last modified.
      パラメータ:
        `lastModifiedDate` - The date the new, copied object was last modified.
      関連項目:
        `getLastModifiedDate()`

    - #### getVersionId

          public java.lang.String getVersionId()

      Gets the version ID of the newly copied object. This field is only present if object versioning has been enabled for the bucket the object was copied to.
      戻り値:
        The version ID of the newly copied object.
      関連項目:
        `setVersionId(String)`

    - #### setVersionId

          public void setVersionId(java.lang.String versionId)

      Sets the version ID of the newly copied object.
      パラメータ:
        `versionId` - The version ID of the newly copied object.
      関連項目:
        `getVersionId()`

    - #### getServerSideEncryption

          public java.lang.String getServerSideEncryption()

      Returns the server-side encryption algorithm for the newly created object, or null if none was used.
      定義:
        `getServerSideEncryption` インタフェース内 `ServerSideEncryptionResult`

    - #### setServerSideEncryption

          public void setServerSideEncryption(java.lang.String serverSideEncryption)

      Sets the server-side encryption algorithm for the newly created object.
      定義:
        `setServerSideEncryption` インタフェース内 `ServerSideEncryptionResult`
      パラメータ:
        `serverSideEncryption` - The server-side encryption algorithm for the new object.

    - #### getExpirationTime

          public java.util.Date getExpirationTime()

      Returns the expiration time for this object, or null if it doesn't expire.
      定義:
        `getExpirationTime` インタフェース内 `ObjectExpirationResult`

    - #### setExpirationTime

          public void setExpirationTime(java.util.Date expirationTime)

      Sets the expiration time for the object.
      定義:
        `setExpirationTime` インタフェース内 `ObjectExpirationResult`
      パラメータ:
        `expirationTime` - The expiration time for the object.

    - #### getExpirationTimeRuleId

          public java.lang.String getExpirationTimeRuleId()

      Returns the `BucketLifecycleConfiguration` rule ID for this object's expiration, or null if it doesn't expire.
      定義:
        `getExpirationTimeRuleId` インタフェース内 `ObjectExpirationResult`
      関連項目:
        `BucketLifecycleConfiguration.Rule.getId()`

    - #### setExpirationTimeRuleId

          public void setExpirationTimeRuleId(java.lang.String expirationTimeRuleId)

      Sets the `BucketLifecycleConfiguration` rule ID for this object's expiration
      定義:
        `setExpirationTimeRuleId` インタフェース内 `ObjectExpirationResult`
      パラメータ:
        `expirationTimeRuleId` - The rule ID for this object's expiration