public static interface BackupSelection.Builder extends SdkPojo, CopyableBuilder<BackupSelection.Builder,BackupSelection>
| Modifier and Type | Method and Description |
|---|---|
BackupSelection.Builder |
conditions(Conditions conditions)
A list of conditions that you define to assign resources to your backup plans using tags.
|
default BackupSelection.Builder |
conditions(Consumer<Conditions.Builder> conditions)
A list of conditions that you define to assign resources to your backup plans using tags.
|
BackupSelection.Builder |
iamRoleArn(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.Builder |
listOfTags(Collection<Condition> listOfTags)
A list of conditions that you define to assign resources to your backup plans using tags.
|
BackupSelection.Builder |
listOfTags(Condition... listOfTags)
A list of conditions that you define to assign resources to your backup plans using tags.
|
BackupSelection.Builder |
listOfTags(Consumer<Condition.Builder>... listOfTags)
A list of conditions that you define to assign resources to your backup plans using tags.
|
BackupSelection.Builder |
notResources(Collection<String> notResources)
A list of Amazon Resource Names (ARNs) to exclude from a backup plan.
|
BackupSelection.Builder |
notResources(String... notResources)
A list of Amazon Resource Names (ARNs) to exclude from a backup plan.
|
BackupSelection.Builder |
resources(Collection<String> resources)
A list of Amazon Resource Names (ARNs) to assign to a backup plan.
|
BackupSelection.Builder |
resources(String... resources)
A list of Amazon Resource Names (ARNs) to assign to a backup plan.
|
BackupSelection.Builder |
selectionName(String selectionName)
The display name of a resource selection document.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildBackupSelection.Builder selectionName(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.BackupSelection.Builder iamRoleArn(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.BackupSelection.Builder resources(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.
BackupSelection.Builder resources(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.
BackupSelection.Builder listOfTags(Collection<Condition> listOfTags)
A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "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": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "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.
BackupSelection.Builder listOfTags(Condition... listOfTags)
A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "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": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "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.
BackupSelection.Builder listOfTags(Consumer<Condition.Builder>... listOfTags)
A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "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.
Condition.Builder avoiding the need to create one
manually via Condition.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #listOfTags(List.
listOfTags - a consumer that will call methods on
Condition.Builder#listOfTags(java.util.Collection) BackupSelection.Builder notResources(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.
BackupSelection.Builder notResources(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.
BackupSelection.Builder conditions(Conditions conditions)
A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "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": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "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.
default BackupSelection.Builder conditions(Consumer<Conditions.Builder> conditions)
A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "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.Builder avoiding the need to
create one manually via Conditions.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to conditions(Conditions).
conditions - a consumer that will call methods on Conditions.Builderconditions(Conditions)Copyright © 2023. All rights reserved.