@Generated(value="software.amazon.awssdk:codegen") public final class BackupSelection extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BackupSelection.Builder,BackupSelection>
Used to specify a set of resources to a backup plan.
| Modifier and Type | Class and Description |
|---|---|
static interface |
BackupSelection.Builder |
| Modifier and Type | Method and Description |
|---|---|
static BackupSelection.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasListOfTags()
Returns true if the ListOfTags property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasResources()
Returns true if the Resources property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
String |
iamRoleArn()
The ARN of the IAM role that AWS Backup uses to authenticate when backing up the target resource; for example,
arn:aws:iam::123456789012:role/S3Access. |
List<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". |
List<String> |
resources()
An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.
|
List<SdkField<?>> |
sdkFields() |
String |
selectionName()
The display name of a resource selection document.
|
static Class<? extends BackupSelection.Builder> |
serializableBuilderClass() |
BackupSelection.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String selectionName()
The display name of a resource selection document.
public final String iamRoleArn()
The ARN of the IAM role that AWS 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 final boolean hasResources()
public final List<String> resources()
An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasResources() to see if a value was sent in this field.
public final boolean hasListOfTags()
public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasListOfTags() to see if a value was sent in this field.
"StringEquals": {"ec2:ResourceTag/Department": "accounting". Assigns the backup plan to
every resource with at least one matching tag.public BackupSelection.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<BackupSelection.Builder,BackupSelection>public static BackupSelection.Builder builder()
public static Class<? extends BackupSelection.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.