com.amazonaws.services.s3.model

## クラス BucketLifecycleConfiguration.Rule

- java.lang.Object
- - com.amazonaws.services.s3.model.BucketLifecycleConfiguration.Rule

- 含まれているクラス:
    BucketLifecycleConfiguration

      public static class BucketLifecycleConfiguration.Rule
      extends java.lang.Object

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

    コンストラクタ
    コンストラクタと説明
    `BucketLifecycleConfiguration.Rule()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `java.util.Date` | `getExpirationDate()` Returns the expiration date of the object.
    `int` | `getExpirationInDays()` Returns the time in days from an object's creation to its expiration.
    `java.lang.String` | `getId()` Returns the ID of this rule.
    `java.lang.String` | `getPrefix()` Returns the key prefix for which this rule will apply.
    `java.lang.String` | `getStatus()` Returns the status of this rule.
    `BucketLifecycleConfiguration.Transition` | `getTransition()` Returns the transition attribute of the rule.
    `void` | `setExpirationDate(java.util.Date expirationDate)` Sets the expiration date of the object.
    `void` | `setExpirationInDays(int expirationInDays)` Sets the time, in days, between when an object is uploaded to the bucket and when it expires.
    `void` | `setId(java.lang.String id)` Sets the ID of this rule.
    `void` | `setPrefix(java.lang.String prefix)` Sets the key prefix for which this rule will apply.
    `void` | `setStatus(java.lang.String status)` Sets the status of this rule.
    `void` | `setTransition(BucketLifecycleConfiguration.Transition transition)` Sets the transition describing how this object will move between different storage classes in Amazon S3.
    `BucketLifecycleConfiguration.Rule` | `withExpirationDate(java.util.Date expirationDate)` Sets the expiration date of the object and returns a reference to this object(Rule) for method chaining.
    `BucketLifecycleConfiguration.Rule` | `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 for method chaining.
    `BucketLifecycleConfiguration.Rule` | `withId(java.lang.String id)` Sets the ID of this rule and returns a reference to this object for method chaining.
    `BucketLifecycleConfiguration.Rule` | `withPrefix(java.lang.String prefix)` Sets the key prefix for this rule and returns a reference to this object for method chaining.
    `BucketLifecycleConfiguration.Rule` | `withStatus(java.lang.String status)` Sets the status of this rule and returns a reference to this object for method chaining.
    `BucketLifecycleConfiguration.Rule` | `withTransition(BucketLifecycleConfiguration.Transition transition)` Sets the transition describing how this object will move between different storage classes in Amazon S3 and returns a reference to this object(Rule) for method chaining.

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

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

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

    - #### BucketLifecycleConfiguration.Rule

          public BucketLifecycleConfiguration.Rule()

  - ### メソッドの詳細

    - #### setId

          public void setId(java.lang.String id)

      Sets the ID of this rule. Rules must be less than 255 alphanumeric characters, and must be unique for a bucket. If you do not assign an ID, one will be generated.

    - #### setPrefix

          public void setPrefix(java.lang.String prefix)

      Sets the key prefix for which this rule will apply.

    - #### setExpirationInDays

          public void setExpirationInDays(int expirationInDays)

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

    - #### getId

          public java.lang.String getId()

      Returns the ID of this rule.

    - #### withId

          public BucketLifecycleConfiguration.Rule withId(java.lang.String id)

      Sets the ID of this rule and returns a reference to this object for method chaining.
      関連項目:
        `setId(String)`

    - #### getPrefix

          public java.lang.String getPrefix()

      Returns the key prefix for which this rule will apply.

    - #### withPrefix

          public BucketLifecycleConfiguration.Rule withPrefix(java.lang.String prefix)

      Sets the key prefix for this rule and returns a reference to this object for method chaining.
      関連項目:
        `setPrefix(String)`

    - #### getExpirationInDays

          public int getExpirationInDays()

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

    - #### withExpirationInDays

          public BucketLifecycleConfiguration.Rule 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 for method chaining.
      関連項目:
        `setExpirationInDays(int)`

    - #### getStatus

          public java.lang.String getStatus()

      Returns the status of this rule.
      関連項目:
        `BucketLifecycleConfiguration.DISABLED`, `BucketLifecycleConfiguration.ENABLED`

    - #### setStatus

          public void setStatus(java.lang.String status)

      Sets the status of this rule.
      関連項目:
        `BucketLifecycleConfiguration.DISABLED`, `BucketLifecycleConfiguration.ENABLED`

    - #### withStatus

          public BucketLifecycleConfiguration.Rule withStatus(java.lang.String status)

      Sets the status of this rule and returns a reference to this object for method chaining.
      関連項目:
        `setStatus(String)`, `BucketLifecycleConfiguration.DISABLED`, `BucketLifecycleConfiguration.ENABLED`

    - #### setExpirationDate

          public void setExpirationDate(java.util.Date expirationDate)

      Sets the expiration date of the object.

    - #### getExpirationDate

          public java.util.Date getExpirationDate()

      Returns the expiration date of the object.

    - #### withExpirationDate

          public BucketLifecycleConfiguration.Rule withExpirationDate(java.util.Date expirationDate)

      Sets the expiration date of the object and returns a reference to this object(Rule) for method chaining.

    - #### setTransition

          public void setTransition(BucketLifecycleConfiguration.Transition transition)

      Sets the transition describing how this object will move between different storage classes in Amazon S3.

    - #### getTransition

          public BucketLifecycleConfiguration.Transition getTransition()

      Returns the transition attribute of the rule.

    - #### withTransition

          public BucketLifecycleConfiguration.Rule withTransition(BucketLifecycleConfiguration.Transition transition)

      Sets the transition describing how this object will move between different storage classes in Amazon S3 and returns a reference to this object(Rule) for method chaining.