Interface GetBackupPlanFromTemplateResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BackupResponse.Builder,Buildable,CopyableBuilder<GetBackupPlanFromTemplateResponse.Builder,,GetBackupPlanFromTemplateResponse> SdkBuilder<GetBackupPlanFromTemplateResponse.Builder,,GetBackupPlanFromTemplateResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetBackupPlanFromTemplateResponse
public static interface GetBackupPlanFromTemplateResponse.Builder
extends BackupResponse.Builder, SdkPojo, CopyableBuilder<GetBackupPlanFromTemplateResponse.Builder,GetBackupPlanFromTemplateResponse>
-
Method Summary
Modifier and TypeMethodDescriptionbackupPlanDocument(Consumer<BackupPlan.Builder> backupPlanDocument) Returns the body of a backup plan based on the target template, including the name, rules, and backup vault of the plan.backupPlanDocument(BackupPlan backupPlanDocument) Returns the body of a backup plan based on the target template, including the name, rules, and backup vault of the plan.Methods inherited from interface software.amazon.awssdk.services.backup.model.BackupResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
backupPlanDocument
Returns the body of a backup plan based on the target template, including the name, rules, and backup vault of the plan.
- Parameters:
backupPlanDocument- Returns the body of a backup plan based on the target template, including the name, rules, and backup vault of the plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
backupPlanDocument
default GetBackupPlanFromTemplateResponse.Builder backupPlanDocument(Consumer<BackupPlan.Builder> backupPlanDocument) Returns the body of a backup plan based on the target template, including the name, rules, and backup vault of the plan.
This is a convenience method that creates an instance of theBackupPlan.Builderavoiding the need to create one manually viaBackupPlan.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobackupPlanDocument(BackupPlan).- Parameters:
backupPlanDocument- a consumer that will call methods onBackupPlan.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-