com.aliyun.oss.model

## 类 SetBucketLifecycleRequest

- java.lang.Object
- - com.aliyun.oss.model.WebServiceRequest
  - - com.aliyun.oss.model.GenericRequest
    - - com.aliyun.oss.model.SetBucketLifecycleRequest

-     public class SetBucketLifecycleRequest
      extends GenericRequest

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static int` | `MAX_LIFECYCLE_RULE_LIMIT`
    `static int` | `MAX_RULE_ID_LENGTH`

    - ### 从类继承的字段 com.aliyun.oss.model.WebServiceRequest

      `NOOP`

  - ### 构造器概要

    构造器
    构造器和说明
    `SetBucketLifecycleRequest(String bucketName)`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `AddLifecycleRule(LifecycleRule lifecycleRule)`
    `void` | `clearLifecycles()`
    `List<LifecycleRule>` | `getLifecycleRules()`
    `void` | `setLifecycleRules(List<LifecycleRule> lifecycleRules)`

    - ### 从类继承的方法 com.aliyun.oss.model.GenericRequest

      `getBucketName, getKey, getRequestPayer, getVersionId, setBucketName, setKey, setRequestPayer, setVersionId, withBucketName, withKey, withRequestPayer, withVersionId`

    - ### 从类继承的方法 com.aliyun.oss.model.WebServiceRequest

      `addAdditionalHeaderName, addHeader, addParameter, getAdditionalHeaderNames, getHeaders, getParameters, getProgressListener, isLogEnabled, setAdditionalHeaderNames, setHeaders, setLogEnabled, setParameters, setProgressListener, withProgressListener`

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

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

- - ### 字段详细资料

    - #### MAX_LIFECYCLE_RULE_LIMIT

          public static final int MAX_LIFECYCLE_RULE_LIMIT

      另请参阅:
        常量字段值

    - #### MAX_RULE_ID_LENGTH

          public static final int MAX_RULE_ID_LENGTH

      另请参阅:
        常量字段值

  - ### 构造器详细资料

    - #### SetBucketLifecycleRequest

          public SetBucketLifecycleRequest(String bucketName)

  - ### 方法详细资料

    - #### getLifecycleRules

          public List<LifecycleRule> getLifecycleRules()

    - #### setLifecycleRules

          public void setLifecycleRules(List<LifecycleRule> lifecycleRules)

    - #### clearLifecycles

          public void clearLifecycles()

    - #### AddLifecycleRule

          public void AddLifecycleRule(LifecycleRule lifecycleRule)

Copyright © 2020. All Rights Reserved.