## 类 com.aliyun.oss.model.LifecycleRule
的使用

- 使用LifecycleRule的程序包
  程序包 | 说明
  --- | ---
  com.aliyun.oss |
  com.aliyun.oss.model |

- - ### com.aliyun.oss中LifecycleRule的使用

    返回变量类型为LifecycleRule的类型的com.aliyun.oss中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `List<LifecycleRule>` | OSSClient.`getBucketLifecycle(GenericRequest genericRequest)`
    `List<LifecycleRule>` | OSS.`getBucketLifecycle(GenericRequest genericRequest)` Gets the `Bucket`'s Lifecycle rules.
    `List<LifecycleRule>` | OSSClient.`getBucketLifecycle(String bucketName)`
    `List<LifecycleRule>` | OSS.`getBucketLifecycle(String bucketName)` Gets the `Bucket`'s lifecycle rules.

  - ### com.aliyun.oss.model中LifecycleRule的使用

    返回变量类型为LifecycleRule的类型的com.aliyun.oss.model中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `List<LifecycleRule>` | SetBucketLifecycleRequest.`getLifecycleRules()`

    参数类型为LifecycleRule的com.aliyun.oss.model中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | SetBucketLifecycleRequest.`AddLifecycleRule(LifecycleRule lifecycleRule)`

    类型变量类型为LifecycleRule的com.aliyun.oss.model中的方法参数
    限定符和类型 | 方法和说明
    --- | ---
    `void` | SetBucketLifecycleRequest.`setLifecycleRules(List<LifecycleRule> lifecycleRules)`

Copyright © 2020. All Rights Reserved.