public class LifecycleConfiguration.Expiration extends LifecycleConfiguration.TimeEvent
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
protected Boolean |
expiredObjectDeleteMarker |
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.
|
Boolean |
getExpiredObjectDeleteMarker() |
|
void |
setDate(Date date) |
Obtain the object expiration date.
|
void |
setDays(Integer days) |
Set the object expiration time.
|
void |
setExpiredObjectDeleteMarker(Boolean expiredObjectDeleteMarker) |
|
String |
toString() |
equals, hashCodeprotected Boolean expiredObjectDeleteMarker
public 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 expirepublic Boolean getExpiredObjectDeleteMarker()
public void setExpiredObjectDeleteMarker(Boolean expiredObjectDeleteMarker)
Copyright © 2025. All rights reserved.