public class LifecycleConfiguration.Transition extends LifecycleConfiguration.TimeEvent
date, days, storageClass| 构造器 | 说明 |
|---|---|
Transition() |
|
Transition(Date date,
StorageClassEnum storageClass) |
Constructor
|
Transition(Date date,
String storageClass) |
已过时。
|
Transition(Integer days,
StorageClassEnum storageClass) |
Constructor
|
Transition(Integer days,
String storageClass) |
已过时。
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Date |
getDate() |
Obtain the object transition date.
|
Integer |
getDays() |
Obtain the object transition time.
|
StorageClassEnum |
getObjectStorageClass() |
Obtain the storage class of the object after transition.
|
String |
getStorageClass() |
已过时。
|
void |
setDate(Date date) |
Set the object transition date.
|
void |
setDays(Integer days) |
Set the object transition time.
|
void |
setObjectStorageClass(StorageClassEnum storageClass) |
Set the storage class of the object after transition.
|
void |
setStorageClass(String storageClass) |
已过时。
|
String |
toString() |
equals, hashCodepublic Transition()
@Deprecated public Transition(Date date, String storageClass)
date - Date when the object is transitedstorageClass - Storage class of the object after it is transited.
Possible values are "WARM" and "COLD".public Transition(Date date, StorageClassEnum storageClass)
date - Date when the object is transitedstorageClass - Storage class of the object after it is transited.
Possible values are "WARM" and "COLD".@Deprecated public Transition(Integer days, String storageClass)
days - Object transition time, which indicates the number of days
when the object is automatically transited after being
created.storageClass - Storage class of the object after it is transited.
Possible values are "WARM" and "COLD".public Transition(Integer days, StorageClassEnum storageClass)
days - Object transition time, which indicates the number of days
when the object is automatically transited after being
created.storageClass - Storage class of the object after it is transited.
Possible values are "WARM" and "COLD".@Deprecated public String getStorageClass()
getObjectStorageClass()@Deprecated public void setStorageClass(String storageClass)
storageClass - Storage class of the object after transitionsetObjectStorageClass(StorageClassEnum storageClass)public StorageClassEnum getObjectStorageClass()
public void setObjectStorageClass(StorageClassEnum storageClass)
storageClass - Storage class of the object after transitionpublic Integer getDays()
public void setDays(Integer days)
days - Object transition time, which indicates the number of days
when the object is automatically transited after being
created.public Date getDate()
public void setDate(Date date)
date - Date when the object is transitedCopyright © 2025. All rights reserved.