Interface BackupSelection.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<BackupSelection.Builder,BackupSelection>,SdkBuilder<BackupSelection.Builder,BackupSelection>,SdkPojo
- Enclosing class:
- BackupSelection
public static interface BackupSelection.Builder extends SdkPojo, CopyableBuilder<BackupSelection.Builder,BackupSelection>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default BackupSelection.Builderconditions(Consumer<Conditions.Builder> conditions)A list of conditions that you define to assign resources to your backup plans using tags.BackupSelection.Builderconditions(Conditions conditions)A list of conditions that you define to assign resources to your backup plans using tags.BackupSelection.BuilderiamRoleArn(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.BuilderlistOfTags(Collection<Condition> listOfTags)A list of conditions that you define to assign resources to your backup plans using tags.BackupSelection.BuilderlistOfTags(Consumer<Condition.Builder>... listOfTags)A list of conditions that you define to assign resources to your backup plans using tags.BackupSelection.BuilderlistOfTags(Condition... listOfTags)A list of conditions that you define to assign resources to your backup plans using tags.BackupSelection.BuildernotResources(String... notResources)A list of Amazon Resource Names (ARNs) to exclude from a backup plan.BackupSelection.BuildernotResources(Collection<String> notResources)A list of Amazon Resource Names (ARNs) to exclude from a backup plan.BackupSelection.Builderresources(String... resources)A list of Amazon Resource Names (ARNs) to assign to a backup plan.BackupSelection.Builderresources(Collection<String> resources)A list of Amazon Resource Names (ARNs) to assign to a backup plan.BackupSelection.BuilderselectionName(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, sdkFields
-
-
-
-
Method Detail
-
selectionName
BackupSelection.Builder selectionName(String 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
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.- 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
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
listOfTags
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": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },. Condition operators are case sensitive.ListOfTagsdiffers fromConditionsas follows:-
When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
-
ListOfTagsonly supportsStringEquals.ConditionssupportsStringEquals,StringLike,StringNotEquals, andStringNotLike.
- Parameters:
listOfTags- A list of conditions that you define to assign resources to your backup plans using tags. For example,"StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },. Condition operators are case sensitive.ListOfTagsdiffers fromConditionsas follows:-
When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
-
ListOfTagsonly supportsStringEquals.ConditionssupportsStringEquals,StringLike,StringNotEquals, andStringNotLike.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
listOfTags
BackupSelection.Builder listOfTags(Condition... listOfTags)
A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },. Condition operators are case sensitive.ListOfTagsdiffers fromConditionsas follows:-
When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
-
ListOfTagsonly supportsStringEquals.ConditionssupportsStringEquals,StringLike,StringNotEquals, andStringNotLike.
- Parameters:
listOfTags- A list of conditions that you define to assign resources to your backup plans using tags. For example,"StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },. Condition operators are case sensitive.ListOfTagsdiffers fromConditionsas follows:-
When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
-
ListOfTagsonly supportsStringEquals.ConditionssupportsStringEquals,StringLike,StringNotEquals, andStringNotLike.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
listOfTags
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": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },. Condition operators are case sensitive.ListOfTagsdiffers fromConditionsas follows:-
When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
-
ListOfTagsonly supportsStringEquals.ConditionssupportsStringEquals,StringLike,StringNotEquals, andStringNotLike.
Condition.Builderavoiding the need to create one manually viaCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#listOfTags(List.) - 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:
#listOfTags(java.util.Collection)
-
-
notResources
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notResources
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditions
BackupSelection.Builder conditions(Conditions conditions)
A list of conditions that you define to assign resources to your backup plans using tags. For example,
"StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },. Condition operators are case sensitive.Conditionsdiffers fromListOfTagsas follows:-
When you specify more than one condition, you only assign the resources that match ALL conditions (using AND logic).
-
ConditionssupportsStringEquals,StringLike,StringNotEquals, andStringNotLike.ListOfTagsonly supportsStringEquals.
- Parameters:
conditions- A list of conditions that you define to assign resources to your backup plans using tags. For example,"StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },. Condition operators are case sensitive.Conditionsdiffers fromListOfTagsas follows:-
When you specify more than one condition, you only assign the resources that match ALL conditions (using AND logic).
-
ConditionssupportsStringEquals,StringLike,StringNotEquals, andStringNotLike.ListOfTagsonly supportsStringEquals.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
conditions
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": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },. Condition operators are case sensitive.Conditionsdiffers fromListOfTagsas follows:-
When you specify more than one condition, you only assign the resources that match ALL conditions (using AND logic).
-
ConditionssupportsStringEquals,StringLike,StringNotEquals, andStringNotLike.ListOfTagsonly supportsStringEquals.
Conditions.Builderavoiding the need to create one manually viaConditions.builder().When the
Consumercompletes,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:
conditions(Conditions)
-
-
-