public class ExtendObjectRetentionRequest extends AmazonWebServiceRequest implements Serializable
NOOP
Constructor and Description |
---|
ExtendObjectRetentionRequest()
Constructs a new ExtendObjectRetentionRequest.
|
ExtendObjectRetentionRequest(String bucketName,
String key)
Constructs a new ExtendObjectRetentionRequest.
|
ExtendObjectRetentionRequest(String bucketName,
String key,
Long additionalRetentionPeriod,
Long extendRetentionFromCurrentTime,
Date newRetentionExpirationDate,
Long newRetentionPeriod)
Constructs a new ExtendObjectRetentionRequest.
|
Modifier and Type | Method and Description |
---|---|
Long |
getAdditionalRetentionPeriod() |
String |
getBucketName()
Returns the name of the bucket containing the reference to the object to
add a legal hold to.
|
Long |
getExtendRetentionFromCurrentTime() |
String |
getKey()
Gets the key, the name of the reference to the object to add a legal hold to.
|
Date |
getNewRetentionExpirationDate() |
Long |
getNewRetentionPeriod() |
void |
setAdditionalRetentionPeriod(Long additionalRetentionPeriod) |
void |
setBucketName(String bucketName)
Sets the name of the bucket containing the reference to the object to
add a legal hold to.
|
void |
setExtendRetentionFromCurrentTime(Long extendRetentionFromCurrentTime) |
void |
setKey(String key)
Sets the key, the name of the reference to the object to add a legal hold to.
|
void |
setNewRetentionExpirationDate(Date newRetentionExpirationDate) |
void |
setNewRetentionPeriod(Long newRetentionPeriod) |
ExtendObjectRetentionRequest |
withAdditionalRetentionPeriod(Long additionalRetentionPeriod) |
ExtendObjectRetentionRequest |
withBucketName(String bucketName)
Sets the name of the bucket containing the reference to the object to
add a legal hold to, and returns a reference to this
object(AddLegalHoldRequest) for method chaining.
|
ExtendObjectRetentionRequest |
withExtendRetentionFromCurrentTime(Long extendRetentionFromCurrentTime) |
ExtendObjectRetentionRequest |
withKey(String key)
Sets the key, the name of the reference to the object to add a legal hold to.
|
ExtendObjectRetentionRequest |
withNewRetentionExpirationDate(Date newRetentionExpirationDate) |
ExtendObjectRetentionRequest |
withNewRetentionPeriod(Long newRetentionPeriod) |
addHandlerContext, clone, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public ExtendObjectRetentionRequest()
Constructs a new ExtendObjectRetentionRequest.
public ExtendObjectRetentionRequest(String bucketName, String key)
Constructs a new ExtendObjectRetentionRequest.
*bucketName
- The name of the bucket containing the reference to the object
to add a legal hold to.key
- The key, the name of the reference to the object to add a legal hold to.public ExtendObjectRetentionRequest(String bucketName, String key, Long additionalRetentionPeriod, Long extendRetentionFromCurrentTime, Date newRetentionExpirationDate, Long newRetentionPeriod)
Constructs a new ExtendObjectRetentionRequest.
bucketName
- The name of the bucket containing the reference to the object
to add a legal hold to.key
- The key, the name of the reference to the object to add a legal hold to.additionalRetentionPeriod
- The additional retention period in seconds.extendRetentionFromCurrentTime
- The extended retention period in seconds.newRetentionExpirationDate
- The new retention period.newRetentionPeriod
- The new retention period in seconds.public String getBucketName()
public ExtendObjectRetentionRequest withBucketName(String bucketName)
public void setBucketName(String bucketName)
public String getKey()
public void setKey(String key)
public ExtendObjectRetentionRequest withKey(String key)
public Long getAdditionalRetentionPeriod()
public void setAdditionalRetentionPeriod(Long additionalRetentionPeriod)
public ExtendObjectRetentionRequest withAdditionalRetentionPeriod(Long additionalRetentionPeriod)
public Long getExtendRetentionFromCurrentTime()
public void setExtendRetentionFromCurrentTime(Long extendRetentionFromCurrentTime)
public ExtendObjectRetentionRequest withExtendRetentionFromCurrentTime(Long extendRetentionFromCurrentTime)
public Date getNewRetentionExpirationDate()
public void setNewRetentionExpirationDate(Date newRetentionExpirationDate)
public ExtendObjectRetentionRequest withNewRetentionExpirationDate(Date newRetentionExpirationDate)
public Long getNewRetentionPeriod()
public void setNewRetentionPeriod(Long newRetentionPeriod)
public ExtendObjectRetentionRequest withNewRetentionPeriod(Long newRetentionPeriod)
Copyright © 2024. All rights reserved.