@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.
Constructor and Description |
---|
BackupSelection() |
Modifier and Type | Method and Description |
---|---|
BackupSelection |
clone() |
boolean |
equals(Object obj) |
String |
getIamRoleArn()
The ARN of the IAM role that AWS Backup uses to authenticate when restoring the target resource; for example,
arn:aws:iam::123456789012:role/S3Access . |
List<Condition> |
getListOfTags()
An array of conditions used to specify a set of resources to assign to a backup plan; for example,
"StringEquals": {"ec2:ResourceTag/Department": "accounting" . |
List<String> |
getResources()
An array of strings that either contain Amazon Resource Names (ARNs) or match patterns such as "
arn:aws:ec2:us-east-1:123456789012:volume/* " of resources 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 |
setIamRoleArn(String iamRoleArn)
The ARN of the IAM role that AWS Backup uses to authenticate when restoring the target resource; for example,
arn:aws:iam::123456789012:role/S3Access . |
void |
setListOfTags(Collection<Condition> listOfTags)
An array of conditions used to specify a set of resources to assign to a backup plan; for example,
"StringEquals": {"ec2:ResourceTag/Department": "accounting" . |
void |
setResources(Collection<String> resources)
An array of strings that either contain Amazon Resource Names (ARNs) or match patterns such as "
arn:aws:ec2:us-east-1:123456789012:volume/* " of resources 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 |
withIamRoleArn(String iamRoleArn)
The ARN of the IAM role that AWS Backup uses to authenticate when restoring the target resource; for example,
arn:aws:iam::123456789012:role/S3Access . |
BackupSelection |
withListOfTags(Collection<Condition> listOfTags)
An array of conditions used to specify a set of resources to assign to a backup plan; for example,
"StringEquals": {"ec2:ResourceTag/Department": "accounting" . |
BackupSelection |
withListOfTags(Condition... listOfTags)
An array of conditions used to specify a set of resources to assign to a backup plan; for example,
"StringEquals": {"ec2:ResourceTag/Department": "accounting" . |
BackupSelection |
withResources(Collection<String> resources)
An array of strings that either contain Amazon Resource Names (ARNs) or match patterns such as "
arn:aws:ec2:us-east-1:123456789012:volume/* " of resources to assign to a backup plan. |
BackupSelection |
withResources(String... resources)
An array of strings that either contain Amazon Resource Names (ARNs) or match patterns such as "
arn:aws:ec2:us-east-1:123456789012:volume/* " of resources 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.
selectionName
- The display name of a resource selection document.public String getSelectionName()
The display name of a resource selection document.
public BackupSelection withSelectionName(String selectionName)
The display name of a resource selection document.
selectionName
- The display name of a resource selection document.public void setIamRoleArn(String iamRoleArn)
The ARN of the IAM role that AWS Backup uses to authenticate when restoring the target resource; for example,
arn:aws:iam::123456789012:role/S3Access
.
iamRoleArn
- The ARN of the IAM role that AWS Backup uses to authenticate when restoring the target resource; for
example, arn:aws:iam::123456789012:role/S3Access
.public String getIamRoleArn()
The ARN of the IAM role that AWS Backup uses to authenticate when restoring 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 AWS Backup uses to authenticate when restoring the target resource; for example,
arn:aws:iam::123456789012:role/S3Access
.
iamRoleArn
- The ARN of the IAM role that AWS Backup uses to authenticate when restoring the target resource; for
example, arn:aws:iam::123456789012:role/S3Access
.public List<String> getResources()
An array of strings that either contain Amazon Resource Names (ARNs) or match patterns such as "
arn:aws:ec2:us-east-1:123456789012:volume/*
" of resources to assign to a backup plan.
arn:aws:ec2:us-east-1:123456789012:volume/*
" of resources to assign to a backup plan.public void setResources(Collection<String> resources)
An array of strings that either contain Amazon Resource Names (ARNs) or match patterns such as "
arn:aws:ec2:us-east-1:123456789012:volume/*
" of resources to assign to a backup plan.
resources
- An array of strings that either contain Amazon Resource Names (ARNs) or match patterns such as "
arn:aws:ec2:us-east-1:123456789012:volume/*
" of resources to assign to a backup plan.public BackupSelection withResources(String... resources)
An array of strings that either contain Amazon Resource Names (ARNs) or match patterns such as "
arn:aws:ec2:us-east-1:123456789012:volume/*
" of resources to assign to a backup plan.
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
- An array of strings that either contain Amazon Resource Names (ARNs) or match patterns such as "
arn:aws:ec2:us-east-1:123456789012:volume/*
" of resources to assign to a backup plan.public BackupSelection withResources(Collection<String> resources)
An array of strings that either contain Amazon Resource Names (ARNs) or match patterns such as "
arn:aws:ec2:us-east-1:123456789012:volume/*
" of resources to assign to a backup plan.
resources
- An array of strings that either contain Amazon Resource Names (ARNs) or match patterns such as "
arn:aws:ec2:us-east-1:123456789012:volume/*
" of resources to assign to a backup plan.public List<Condition> getListOfTags()
An array of conditions used to specify a set of resources to assign to a backup plan; for example,
"StringEquals": {"ec2:ResourceTag/Department": "accounting"
.
"StringEquals": {"ec2:ResourceTag/Department": "accounting"
.public void setListOfTags(Collection<Condition> listOfTags)
An array of conditions used to specify a set of resources to assign to a backup plan; for example,
"StringEquals": {"ec2:ResourceTag/Department": "accounting"
.
listOfTags
- An array of conditions used to specify a set of resources to assign to a backup plan; for example,
"StringEquals": {"ec2:ResourceTag/Department": "accounting"
.public BackupSelection withListOfTags(Condition... listOfTags)
An array of conditions used to specify a set of resources to assign to a backup plan; for example,
"StringEquals": {"ec2:ResourceTag/Department": "accounting"
.
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
- An array of conditions used to specify a set of resources to assign to a backup plan; for example,
"StringEquals": {"ec2:ResourceTag/Department": "accounting"
.public BackupSelection withListOfTags(Collection<Condition> listOfTags)
An array of conditions used to specify a set of resources to assign to a backup plan; for example,
"StringEquals": {"ec2:ResourceTag/Department": "accounting"
.
listOfTags
- An array of conditions used to specify a set of resources to assign to a backup plan; for example,
"StringEquals": {"ec2:ResourceTag/Department": "accounting"
.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.