com.obs.services.model

## 类 LifecycleConfiguration.Rule

- java.lang.Object
- - com.obs.services.model.LifecycleConfiguration.Rule

- 封闭类:
    LifecycleConfiguration

      public class LifecycleConfiguration.Rule
      extends Object

  Bucket lifecycle rule

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected Boolean` | `enabled`
    `protected LifecycleConfiguration.Expiration` | `expiration`
    `protected String` | `id`
    `protected LifecycleConfiguration.NoncurrentVersionExpiration` | `noncurrentVersionExpiration`
    `protected List<LifecycleConfiguration.NoncurrentVersionTransition>` | `noncurrentVersionTransitions`
    `protected String` | `prefix`
    `protected List<LifecycleConfiguration.Transition>` | `transitions`

  - ### 构造器概要

    构造器
    构造器和说明
    `Rule()` No-argument constructor
    `Rule(String id, String prefix, Boolean enabled)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `boolean` | `equals(Object obj)`
    `Boolean` | `getEnabled()` Identify whether the rule is enabled.
    `LifecycleConfiguration.Expiration` | `getExpiration()` Obtain the expiration time of an object.
    `String` | `getId()` Obtain the rule ID.
    `LifecycleConfiguration.NoncurrentVersionExpiration` | `getNoncurrentVersionExpiration()` Obtain the expiration time of a noncurrent object version.
    `List<LifecycleConfiguration.NoncurrentVersionTransition>` | `getNoncurrentVersionTransitions()` Obtain the transition policy of noncurrent versions.
    `String` | `getPrefix()` Obtain the object name prefix used to identify one or more objects to which the rule applies.
    `List<LifecycleConfiguration.Transition>` | `getTransitions()` Obtain the transition policy of an object.
    `int` | `hashCode()`
    `LifecycleConfiguration.Expiration` | `newExpiration()` Expiration time of objects
    `LifecycleConfiguration.NoncurrentVersionExpiration` | `newNoncurrentVersionExpiration()` Create the expiration time of a noncurrent object version.
    `LifecycleConfiguration.NoncurrentVersionTransition` | `newNoncurrentVersionTransition()` Create the transition policy for noncurrent versions.
    `LifecycleConfiguration.Transition` | `newTransition()` Create an object transition policy.
    `void` | `setEnabled(Boolean enabled)` Specify whether to enable the rule.
    `void` | `setExpiration(LifecycleConfiguration.Expiration expiration)` Set the expiration time of an object.
    `void` | `setId(String id)` Set the rule ID.
    `void` | `setNoncurrentVersionExpiration(LifecycleConfiguration.NoncurrentVersionExpiration noncurrentVersionExpiration)` Set the expiration time of a noncurrent object version.
    `void` | `setNoncurrentVersionTransitions(List<LifecycleConfiguration.NoncurrentVersionTransition> noncurrentVersionTransitions)` Set the transition policy for noncurrent versions.
    `void` | `setPrefix(String prefix)` Set the object name used to identify one or more objects to which the rule applies.
    `void` | `setTransitions(List<LifecycleConfiguration.Transition> transitions)` Set the object transition policy.
    `String` | `toString()`

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

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

- - ### 字段详细资料

    - #### id

          protected String id

    - #### prefix

          protected String prefix

    - #### enabled

          protected Boolean enabled

    - #### expiration

          protected LifecycleConfiguration.Expiration expiration

    - #### noncurrentVersionExpiration

          protected LifecycleConfiguration.NoncurrentVersionExpiration noncurrentVersionExpiration

    - #### transitions

          protected List<LifecycleConfiguration.Transition> transitions

    - #### noncurrentVersionTransitions

          protected List<LifecycleConfiguration.NoncurrentVersionTransition> noncurrentVersionTransitions

  - ### 构造器详细资料

    - #### Rule

          public Rule()

      No-argument constructor

    - #### Rule

          public Rule(String id,
                      String prefix,
                      Boolean enabled)

      参数:
        `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

  - ### 方法详细资料

    - #### newExpiration

          public LifecycleConfiguration.Expiration newExpiration()

      Expiration time of objects
      返回:
        Instance of expiration time configuration

    - #### newNoncurrentVersionExpiration

          public LifecycleConfiguration.NoncurrentVersionExpiration newNoncurrentVersionExpiration()

      Create the expiration time of a noncurrent object version.
      返回:
        Expiration time of a noncurrent object version

    - #### newTransition

          public LifecycleConfiguration.Transition newTransition()

      Create an object transition policy.
      返回:
        Object transition policy

    - #### newNoncurrentVersionTransition

          public LifecycleConfiguration.NoncurrentVersionTransition newNoncurrentVersionTransition()

      Create the transition policy for noncurrent versions.
      返回:
        Transition policy for noncurrent versions

    - #### getId

          public String getId()

      Obtain the rule ID.
      返回:
        Rule ID

    - #### setId

          public void setId(String id)

      Set the rule ID.
      参数:
        `id` - Rule ID

    - #### getPrefix

          public String getPrefix()

      Obtain the object name prefix used to identify one or more objects to which the rule applies.
      返回:
        Object name prefix

    - #### setPrefix

          public void setPrefix(String prefix)

      Set the object name used to identify one or more objects to which the rule applies.
      参数:
        `prefix` - Object name prefix

    - #### getEnabled

          public Boolean getEnabled()

      Identify whether the rule is enabled.
      返回:
        Identifier that specifies whether the rule is enabled

    - #### setEnabled

          public void setEnabled(Boolean enabled)

      Specify whether to enable the rule.
      参数:
        `enabled` - Identifier that specifies whether the rule is enabled

    - #### getExpiration

          public LifecycleConfiguration.Expiration getExpiration()

      Obtain the expiration time of an object.
      返回:
        Expiration time of the object

    - #### setExpiration

          public void setExpiration(LifecycleConfiguration.Expiration expiration)

      Set the expiration time of an object.
      参数:
        `expiration` - Expiration time of an object

    - #### getNoncurrentVersionExpiration

          public LifecycleConfiguration.NoncurrentVersionExpiration getNoncurrentVersionExpiration()

      Obtain the expiration time of a noncurrent object version.
      返回:
        Expiration time of a noncurrent object version

    - #### setNoncurrentVersionExpiration

          public void setNoncurrentVersionExpiration(LifecycleConfiguration.NoncurrentVersionExpiration noncurrentVersionExpiration)

      Set the expiration time of a noncurrent object version.
      参数:
        `noncurrentVersionExpiration` - Expiration time of a noncurrent object version

    - #### getTransitions

          public List<LifecycleConfiguration.Transition> getTransitions()

      Obtain the transition policy of an object.
      返回:
        Object transition policy

    - #### setTransitions

          public void setTransitions(List<LifecycleConfiguration.Transition> transitions)

      Set the object transition policy.
      参数:
        `transitions` - Object transition policy

    - #### getNoncurrentVersionTransitions

          public List<LifecycleConfiguration.NoncurrentVersionTransition> getNoncurrentVersionTransitions()

      Obtain the transition policy of noncurrent versions.
      返回:
        Transition policy for noncurrent versions

    - #### setNoncurrentVersionTransitions

          public void setNoncurrentVersionTransitions(List<LifecycleConfiguration.NoncurrentVersionTransition> noncurrentVersionTransitions)

      Set the transition policy for noncurrent versions.
      参数:
        `noncurrentVersionTransitions` - Transition policy for noncurrent versions

    - #### hashCode

          public int hashCode()

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

    - #### equals

          public boolean equals(Object obj)

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

    - #### toString

          public String toString()

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

Copyright © 2021. All rights reserved.