@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CopyBackupRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CopyBackupRequest() |
Modifier and Type | Method and Description |
---|---|
CopyBackupRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientRequestToken() |
Boolean |
getCopyTags()
A boolean flag indicating whether tags from the source backup should be copied to the backup copy.
|
String |
getKmsKeyId() |
String |
getSourceBackupId()
The ID of the source backup.
|
String |
getSourceRegion()
The source Amazon Web Services Region of the backup.
|
List<Tag> |
getTags() |
int |
hashCode() |
Boolean |
isCopyTags()
A boolean flag indicating whether tags from the source backup should be copied to the backup copy.
|
void |
setClientRequestToken(String clientRequestToken) |
void |
setCopyTags(Boolean copyTags)
A boolean flag indicating whether tags from the source backup should be copied to the backup copy.
|
void |
setKmsKeyId(String kmsKeyId) |
void |
setSourceBackupId(String sourceBackupId)
The ID of the source backup.
|
void |
setSourceRegion(String sourceRegion)
The source Amazon Web Services Region of the backup.
|
void |
setTags(Collection<Tag> tags) |
String |
toString()
Returns a string representation of this object.
|
CopyBackupRequest |
withClientRequestToken(String clientRequestToken) |
CopyBackupRequest |
withCopyTags(Boolean copyTags)
A boolean flag indicating whether tags from the source backup should be copied to the backup copy.
|
CopyBackupRequest |
withKmsKeyId(String kmsKeyId) |
CopyBackupRequest |
withSourceBackupId(String sourceBackupId)
The ID of the source backup.
|
CopyBackupRequest |
withSourceRegion(String sourceRegion)
The source Amazon Web Services Region of the backup.
|
CopyBackupRequest |
withTags(Collection<Tag> tags) |
CopyBackupRequest |
withTags(Tag... tags)
NOTE: This method appends the values to the existing list (if any).
|
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 setClientRequestToken(String clientRequestToken)
clientRequestToken
- public String getClientRequestToken()
public CopyBackupRequest withClientRequestToken(String clientRequestToken)
clientRequestToken
- public void setSourceBackupId(String sourceBackupId)
The ID of the source backup. Specifies the ID of the backup that is being copied.
sourceBackupId
- The ID of the source backup. Specifies the ID of the backup that is being copied.public String getSourceBackupId()
The ID of the source backup. Specifies the ID of the backup that is being copied.
public CopyBackupRequest withSourceBackupId(String sourceBackupId)
The ID of the source backup. Specifies the ID of the backup that is being copied.
sourceBackupId
- The ID of the source backup. Specifies the ID of the backup that is being copied.public void setSourceRegion(String sourceRegion)
The source Amazon Web Services Region of the backup. Specifies the Amazon Web Services Region from which the backup is being copied. The source and destination Regions must be in the same Amazon Web Services partition. If you don't specify a Region, it defaults to the Region where the request is sent from (in-Region copy).
sourceRegion
- The source Amazon Web Services Region of the backup. Specifies the Amazon Web Services Region from which
the backup is being copied. The source and destination Regions must be in the same Amazon Web Services
partition. If you don't specify a Region, it defaults to the Region where the request is sent from
(in-Region copy).public String getSourceRegion()
The source Amazon Web Services Region of the backup. Specifies the Amazon Web Services Region from which the backup is being copied. The source and destination Regions must be in the same Amazon Web Services partition. If you don't specify a Region, it defaults to the Region where the request is sent from (in-Region copy).
public CopyBackupRequest withSourceRegion(String sourceRegion)
The source Amazon Web Services Region of the backup. Specifies the Amazon Web Services Region from which the backup is being copied. The source and destination Regions must be in the same Amazon Web Services partition. If you don't specify a Region, it defaults to the Region where the request is sent from (in-Region copy).
sourceRegion
- The source Amazon Web Services Region of the backup. Specifies the Amazon Web Services Region from which
the backup is being copied. The source and destination Regions must be in the same Amazon Web Services
partition. If you don't specify a Region, it defaults to the Region where the request is sent from
(in-Region copy).public void setKmsKeyId(String kmsKeyId)
kmsKeyId
- public String getKmsKeyId()
public CopyBackupRequest withKmsKeyId(String kmsKeyId)
kmsKeyId
- public void setCopyTags(Boolean copyTags)
A boolean flag indicating whether tags from the source backup should be copied to the backup copy. This value defaults to false.
If you set CopyTags
to true and the source backup has existing tags, you can use the
Tags
parameter to create new tags, provided that the sum of the source backup tags and the new tags
doesn't exceed 50. Both sets of tags are merged. If there are tag conflicts (for example, two tags with the same
key but different values), the tags created with the Tags
parameter take precedence.
copyTags
- A boolean flag indicating whether tags from the source backup should be copied to the backup copy. This
value defaults to false.
If you set CopyTags
to true and the source backup has existing tags, you can use the
Tags
parameter to create new tags, provided that the sum of the source backup tags and the
new tags doesn't exceed 50. Both sets of tags are merged. If there are tag conflicts (for example, two
tags with the same key but different values), the tags created with the Tags
parameter take
precedence.
public Boolean getCopyTags()
A boolean flag indicating whether tags from the source backup should be copied to the backup copy. This value defaults to false.
If you set CopyTags
to true and the source backup has existing tags, you can use the
Tags
parameter to create new tags, provided that the sum of the source backup tags and the new tags
doesn't exceed 50. Both sets of tags are merged. If there are tag conflicts (for example, two tags with the same
key but different values), the tags created with the Tags
parameter take precedence.
If you set CopyTags
to true and the source backup has existing tags, you can use the
Tags
parameter to create new tags, provided that the sum of the source backup tags and the
new tags doesn't exceed 50. Both sets of tags are merged. If there are tag conflicts (for example, two
tags with the same key but different values), the tags created with the Tags
parameter take
precedence.
public CopyBackupRequest withCopyTags(Boolean copyTags)
A boolean flag indicating whether tags from the source backup should be copied to the backup copy. This value defaults to false.
If you set CopyTags
to true and the source backup has existing tags, you can use the
Tags
parameter to create new tags, provided that the sum of the source backup tags and the new tags
doesn't exceed 50. Both sets of tags are merged. If there are tag conflicts (for example, two tags with the same
key but different values), the tags created with the Tags
parameter take precedence.
copyTags
- A boolean flag indicating whether tags from the source backup should be copied to the backup copy. This
value defaults to false.
If you set CopyTags
to true and the source backup has existing tags, you can use the
Tags
parameter to create new tags, provided that the sum of the source backup tags and the
new tags doesn't exceed 50. Both sets of tags are merged. If there are tag conflicts (for example, two
tags with the same key but different values), the tags created with the Tags
parameter take
precedence.
public Boolean isCopyTags()
A boolean flag indicating whether tags from the source backup should be copied to the backup copy. This value defaults to false.
If you set CopyTags
to true and the source backup has existing tags, you can use the
Tags
parameter to create new tags, provided that the sum of the source backup tags and the new tags
doesn't exceed 50. Both sets of tags are merged. If there are tag conflicts (for example, two tags with the same
key but different values), the tags created with the Tags
parameter take precedence.
If you set CopyTags
to true and the source backup has existing tags, you can use the
Tags
parameter to create new tags, provided that the sum of the source backup tags and the
new tags doesn't exceed 50. Both sets of tags are merged. If there are tag conflicts (for example, two
tags with the same key but different values), the tags created with the Tags
parameter take
precedence.
public void setTags(Collection<Tag> tags)
tags
- public CopyBackupRequest withTags(Tag... tags)
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- public CopyBackupRequest withTags(Collection<Tag> tags)
tags
- public String toString()
toString
in class Object
Object.toString()
public CopyBackupRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()