@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BackupSelection extends Object implements Serializable, Cloneable, StructuredPojo
Used to specify a set of resources to a backup plan.
Specifying your desired Conditions
, ListOfTags
, NotResources
, and/or
Resources
is recommended. If none of these are specified, Backup will attempt to select all supported
and opted-in storage resources, which could have unintended cost implications.
Constructor and Description |
---|
BackupSelection() |
Modifier and Type | Method and Description |
---|---|
BackupSelection |
clone() |
boolean |
equals(Object obj) |
Conditions |
getConditions()
A list of conditions that you define to assign resources to your backup plans using tags.
|
String |
getIamRoleArn()
The ARN of the IAM role that Backup uses to authenticate when backing up the target resource; for example,
arn:aws:iam::123456789012:role/S3Access . |
List<Condition> |
getListOfTags()
A list of conditions that you define to assign resources to your backup plans using tags.
|
List<String> |
getNotResources()
A list of Amazon Resource Names (ARNs) to exclude from a backup plan.
|
List<String> |
getResources()
A list of Amazon Resource Names (ARNs) to assign to a backup plan.
|
String |
getSelectionName()
The display name of a resource selection document.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setConditions(Conditions conditions)
A list of conditions that you define to assign resources to your backup plans using tags.
|
void |
setIamRoleArn(String iamRoleArn)
The ARN of the IAM role that Backup uses to authenticate when backing up the target resource; for example,
arn:aws:iam::123456789012:role/S3Access . |
void |
setListOfTags(Collection<Condition> listOfTags)
A list of conditions that you define to assign resources to your backup plans using tags.
|
void |
setNotResources(Collection<String> notResources)
A list of Amazon Resource Names (ARNs) to exclude from a backup plan.
|
void |
setResources(Collection<String> resources)
A list of Amazon Resource Names (ARNs) to assign to a backup plan.
|
void |
setSelectionName(String selectionName)
The display name of a resource selection document.
|
String |
toString()
Returns a string representation of this object.
|
BackupSelection |
withConditions(Conditions conditions)
A list of conditions that you define to assign resources to your backup plans using tags.
|
BackupSelection |
withIamRoleArn(String iamRoleArn)
The ARN of the IAM role that Backup uses to authenticate when backing up the target resource; for example,
arn:aws:iam::123456789012:role/S3Access . |
BackupSelection |
withListOfTags(Collection<Condition> listOfTags)
A list of conditions that you define to assign resources to your backup plans using tags.
|
BackupSelection |
withListOfTags(Condition... listOfTags)
A list of conditions that you define to assign resources to your backup plans using tags.
|
BackupSelection |
withNotResources(Collection<String> notResources)
A list of Amazon Resource Names (ARNs) to exclude from a backup plan.
|
BackupSelection |
withNotResources(String... notResources)
A list of Amazon Resource Names (ARNs) to exclude from a backup plan.
|
BackupSelection |
withResources(Collection<String> resources)
A list of Amazon Resource Names (ARNs) to assign to a backup plan.
|
BackupSelection |
withResources(String... resources)
A list of Amazon Resource Names (ARNs) to assign to a backup plan.
|
BackupSelection |
withSelectionName(String selectionName)
The display name of a resource selection document.
|
public void setSelectionName(String selectionName)
The display name of a resource selection document. Must contain 1 to 50 alphanumeric or '-_.' characters.
selectionName
- The display name of a resource selection document. Must contain 1 to 50 alphanumeric or '-_.' characters.public String getSelectionName()
The display name of a resource selection document. Must contain 1 to 50 alphanumeric or '-_.' characters.
public BackupSelection withSelectionName(String selectionName)
The display name of a resource selection document. Must contain 1 to 50 alphanumeric or '-_.' characters.
selectionName
- The display name of a resource selection document. Must contain 1 to 50 alphanumeric or '-_.' characters.public void setIamRoleArn(String iamRoleArn)
The ARN of the IAM role that Backup uses to authenticate when backing up the target resource; for example,
arn:aws:iam::123456789012:role/S3Access
.
iamRoleArn
- The ARN of the IAM role that Backup uses to authenticate when backing up the target resource; for example,
arn:aws:iam::123456789012:role/S3Access
.public String getIamRoleArn()
The ARN of the IAM role that Backup uses to authenticate when backing up the target resource; for example,
arn:aws:iam::123456789012:role/S3Access
.
arn:aws:iam::123456789012:role/S3Access
.public BackupSelection withIamRoleArn(String iamRoleArn)
The ARN of the IAM role that Backup uses to authenticate when backing up the target resource; for example,
arn:aws:iam::123456789012:role/S3Access
.
iamRoleArn
- The ARN of the IAM role that Backup uses to authenticate when backing up the target resource; for example,
arn:aws:iam::123456789012:role/S3Access
.public List<String> getResources()
A list of Amazon Resource Names (ARNs) to assign to a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
If you need to assign many resources to a backup plan, consider a different resource selection strategy, such as assigning all resources of a resource type or refining your resource selection using tags.
If you need to assign many resources to a backup plan, consider a different resource selection strategy, such as assigning all resources of a resource type or refining your resource selection using tags.
public void setResources(Collection<String> resources)
A list of Amazon Resource Names (ARNs) to assign to a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
If you need to assign many resources to a backup plan, consider a different resource selection strategy, such as assigning all resources of a resource type or refining your resource selection using tags.
resources
- A list of Amazon Resource Names (ARNs) to assign to a backup plan. The maximum number of ARNs is 500
without wildcards, or 30 ARNs with wildcards.
If you need to assign many resources to a backup plan, consider a different resource selection strategy, such as assigning all resources of a resource type or refining your resource selection using tags.
public BackupSelection withResources(String... resources)
A list of Amazon Resource Names (ARNs) to assign to a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
If you need to assign many resources to a backup plan, consider a different resource selection strategy, such as assigning all resources of a resource type or refining your resource selection using tags.
NOTE: This method appends the values to the existing list (if any). Use
setResources(java.util.Collection)
or withResources(java.util.Collection)
if you want to
override the existing values.
resources
- A list of Amazon Resource Names (ARNs) to assign to a backup plan. The maximum number of ARNs is 500
without wildcards, or 30 ARNs with wildcards.
If you need to assign many resources to a backup plan, consider a different resource selection strategy, such as assigning all resources of a resource type or refining your resource selection using tags.
public BackupSelection withResources(Collection<String> resources)
A list of Amazon Resource Names (ARNs) to assign to a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
If you need to assign many resources to a backup plan, consider a different resource selection strategy, such as assigning all resources of a resource type or refining your resource selection using tags.
resources
- A list of Amazon Resource Names (ARNs) to assign to a backup plan. The maximum number of ARNs is 500
without wildcards, or 30 ARNs with wildcards.
If you need to assign many resources to a backup plan, consider a different resource selection strategy, such as assigning all resources of a resource type or refining your resource selection using tags.
public List<Condition> getListOfTags()
A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },
. Condition operators
are case sensitive.
ListOfTags
differs from Conditions
as follows:
When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
ListOfTags
only supports StringEquals
. Conditions
supports
StringEquals
, StringLike
, StringNotEquals
, and StringNotLike
.
"StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },
. Condition
operators are case sensitive.
ListOfTags
differs from Conditions
as follows:
When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
ListOfTags
only supports StringEquals
. Conditions
supports
StringEquals
, StringLike
, StringNotEquals
, and
StringNotLike
.
public void setListOfTags(Collection<Condition> listOfTags)
A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },
. Condition operators
are case sensitive.
ListOfTags
differs from Conditions
as follows:
When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
ListOfTags
only supports StringEquals
. Conditions
supports
StringEquals
, StringLike
, StringNotEquals
, and StringNotLike
.
listOfTags
- A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },
. Condition
operators are case sensitive.
ListOfTags
differs from Conditions
as follows:
When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
ListOfTags
only supports StringEquals
. Conditions
supports
StringEquals
, StringLike
, StringNotEquals
, and
StringNotLike
.
public BackupSelection withListOfTags(Condition... listOfTags)
A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },
. Condition operators
are case sensitive.
ListOfTags
differs from Conditions
as follows:
When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
ListOfTags
only supports StringEquals
. Conditions
supports
StringEquals
, StringLike
, StringNotEquals
, and StringNotLike
.
NOTE: This method appends the values to the existing list (if any). Use
setListOfTags(java.util.Collection)
or withListOfTags(java.util.Collection)
if you want to
override the existing values.
listOfTags
- A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },
. Condition
operators are case sensitive.
ListOfTags
differs from Conditions
as follows:
When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
ListOfTags
only supports StringEquals
. Conditions
supports
StringEquals
, StringLike
, StringNotEquals
, and
StringNotLike
.
public BackupSelection withListOfTags(Collection<Condition> listOfTags)
A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },
. Condition operators
are case sensitive.
ListOfTags
differs from Conditions
as follows:
When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
ListOfTags
only supports StringEquals
. Conditions
supports
StringEquals
, StringLike
, StringNotEquals
, and StringNotLike
.
listOfTags
- A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },
. Condition
operators are case sensitive.
ListOfTags
differs from Conditions
as follows:
When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
ListOfTags
only supports StringEquals
. Conditions
supports
StringEquals
, StringLike
, StringNotEquals
, and
StringNotLike
.
public List<String> getNotResources()
A list of Amazon Resource Names (ARNs) to exclude from a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
If you need to exclude many resources from a backup plan, consider a different resource selection strategy, such as assigning only one or a few resource types or refining your resource selection using tags.
If you need to exclude many resources from a backup plan, consider a different resource selection strategy, such as assigning only one or a few resource types or refining your resource selection using tags.
public void setNotResources(Collection<String> notResources)
A list of Amazon Resource Names (ARNs) to exclude from a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
If you need to exclude many resources from a backup plan, consider a different resource selection strategy, such as assigning only one or a few resource types or refining your resource selection using tags.
notResources
- A list of Amazon Resource Names (ARNs) to exclude from a backup plan. The maximum number of ARNs is 500
without wildcards, or 30 ARNs with wildcards.
If you need to exclude many resources from a backup plan, consider a different resource selection strategy, such as assigning only one or a few resource types or refining your resource selection using tags.
public BackupSelection withNotResources(String... notResources)
A list of Amazon Resource Names (ARNs) to exclude from a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
If you need to exclude many resources from a backup plan, consider a different resource selection strategy, such as assigning only one or a few resource types or refining your resource selection using tags.
NOTE: This method appends the values to the existing list (if any). Use
setNotResources(java.util.Collection)
or withNotResources(java.util.Collection)
if you want to
override the existing values.
notResources
- A list of Amazon Resource Names (ARNs) to exclude from a backup plan. The maximum number of ARNs is 500
without wildcards, or 30 ARNs with wildcards.
If you need to exclude many resources from a backup plan, consider a different resource selection strategy, such as assigning only one or a few resource types or refining your resource selection using tags.
public BackupSelection withNotResources(Collection<String> notResources)
A list of Amazon Resource Names (ARNs) to exclude from a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
If you need to exclude many resources from a backup plan, consider a different resource selection strategy, such as assigning only one or a few resource types or refining your resource selection using tags.
notResources
- A list of Amazon Resource Names (ARNs) to exclude from a backup plan. The maximum number of ARNs is 500
without wildcards, or 30 ARNs with wildcards.
If you need to exclude many resources from a backup plan, consider a different resource selection strategy, such as assigning only one or a few resource types or refining your resource selection using tags.
public void setConditions(Conditions conditions)
A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },
. Condition operators
are case sensitive.
Conditions
differs from ListOfTags
as follows:
When you specify more than one condition, you only assign the resources that match ALL conditions (using AND logic).
Conditions
supports StringEquals
, StringLike
, StringNotEquals
, and StringNotLike
. ListOfTags
only supports StringEquals
.
conditions
- A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },
. Condition
operators are case sensitive.
Conditions
differs from ListOfTags
as follows:
When you specify more than one condition, you only assign the resources that match ALL conditions (using AND logic).
Conditions
supports StringEquals
, StringLike
,
StringNotEquals
, and StringNotLike
. ListOfTags
only supports
StringEquals
.
public Conditions getConditions()
A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },
. Condition operators
are case sensitive.
Conditions
differs from ListOfTags
as follows:
When you specify more than one condition, you only assign the resources that match ALL conditions (using AND logic).
Conditions
supports StringEquals
, StringLike
, StringNotEquals
, and StringNotLike
. ListOfTags
only supports StringEquals
.
"StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },
. Condition
operators are case sensitive.
Conditions
differs from ListOfTags
as follows:
When you specify more than one condition, you only assign the resources that match ALL conditions (using AND logic).
Conditions
supports StringEquals
, StringLike
,
StringNotEquals
, and StringNotLike
. ListOfTags
only supports
StringEquals
.
public BackupSelection withConditions(Conditions conditions)
A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },
. Condition operators
are case sensitive.
Conditions
differs from ListOfTags
as follows:
When you specify more than one condition, you only assign the resources that match ALL conditions (using AND logic).
Conditions
supports StringEquals
, StringLike
, StringNotEquals
, and StringNotLike
. ListOfTags
only supports StringEquals
.
conditions
- A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },
. Condition
operators are case sensitive.
Conditions
differs from ListOfTags
as follows:
When you specify more than one condition, you only assign the resources that match ALL conditions (using AND logic).
Conditions
supports StringEquals
, StringLike
,
StringNotEquals
, and StringNotLike
. ListOfTags
only supports
StringEquals
.
public String toString()
toString
in class Object
Object.toString()
public BackupSelection clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.