@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 Backup uses to authenticate when backing up 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 contain Amazon Resource Names (ARNs) 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 Backup uses to authenticate when backing up 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 contain Amazon Resource Names (ARNs) 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 Backup uses to authenticate when backing up 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 contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.
|
BackupSelection |
withResources(String... resources)
An array of strings that contain Amazon Resource Names (ARNs) 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 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()
An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.
public void setResources(Collection<String> resources)
An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.
resources
- An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.public BackupSelection withResources(String... resources)
An array of strings that contain Amazon Resource Names (ARNs) 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 contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.public BackupSelection withResources(Collection<String> resources)
An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.
resources
- An array of strings that contain Amazon Resource Names (ARNs) 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"
. Assigns the backup plan to every
resource with at least one matching tag.
"StringEquals": {"ec2:ResourceTag/Department": "accounting"
. Assigns the backup plan to
every resource with at least one matching tag.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"
. Assigns the backup plan to every
resource with at least one matching tag.
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"
. Assigns the backup plan to every
resource with at least one matching tag.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"
. Assigns the backup plan to every
resource with at least one matching tag.
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"
. Assigns the backup plan to every
resource with at least one matching tag.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"
. Assigns the backup plan to every
resource with at least one matching tag.
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"
. Assigns the backup plan to every
resource with at least one matching tag.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.