com.obs.services.model

## 类 LifecycleConfiguration

- java.lang.Object
- - com.obs.services.internal.InternalHeaderResponse
  - - com.obs.services.model.HeaderResponse
    - - com.obs.services.model.LifecycleConfiguration

-     public class LifecycleConfiguration
      extends HeaderResponse

  Bucket lifecycle rules

- - ### 嵌套类概要

    嵌套类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `LifecycleConfiguration.Expiration` Expiration time of an object
    `class` | `LifecycleConfiguration.NoncurrentVersionExpiration` Expiration time of a noncurrent object version
    `class` | `LifecycleConfiguration.NoncurrentVersionTransition` Transition policy for noncurrent versions
    `class` | `LifecycleConfiguration.Rule` Bucket lifecycle rule
    `class` | `LifecycleConfiguration.TimeEvent`
    `class` | `LifecycleConfiguration.Transition` Object transition policy

  - ### 字段概要

    - ### 从类继承的字段 com.obs.services.internal.InternalHeaderResponse

      `responseHeaders, statusCode`

  - ### 构造器概要

    构造器
    构造器和说明
    `LifecycleConfiguration()`
    `LifecycleConfiguration(List<LifecycleConfiguration.Rule> rules)` Constructor

  - ### 方法概要

    所有方法 静态方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `addRule(LifecycleConfiguration.Rule rule)` Add a lifecycle rule.
    `boolean` | `equals(Object o)`
    `List<LifecycleConfiguration.Rule>` | `getRules()` Obtain the list of bucket lifecycle rules.
    `int` | `hashCode()`
    `LifecycleConfiguration.Rule` | `newRule(String id, String prefix, Boolean enabled)` Create and add a lifecycle rule.
    `static void` | `setDate(LifecycleConfiguration.TimeEvent timeEvent, Date date)`
    `static void` | `setDays(LifecycleConfiguration.TimeEvent timeEvent, Integer days)`
    `static void` | `setStorageClass(LifecycleConfiguration.TimeEvent timeEvent, StorageClassEnum storageClass)`
    `String` | `toString()`

    - ### 从类继承的方法 com.obs.services.model.HeaderResponse

      `getRequestId, getResponseHeaders, getStatusCode`

    - ### 从类继承的方法 com.obs.services.internal.InternalHeaderResponse

      `setResponseHeaders, setStatusCode`

    - ### 从类继承的方法 java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### LifecycleConfiguration

          public LifecycleConfiguration(List<LifecycleConfiguration.Rule> rules)

      Constructor
      参数:
        `rules` - List of bucket lifecycle rules

    - #### LifecycleConfiguration

          public LifecycleConfiguration()

  - ### 方法详细资料

    - #### getRules

          public List<LifecycleConfiguration.Rule> getRules()

      Obtain the list of bucket lifecycle rules.
      返回:
        List of bucket lifecycle rules

    - #### addRule

          public void addRule(LifecycleConfiguration.Rule rule)

      Add a lifecycle rule.
      参数:
        `rule` - Lifecycle rule

    - #### newRule

          public LifecycleConfiguration.Rule newRule(String id,
                                                     String prefix,
                                                     Boolean enabled)

      Create and add a lifecycle rule.
      参数:
        `id` - Rule ID
        `prefix` - Object name prefix identifying one or more objects to which the rule applies
        `enabled` - Identifier that specifies whether the rule is enabled
      返回:
        rule Lifecycle rule

    - #### setDays

          public static void setDays(LifecycleConfiguration.TimeEvent timeEvent,
                                     Integer days)

    - #### setDate

          public static void setDate(LifecycleConfiguration.TimeEvent timeEvent,
                                     Date date)

    - #### setStorageClass

          public static void setStorageClass(LifecycleConfiguration.TimeEvent timeEvent,
                                             StorageClassEnum storageClass)

    - #### equals

          public boolean equals(Object o)

      覆盖:
        `equals` 在类中 `Object`

    - #### hashCode

          public int hashCode()

      覆盖:
        `hashCode` 在类中 `Object`

    - #### toString

          public String toString()

      覆盖:
        `toString` 在类中 `HeaderResponse`

Copyright © 2021. All rights reserved.