com.amazonaws.services.s3.model

## クラス RestoreObjectRequest

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

-     public class RestoreObjectRequest
      extends AmazonWebServiceRequest

  Request object containing all the options for restoring an object, which was transitioned to the Amazon Glacier from S3 when it was expired.

  All `RestoreObjectRequest` must specify a bucket name and key, along with expiration time.

  関連項目:
    `RestoreObjectRequest(String, String, int)`, `RestoreObjectRequest(String, String)`

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

    コンストラクタ
    コンストラクタと説明
    `RestoreObjectRequest(java.lang.String bucketName, java.lang.String key)` Constructs a new RestoreObjectRequest.
    `RestoreObjectRequest(java.lang.String bucketName, java.lang.String key, int expirationInDays)` Constructs a new RestoreObjectRequest.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `java.lang.String` | `getBucketName()` Returns the name of the bucket containing the reference to the object to restore which is now stored in Amazon Glacier.
    `int` | `getExpirationInDays()` Returns the time in days from an object's creation to its expiration.
    `java.lang.String` | `getKey()` Gets the key, the name of the reference to the object to restore, which is now stored in Amazon Glacier.
    `void` | `setBucketName(java.lang.String bucketName)` Sets the name of the bucket containing the reference to the object to restore which is now stored in Amazon Glacier.
    `void` | `setExpirationInDays(int expirationInDays)` Sets the time, in days, between when an object is uploaded to the bucket and when it expires.
    `void` | `setKey(java.lang.String key)` Sets the key, the name of the reference to the object to restore, which is now stored in Amazon Glacier.
    `RestoreObjectRequest` | `withBucketName(java.lang.String bucketName)` Sets the name of the bucket containing the reference to the object to restore which is now stored in Amazon Glacier, and returns a reference to this object(RestoreObjectRequest) for method chaining.
    `RestoreObjectRequest` | `withExpirationInDays(int expirationInDays)` Sets the time, in days, between when an object is uploaded to the bucket and when it expires, and returns a reference to this object(RestoreObjectRequest) for method chaining.
    `RestoreObjectRequest` | `withKey(java.lang.String key)` Sets the key, the name of the reference to the object to restore, which is now stored in Amazon Glacier. returns a reference to this object(RestoreObjectRequest) for method chaining.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### RestoreObjectRequest

          public RestoreObjectRequest(java.lang.String bucketName,
                              java.lang.String key)

      Constructs a new RestoreObjectRequest.

      パラメータ:
        `bucketName` - The name of the bucket containing the reference to the object to restore which is now stored in Amazon Glacier.
        `key` - The key, the name of the reference to the object to restore, which is now stored in Amazon Glacier.
      関連項目:
        `RestoreObjectRequest(String, String, int)`

    - #### RestoreObjectRequest

          public RestoreObjectRequest(java.lang.String bucketName,
                              java.lang.String key,
                              int expirationInDays)

      Constructs a new RestoreObjectRequest.

      パラメータ:
        `bucketName` - The name of the bucket containing the reference to the object to restore which is now stored in Amazon Glacier.
        `key` - The key, the name of the reference to the object to restore, which is now stored in Amazon Glacier.
        `expirationInDays` - The time, in days, between when an object is restored to the bucket and when it expires
      関連項目:
        `RestoreObjectRequest(String, String)`

  - ### メソッドの詳細

    - #### getBucketName

          public java.lang.String getBucketName()

      Returns the name of the bucket containing the reference to the object to restore which is now stored in Amazon Glacier.
      関連項目:
        `setBucketName(String)`, `withBucketName(String)`

    - #### withBucketName

          public RestoreObjectRequest withBucketName(java.lang.String bucketName)

      Sets the name of the bucket containing the reference to the object to restore which is now stored in Amazon Glacier, and returns a reference to this object(RestoreObjectRequest) for method chaining.
      関連項目:
        `setBucketName(String)`, `getBucketName()`

    - #### setBucketName

          public void setBucketName(java.lang.String bucketName)

      Sets the name of the bucket containing the reference to the object to restore which is now stored in Amazon Glacier.
      関連項目:
        `getBucketName()`, `withBucketName(String)`

    - #### getKey

          public java.lang.String getKey()

      Gets the key, the name of the reference to the object to restore, which is now stored in Amazon Glacier.
      関連項目:
        `setKey(String)`, `withKey(String)`

    - #### setKey

          public void setKey(java.lang.String key)

      Sets the key, the name of the reference to the object to restore, which is now stored in Amazon Glacier.
      関連項目:
        `getKey()`, `withKey(String)`

    - #### withKey

          public RestoreObjectRequest withKey(java.lang.String key)

      Sets the key, the name of the reference to the object to restore, which is now stored in Amazon Glacier. returns a reference to this object(RestoreObjectRequest) for method chaining.
      関連項目:
        `getKey()`, `setKey(String)`

    - #### setExpirationInDays

          public void setExpirationInDays(int expirationInDays)

      Sets the time, in days, between when an object is uploaded to the bucket and when it expires.

    - #### getExpirationInDays

          public int getExpirationInDays()

      Returns the time in days from an object's creation to its expiration.

    - #### withExpirationInDays

          public RestoreObjectRequest withExpirationInDays(int expirationInDays)

      Sets the time, in days, between when an object is uploaded to the bucket and when it expires, and returns a reference to this object(RestoreObjectRequest) for method chaining.