public class LifecycleConfiguration.Transition extends LifecycleConfiguration.TimeEvent
date, days, storageClass
Constructor and Description |
---|
Transition() |
Transition(Date date,
StorageClassEnum storageClass)
Constructor
|
Transition(Date date,
String storageClass)
Deprecated.
|
Transition(Integer days,
StorageClassEnum storageClass)
Constructor
|
Transition(Integer days,
String storageClass)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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()
Deprecated.
|
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)
Deprecated.
|
String |
toString() |
equals, hashCode
public 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 © 2021. All rights reserved.