Interface GetRecoveryPlanResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetRecoveryPlanResponse.Builder,,GetRecoveryPlanResponse> DrsResponse.Builder,SdkBuilder<GetRecoveryPlanResponse.Builder,,GetRecoveryPlanResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetRecoveryPlanResponse
@Mutable
@NotThreadSafe
public static interface GetRecoveryPlanResponse.Builder
extends DrsResponse.Builder, SdkPojo, CopyableBuilder<GetRecoveryPlanResponse.Builder,GetRecoveryPlanResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetRecoveryPlanResponse.BuilderrecoveryPlan(Consumer<RecoveryPlan.Builder> recoveryPlan) Sets the value of the RecoveryPlan property for this object.recoveryPlan(RecoveryPlan recoveryPlan) Sets the value of the RecoveryPlan property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.drs.model.DrsResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
recoveryPlan
Sets the value of the RecoveryPlan property for this object.- Parameters:
recoveryPlan- The new value for the RecoveryPlan property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recoveryPlan
Sets the value of the RecoveryPlan property for this object. This is a convenience method that creates an instance of theRecoveryPlan.Builderavoiding the need to create one manually viaRecoveryPlan.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torecoveryPlan(RecoveryPlan).- Parameters:
recoveryPlan- a consumer that will call methods onRecoveryPlan.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-