public class ListLegalHoldsResult extends Object implements Serializable
AmazonS3Client.listLegalHolds(ListLegalHoldsRequest)
operation.Constructor and Description |
---|
ListLegalHoldsResult() |
Modifier and Type | Method and Description |
---|---|
Date |
getCreateTime()
Gets creation time for the object/
|
List<LegalHold> |
getLegalHolds()
Gets the list of legal holds for the object.
|
Date |
getRetentionExpirationDate()
Gets the retention expiration date for the object.
|
long |
getRetentionPeriod()
Gets the retention period for the object.
|
void |
setCreateTime(Date createTime)
Sets the creation time for the object.
|
void |
setLegalHolds(List<LegalHold> legalHolds)
Sets the list of legal holds for the object.
|
void |
setRetentionExpirationDate(Date retentionExpirationDate)
Sets the retention expiration date for the object.
|
void |
setRetentionPeriod(long retentionPeriod)
Sets the retention period for the object.
|
ListLegalHoldsResult |
withCreateTime(Date createTime)
Sets the creation time for the object and returns
ListLegalHoldsResult object for method chaining. |
ListLegalHoldsResult |
withExpirationDate(Date retentionExpirationDate)
Sets the retention expiration date for the object and returns
ListLegalHoldsResult object for method chaining. |
ListLegalHoldsResult |
withLegalHolds(List<LegalHold> legalHolds)
Sets the list of legal holds for the object and returns
ListLegalHoldsResult object for method chaining. |
ListLegalHoldsResult |
withRetentionPeriod(long retentionPeriod)
Sets the retention period for the object and returns
ListLegalHoldsResult object for method chaining. |
public Date getCreateTime()
public void setCreateTime(Date createTime)
createTime
- The time at which the object was created.public ListLegalHoldsResult withCreateTime(Date createTime)
ListLegalHoldsResult
object for method chaining.createTime
- The creation time for the objectpublic void setLegalHolds(List<LegalHold> legalHolds)
public ListLegalHoldsResult withLegalHolds(List<LegalHold> legalHolds)
ListLegalHoldsResult
object for method chaining.public long getRetentionPeriod()
public void setRetentionPeriod(long retentionPeriod)
retentionPeriod
- The object's retention periodpublic ListLegalHoldsResult withRetentionPeriod(long retentionPeriod)
ListLegalHoldsResult
object for method chaining.retentionPeriod
- The object's retention periodpublic Date getRetentionExpirationDate()
public void setRetentionExpirationDate(Date retentionExpirationDate)
retentionExpirationDate
- The objects' retention expiration datepublic ListLegalHoldsResult withExpirationDate(Date retentionExpirationDate)
ListLegalHoldsResult
object for method chaining.retentionExpirationDate
- The object's retention expiration dateCopyright © 2024. All rights reserved.