@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateLegalHoldRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateLegalHoldRequest() |
Modifier and Type | Method and Description |
---|---|
CreateLegalHoldRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateLegalHoldRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateLegalHoldRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDescription()
This is the string description of the legal hold.
|
String |
getIdempotencyToken()
This is a user-chosen string used to distinguish between otherwise identical calls.
|
RecoveryPointSelection |
getRecoveryPointSelection()
This specifies criteria to assign a set of resources, such as resource types or backup vaults.
|
Map<String,String> |
getTags()
Optional tags to include.
|
String |
getTitle()
This is the string title of the legal hold.
|
int |
hashCode() |
void |
setDescription(String description)
This is the string description of the legal hold.
|
void |
setIdempotencyToken(String idempotencyToken)
This is a user-chosen string used to distinguish between otherwise identical calls.
|
void |
setRecoveryPointSelection(RecoveryPointSelection recoveryPointSelection)
This specifies criteria to assign a set of resources, such as resource types or backup vaults.
|
void |
setTags(Map<String,String> tags)
Optional tags to include.
|
void |
setTitle(String title)
This is the string title of the legal hold.
|
String |
toString()
Returns a string representation of this object.
|
CreateLegalHoldRequest |
withDescription(String description)
This is the string description of the legal hold.
|
CreateLegalHoldRequest |
withIdempotencyToken(String idempotencyToken)
This is a user-chosen string used to distinguish between otherwise identical calls.
|
CreateLegalHoldRequest |
withRecoveryPointSelection(RecoveryPointSelection recoveryPointSelection)
This specifies criteria to assign a set of resources, such as resource types or backup vaults.
|
CreateLegalHoldRequest |
withTags(Map<String,String> tags)
Optional tags to include.
|
CreateLegalHoldRequest |
withTitle(String title)
This is the string title of the legal hold.
|
addHandlerContext, 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 void setTitle(String title)
This is the string title of the legal hold.
title
- This is the string title of the legal hold.public String getTitle()
This is the string title of the legal hold.
public CreateLegalHoldRequest withTitle(String title)
This is the string title of the legal hold.
title
- This is the string title of the legal hold.public void setDescription(String description)
This is the string description of the legal hold.
description
- This is the string description of the legal hold.public String getDescription()
This is the string description of the legal hold.
public CreateLegalHoldRequest withDescription(String description)
This is the string description of the legal hold.
description
- This is the string description of the legal hold.public void setIdempotencyToken(String idempotencyToken)
This is a user-chosen string used to distinguish between otherwise identical calls. Retrying a successful request with the same idempotency token results in a success message with no action taken.
idempotencyToken
- This is a user-chosen string used to distinguish between otherwise identical calls. Retrying a successful
request with the same idempotency token results in a success message with no action taken.public String getIdempotencyToken()
This is a user-chosen string used to distinguish between otherwise identical calls. Retrying a successful request with the same idempotency token results in a success message with no action taken.
public CreateLegalHoldRequest withIdempotencyToken(String idempotencyToken)
This is a user-chosen string used to distinguish between otherwise identical calls. Retrying a successful request with the same idempotency token results in a success message with no action taken.
idempotencyToken
- This is a user-chosen string used to distinguish between otherwise identical calls. Retrying a successful
request with the same idempotency token results in a success message with no action taken.public void setRecoveryPointSelection(RecoveryPointSelection recoveryPointSelection)
This specifies criteria to assign a set of resources, such as resource types or backup vaults.
recoveryPointSelection
- This specifies criteria to assign a set of resources, such as resource types or backup vaults.public RecoveryPointSelection getRecoveryPointSelection()
This specifies criteria to assign a set of resources, such as resource types or backup vaults.
public CreateLegalHoldRequest withRecoveryPointSelection(RecoveryPointSelection recoveryPointSelection)
This specifies criteria to assign a set of resources, such as resource types or backup vaults.
recoveryPointSelection
- This specifies criteria to assign a set of resources, such as resource types or backup vaults.public Map<String,String> getTags()
Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /.
public void setTags(Map<String,String> tags)
Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /.
tags
- Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your
resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - =
. _ : /.public CreateLegalHoldRequest withTags(Map<String,String> tags)
Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /.
tags
- Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your
resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - =
. _ : /.public CreateLegalHoldRequest addTagsEntry(String key, String value)
public CreateLegalHoldRequest clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public CreateLegalHoldRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()