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

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

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

    返回StorageClass的com.aliyun.oss.model中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `StorageClass` | ObjectMetadata.`getObjectStorageClass()` Gets the object's storage class, which is "standard", "IA" or "Archive".
    `StorageClass` | LifecycleRule.StorageTransition.`getStorageClass()`
    `StorageClass` | LifecycleRule.NoncurrentVersionStorageTransition.`getStorageClass()`
    `StorageClass` | CreateBucketRequest.`getStorageClass()`
    `StorageClass` | Bucket.`getStorageClass()` Gets the storage class
    `static StorageClass` | StorageClass.`parse(String storageClassString)`
    `static StorageClass` | StorageClass.`valueOf(String name)` 返回带有指定名称的该类型的枚举常量。
    `static StorageClass[]` | StorageClass.`values()` 按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。

    参数类型为StorageClass的com.aliyun.oss.model中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | LifecycleRule.StorageTransition.`setStorageClass(StorageClass storageClass)`
    `void` | LifecycleRule.NoncurrentVersionStorageTransition.`setStorageClass(StorageClass storageClass)`
    `void` | CreateBucketRequest.`setStorageClass(StorageClass storageClass)`
    `void` | Bucket.`setStorageClass(StorageClass storageClass)` Sets the bucket's storage class
    `CreateBucketRequest` | CreateBucketRequest.`withStorageType(StorageClass storageClass)`
    `LifecycleRule.StorageTransition` | LifecycleRule.StorageTransition.`withStrorageClass(StorageClass storageClass)`
    `LifecycleRule.NoncurrentVersionStorageTransition` | LifecycleRule.NoncurrentVersionStorageTransition.`withStrorageClass(StorageClass storageClass)`

    参数类型为StorageClass的com.aliyun.oss.model中的构造器
    构造器和说明
    `LifecycleRule.NoncurrentVersionStorageTransition(Integer noncurrentDays, StorageClass storageClass)`
    `LifecycleRule.StorageTransition(Date createdBeforeDate, StorageClass storageClass)`
    `LifecycleRule.StorageTransition(Integer expirationDays, StorageClass storageClass)`

Copyright © 2020. All Rights Reserved.