public class AddLegalHoldRequest extends AmazonWebServiceRequest implements Serializable
NOOP
Constructor and Description |
---|
AddLegalHoldRequest(String bucketName,
String key,
String legalHoldId)
Constructs a new AddLegalHoldRequest.
|
Modifier and Type | Method and Description |
---|---|
String |
getBucketName()
Returns the name of the bucket containing the reference to the object to
add a legal hold to.
|
String |
getKey()
Gets the key, the name of the reference to the object to add a legal hold to.
|
String |
getLegalHoldId()
Returns the legal hold id to be added.
|
void |
setBucketName(String bucketName)
Sets the name of the bucket containing the reference to the object to
add a legal hold to.
|
void |
setKey(String key)
Sets the key, the name of the reference to the object to add a legal hold to.
|
void |
setLegalHoldId(String legalHoldId)
Sets the legal hold id to be added.
|
AddLegalHoldRequest |
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.
|
AddLegalHoldRequest |
withKey(String key)
Sets the key, the name of the reference to the object to add a legal hold to.
|
AddLegalHoldRequest |
withLegalHoldId(String legalHoldId)
Sets the legal hold id to be added and returns a reference to
this object for method chaining.
|
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 AddLegalHoldRequest(String bucketName, String key, String legalHoldId)
Constructs a new AddLegalHoldRequest.
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.legalHoldId
- The id of the legal hold to add.public String getBucketName()
public AddLegalHoldRequest withBucketName(String bucketName)
public void setBucketName(String bucketName)
public String getKey()
public void setKey(String key)
public AddLegalHoldRequest withKey(String key)
public String getLegalHoldId()
public void setLegalHoldId(String legalHoldId)
public AddLegalHoldRequest withLegalHoldId(String legalHoldId)
Copyright © 2024. All rights reserved.