public class LifecycleConfiguration.Transition extends LifecycleConfiguration.TimeEvent
date, days, storageClass
Constructor and Description |
---|
LifecycleConfiguration.Transition() |
LifecycleConfiguration.Transition(Date date,
StorageClassEnum storageClass)
Constructor
|
LifecycleConfiguration.Transition(Date date,
String storageClass)
Deprecated.
|
LifecycleConfiguration.Transition(Integer days,
StorageClassEnum storageClass)
Constructor
|
LifecycleConfiguration.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 LifecycleConfiguration.Transition()
@Deprecated public LifecycleConfiguration.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 LifecycleConfiguration.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 LifecycleConfiguration.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 LifecycleConfiguration.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 © 2019. All rights reserved.