com.aliyun.oss.model

## 类 LifecycleRule

- java.lang.Object
- - com.aliyun.oss.model.LifecycleRule

-     public class LifecycleRule
      extends Object

  Life cycle rule class.

- - ### 嵌套类概要

    嵌套类
    限定符和类型 | 类和说明
    --- | ---
    `static class` | `LifecycleRule.AbortMultipartUpload`
    `static class` | `LifecycleRule.NoncurrentVersionExpiration`
    `static class` | `LifecycleRule.NoncurrentVersionStorageTransition`
    `static class` | `LifecycleRule.RuleStatus`
    `static class` | `LifecycleRule.StorageTransition`

  - ### 构造器概要

    构造器
    构造器和说明
    `LifecycleRule()`
    `LifecycleRule(String id, String prefix, LifecycleRule.RuleStatus status)`
    `LifecycleRule(String id, String prefix, LifecycleRule.RuleStatus status, Date expirationTime)`
    `LifecycleRule(String id, String prefix, LifecycleRule.RuleStatus status, Date expirationTime, LifecycleRule.AbortMultipartUpload abortMultipartUpload)`
    `LifecycleRule(String id, String prefix, LifecycleRule.RuleStatus status, Date expirationTime, LifecycleRule.AbortMultipartUpload abortMultipartUpload, List<LifecycleRule.StorageTransition> storageTransitions)`
    `LifecycleRule(String id, String prefix, LifecycleRule.RuleStatus status, Date expirationTime, List<LifecycleRule.StorageTransition> storageTransitions)`
    `LifecycleRule(String id, String prefix, LifecycleRule.RuleStatus status, int expirationDays)`
    `LifecycleRule(String id, String prefix, LifecycleRule.RuleStatus status, int expirationDays, LifecycleRule.AbortMultipartUpload abortMultipartUpload)`
    `LifecycleRule(String id, String prefix, LifecycleRule.RuleStatus status, int expirationDays, LifecycleRule.AbortMultipartUpload abortMultipartUpload, List<LifecycleRule.StorageTransition> storageTransitions)`
    `LifecycleRule(String id, String prefix, LifecycleRule.RuleStatus status, int expirationDays, List<LifecycleRule.StorageTransition> storageTransitions)`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `addTag(String key, String value)`
    `LifecycleRule.AbortMultipartUpload` | `getAbortMultipartUpload()`
    `Date` | `getCreatedBeforeDate()`
    `int` | `getExpirationDays()`
    `Date` | `getExpirationTime()`
    `Boolean` | `getExpiredDeleteMarker()`
    `int` | `getExpriationDays()` 已过时。
    `String` | `getId()`
    `LifecycleRule.NoncurrentVersionExpiration` | `getNoncurrentVersionExpiration()`
    `List<LifecycleRule.NoncurrentVersionStorageTransition>` | `getNoncurrentVersionStorageTransitions()`
    `String` | `getPrefix()`
    `LifecycleRule.RuleStatus` | `getStatus()`
    `List<LifecycleRule.StorageTransition>` | `getStorageTransition()`
    `Map<String,String>` | `getTags()`
    `boolean` | `hasAbortMultipartUpload()`
    `boolean` | `hasCreatedBeforeDate()`
    `boolean` | `hasExpirationDays()`
    `boolean` | `hasExpirationTime()`
    `boolean` | `hasExpiredDeleteMarker()`
    `boolean` | `hasNoncurrentVersionExpiration()`
    `boolean` | `hasNoncurrentVersionStorageTransitions()`
    `boolean` | `hasStorageTransition()`
    `boolean` | `hasTags()`
    `void` | `setAbortMultipartUpload(LifecycleRule.AbortMultipartUpload abortMultipartUpload)`
    `void` | `setCreatedBeforeDate(Date date)`
    `void` | `setExpirationDays(int expirationDays)`
    `void` | `setExpirationTime(Date expirationTime)`
    `void` | `setExpiredDeleteMarker(Boolean expiredDeleteMarker)`
    `void` | `setExpriationDays(int expriationDays)` 已过时。
    `void` | `setId(String id)`
    `void` | `setNoncurrentVersionExpiration(LifecycleRule.NoncurrentVersionExpiration noncurrentVersionExpiration)`
    `void` | `setNoncurrentVersionStorageTransitions(List<LifecycleRule.NoncurrentVersionStorageTransition> noncurrentVersionStorageTransitions)`
    `void` | `setPrefix(String prefix)`
    `void` | `setStatus(LifecycleRule.RuleStatus status)`
    `void` | `setStorageTransition(List<LifecycleRule.StorageTransition> storageTransitions)`
    `void` | `setTags(Map<String,String> tags)`

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

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

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

    - #### LifecycleRule

          public LifecycleRule()

    - #### LifecycleRule

          public LifecycleRule(String id,
                       String prefix,
                       LifecycleRule.RuleStatus status)

    - #### LifecycleRule

          public LifecycleRule(String id,
                       String prefix,
                       LifecycleRule.RuleStatus status,
                       int expirationDays)

    - #### LifecycleRule

          public LifecycleRule(String id,
                       String prefix,
                       LifecycleRule.RuleStatus status,
                       Date expirationTime)

    - #### LifecycleRule

          public LifecycleRule(String id,
                       String prefix,
                       LifecycleRule.RuleStatus status,
                       int expirationDays,
                       LifecycleRule.AbortMultipartUpload abortMultipartUpload)

    - #### LifecycleRule

          public LifecycleRule(String id,
                       String prefix,
                       LifecycleRule.RuleStatus status,
                       Date expirationTime,
                       LifecycleRule.AbortMultipartUpload abortMultipartUpload)

    - #### LifecycleRule

          public LifecycleRule(String id,
                       String prefix,
                       LifecycleRule.RuleStatus status,
                       int expirationDays,
                       List<LifecycleRule.StorageTransition> storageTransitions)

    - #### LifecycleRule

          public LifecycleRule(String id,
                       String prefix,
                       LifecycleRule.RuleStatus status,
                       Date expirationTime,
                       List<LifecycleRule.StorageTransition> storageTransitions)

    - #### LifecycleRule

          public LifecycleRule(String id,
                       String prefix,
                       LifecycleRule.RuleStatus status,
                       int expirationDays,
                       LifecycleRule.AbortMultipartUpload abortMultipartUpload,
                       List<LifecycleRule.StorageTransition> storageTransitions)

    - #### LifecycleRule

          public LifecycleRule(String id,
                       String prefix,
                       LifecycleRule.RuleStatus status,
                       Date expirationTime,
                       LifecycleRule.AbortMultipartUpload abortMultipartUpload,
                       List<LifecycleRule.StorageTransition> storageTransitions)

  - ### 方法详细资料

    - #### getId

          public String getId()

    - #### setId

          public void setId(String id)

    - #### getPrefix

          public String getPrefix()

    - #### setPrefix

          public void setPrefix(String prefix)

    - #### getStatus

          public LifecycleRule.RuleStatus getStatus()

    - #### setStatus

          public void setStatus(LifecycleRule.RuleStatus status)

    - #### getExpriationDays

          @Deprecated
          public int getExpriationDays()

      已过时。

    - #### setExpriationDays

          @Deprecated
          public void setExpriationDays(int expriationDays)

      已过时。

    - #### getExpirationDays

          public int getExpirationDays()

    - #### setExpirationDays

          public void setExpirationDays(int expirationDays)

    - #### hasExpirationDays

          public boolean hasExpirationDays()

    - #### getExpirationTime

          public Date getExpirationTime()

    - #### setExpirationTime

          public void setExpirationTime(Date expirationTime)

    - #### hasExpirationTime

          public boolean hasExpirationTime()

    - #### getCreatedBeforeDate

          public Date getCreatedBeforeDate()

    - #### setCreatedBeforeDate

          public void setCreatedBeforeDate(Date date)

    - #### hasCreatedBeforeDate

          public boolean hasCreatedBeforeDate()

    - #### getExpiredDeleteMarker

          public Boolean getExpiredDeleteMarker()

    - #### setExpiredDeleteMarker

          public void setExpiredDeleteMarker(Boolean expiredDeleteMarker)

    - #### hasExpiredDeleteMarker

          public boolean hasExpiredDeleteMarker()

    - #### getAbortMultipartUpload

          public LifecycleRule.AbortMultipartUpload getAbortMultipartUpload()

    - #### setAbortMultipartUpload

          public void setAbortMultipartUpload(LifecycleRule.AbortMultipartUpload abortMultipartUpload)

    - #### hasAbortMultipartUpload

          public boolean hasAbortMultipartUpload()

    - #### getStorageTransition

          public List<LifecycleRule.StorageTransition> getStorageTransition()

    - #### setStorageTransition

          public void setStorageTransition(List<LifecycleRule.StorageTransition> storageTransitions)

    - #### hasStorageTransition

          public boolean hasStorageTransition()

    - #### getTags

          public Map<String,String> getTags()

    - #### setTags

          public void setTags(Map<String,String> tags)

    - #### addTag

          public void addTag(String key,
                    String value)

    - #### hasTags

          public boolean hasTags()

    - #### getNoncurrentVersionExpiration

          public LifecycleRule.NoncurrentVersionExpiration getNoncurrentVersionExpiration()

    - #### setNoncurrentVersionExpiration

          public void setNoncurrentVersionExpiration(LifecycleRule.NoncurrentVersionExpiration noncurrentVersionExpiration)

    - #### hasNoncurrentVersionExpiration

          public boolean hasNoncurrentVersionExpiration()

    - #### getNoncurrentVersionStorageTransitions

          public List<LifecycleRule.NoncurrentVersionStorageTransition> getNoncurrentVersionStorageTransitions()

    - #### hasNoncurrentVersionStorageTransitions

          public boolean hasNoncurrentVersionStorageTransitions()

    - #### setNoncurrentVersionStorageTransitions

          public void setNoncurrentVersionStorageTransitions(List<LifecycleRule.NoncurrentVersionStorageTransition> noncurrentVersionStorageTransitions)

Copyright © 2020. All Rights Reserved.