public class LifecycleConfiguration.Expiration extends LifecycleConfiguration.TimeEvent
date, days, storageClass| 构造器和说明 |
|---|
Expiration() |
Expiration(Date date)
Constructor
|
Expiration(Integer days)
Constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
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, hashCodepublic Expiration()
public Expiration(Date date)
date - A specified date in which the object will expirepublic 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 © 2021. All rights reserved.