public class LifecycleConfiguration.Expiration extends LifecycleConfiguration.TimeEvent
date, days, storageClass
Constructor and Description |
---|
LifecycleConfiguration.Expiration() |
LifecycleConfiguration.Expiration(Date date)
Constructor
|
LifecycleConfiguration.Expiration(Integer days)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Date |
getDate()
Obtain the object expiration date.
|
Integer |
getDays()
Obtain the expiration time of the object.
|
void |
setDate(Date date)
Obtain the object expiration date.
|
void |
setDays(Integer days)
Set the object expiration time.
|
String |
toString() |
equals, hashCode
public LifecycleConfiguration.Expiration()
public LifecycleConfiguration.Expiration(Date date)
date
- A specified date in which the object will expirepublic LifecycleConfiguration.Expiration(Integer days)
days
- Object expiration time, specifying how many days after creation will the object expirepublic Integer getDays()
public void setDays(Integer days)
days
- Object expiration time, specifying how many days after creation will the object expirepublic Date getDate()
public void setDate(Date date)
date
- A specified date in which the object will expireCopyright © 2019. All rights reserved.