Interface BackupSelection.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<BackupSelection.Builder,
,BackupSelection> SdkBuilder<BackupSelection.Builder,
,BackupSelection> SdkPojo
- Enclosing class:
BackupSelection
-
Method Summary
Modifier and TypeMethodDescriptiondefault BackupSelection.Builder
conditions
(Consumer<Conditions.Builder> conditions) The conditions that you define to assign resources to your backup plans using tags.conditions
(Conditions conditions) The conditions that you define to assign resources to your backup plans using tags.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
.listOfTags
(Collection<Condition> listOfTags) The conditions that you define to assign resources to your backup plans using tags.listOfTags
(Consumer<Condition.Builder>... listOfTags) The conditions that you define to assign resources to your backup plans using tags.listOfTags
(Condition... listOfTags) The conditions that you define to assign resources to your backup plans using tags.notResources
(String... notResources) The Amazon Resource Names (ARNs) of the resources to exclude from a backup plan.notResources
(Collection<String> notResources) The Amazon Resource Names (ARNs) of the resources to exclude from a backup plan.The Amazon Resource Names (ARNs) of the resources to assign to a backup plan.resources
(Collection<String> resources) The Amazon Resource Names (ARNs) of the resources to assign to a backup plan.selectionName
(String selectionName) The display name of a resource selection document.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
selectionName
The display name of a resource selection document. Must contain 1 to 50 alphanumeric or '-_.' characters.
- Parameters:
selectionName
- The display name of a resource selection document. Must contain 1 to 50 alphanumeric or '-_.' characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
.- Parameters:
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
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
The Amazon Resource Names (ARNs) of the resources 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 specify multiple ARNs, the resources much match any of the ARNs (OR logic).
- Parameters:
resources
- The Amazon Resource Names (ARNs) of the resources 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 specify multiple ARNs, the resources much match any of the ARNs (OR logic).
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
The Amazon Resource Names (ARNs) of the resources 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 specify multiple ARNs, the resources much match any of the ARNs (OR logic).
- Parameters:
resources
- The Amazon Resource Names (ARNs) of the resources 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 specify multiple ARNs, the resources much match any of the ARNs (OR logic).
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
listOfTags
The conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "backup", "ConditionValue": "daily"}
.ListOfTags
supports onlyStringEquals
. Condition operators are case sensitive.If you specify multiple conditions, the resources much match any of the conditions (OR logic).
- Parameters:
listOfTags
- The conditions that you define to assign resources to your backup plans using tags. For example,"StringEquals": { "ConditionKey": "backup", "ConditionValue": "daily"}
.ListOfTags
supports onlyStringEquals
. Condition operators are case sensitive.If you specify multiple conditions, the resources much match any of the conditions (OR logic).
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
listOfTags
The conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "backup", "ConditionValue": "daily"}
.ListOfTags
supports onlyStringEquals
. Condition operators are case sensitive.If you specify multiple conditions, the resources much match any of the conditions (OR logic).
- Parameters:
listOfTags
- The conditions that you define to assign resources to your backup plans using tags. For example,"StringEquals": { "ConditionKey": "backup", "ConditionValue": "daily"}
.ListOfTags
supports onlyStringEquals
. Condition operators are case sensitive.If you specify multiple conditions, the resources much match any of the conditions (OR logic).
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
listOfTags
The conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "backup", "ConditionValue": "daily"}
.ListOfTags
supports onlyStringEquals
. Condition operators are case sensitive.If you specify multiple conditions, the resources much match any of the conditions (OR logic).
This is a convenience method that creates an instance of theCondition.Builder
avoiding the need to create one manually viaCondition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolistOfTags(List<Condition>)
.- Parameters:
listOfTags
- a consumer that will call methods onCondition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
notResources
The Amazon Resource Names (ARNs) of the resources 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.
- Parameters:
notResources
- The Amazon Resource Names (ARNs) of the resources 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notResources
The Amazon Resource Names (ARNs) of the resources 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.
- Parameters:
notResources
- The Amazon Resource Names (ARNs) of the resources 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditions
The conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "aws:ResourceTag/backup", "ConditionValue": "daily" }
.Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
. Condition operators are case sensitive.If you specify multiple conditions, the resources much match all conditions (AND logic).
- Parameters:
conditions
- The conditions that you define to assign resources to your backup plans using tags. For example,"StringEquals": { "ConditionKey": "aws:ResourceTag/backup", "ConditionValue": "daily" }
.Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
. Condition operators are case sensitive.If you specify multiple conditions, the resources much match all conditions (AND logic).
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditions
The conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "ConditionKey": "aws:ResourceTag/backup", "ConditionValue": "daily" }
.Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
. Condition operators are case sensitive.If you specify multiple conditions, the resources much match all conditions (AND logic).
This is a convenience method that creates an instance of theConditions.Builder
avoiding the need to create one manually viaConditions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconditions(Conditions)
.- Parameters:
conditions
- a consumer that will call methods onConditions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-