Interface CreateBackupPlanRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,BackupRequest.Builder
,Buildable
,CopyableBuilder<CreateBackupPlanRequest.Builder,
,CreateBackupPlanRequest> SdkBuilder<CreateBackupPlanRequest.Builder,
,CreateBackupPlanRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateBackupPlanRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateBackupPlanRequest.Builder
backupPlan
(Consumer<BackupPlanInput.Builder> backupPlan) Specifies the body of a backup plan.backupPlan
(BackupPlanInput backupPlan) Specifies the body of a backup plan.backupPlanTags
(Map<String, String> backupPlanTags) To help organize your resources, you can assign your own metadata to the resources that you create.creatorRequestId
(String creatorRequestId) Identifies the request and allows failed requests to be retried without the risk of running the operation twice.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.backup.model.BackupRequest.Builder
build
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 Details
-
backupPlan
Specifies the body of a backup plan. Includes a
BackupPlanName
and one or more sets ofRules
.- Parameters:
backupPlan
- Specifies the body of a backup plan. Includes aBackupPlanName
and one or more sets ofRules
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
backupPlan
Specifies the body of a backup plan. Includes a
This is a convenience method that creates an instance of theBackupPlanName
and one or more sets ofRules
.BackupPlanInput.Builder
avoiding the need to create one manually viaBackupPlanInput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobackupPlan(BackupPlanInput)
.- Parameters:
backupPlan
- a consumer that will call methods onBackupPlanInput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
backupPlanTags
To help organize your resources, you can assign your own metadata to the resources that you create. Each tag is a key-value pair. The specified tags are assigned to all backups created with this plan.
- Parameters:
backupPlanTags
- To help organize your resources, you can assign your own metadata to the resources that you create. Each tag is a key-value pair. The specified tags are assigned to all backups created with this plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creatorRequestId
Identifies the request and allows failed requests to be retried without the risk of running the operation twice. If the request includes a
CreatorRequestId
that matches an existing backup plan, that plan is returned. This parameter is optional.If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
- Parameters:
creatorRequestId
- Identifies the request and allows failed requests to be retried without the risk of running the operation twice. If the request includes aCreatorRequestId
that matches an existing backup plan, that plan is returned. This parameter is optional.If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateBackupPlanRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateBackupPlanRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-