Interface GetBackupPlanFromJsonResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,BackupResponse.Builder
,Buildable
,CopyableBuilder<GetBackupPlanFromJsonResponse.Builder,
,GetBackupPlanFromJsonResponse> SdkBuilder<GetBackupPlanFromJsonResponse.Builder,
,GetBackupPlanFromJsonResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetBackupPlanFromJsonResponse
public static interface GetBackupPlanFromJsonResponse.Builder
extends BackupResponse.Builder, SdkPojo, CopyableBuilder<GetBackupPlanFromJsonResponse.Builder,GetBackupPlanFromJsonResponse>
-
Method Summary
Modifier and TypeMethodDescriptionbackupPlan
(Consumer<BackupPlan.Builder> backupPlan) Specifies the body of a backup plan.backupPlan
(BackupPlan backupPlan) Specifies the body of a backup plan.Methods inherited from interface software.amazon.awssdk.services.backup.model.BackupResponse.Builder
build, responseMetadata, responseMetadata
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
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
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
.BackupPlan.Builder
avoiding the need to create one manually viaBackupPlan.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobackupPlan(BackupPlan)
.- Parameters:
backupPlan
- 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:
-