Interface CancelRecoveryPlanExecutionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CancelRecoveryPlanExecutionResponse.Builder,,CancelRecoveryPlanExecutionResponse> DrsResponse.Builder,SdkBuilder<CancelRecoveryPlanExecutionResponse.Builder,,CancelRecoveryPlanExecutionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CancelRecoveryPlanExecutionResponse
@Mutable
@NotThreadSafe
public static interface CancelRecoveryPlanExecutionResponse.Builder
extends DrsResponse.Builder, SdkPojo, CopyableBuilder<CancelRecoveryPlanExecutionResponse.Builder,CancelRecoveryPlanExecutionResponse>
-
Method Summary
Modifier and TypeMethodDescriptionrecoveryPlanExecution(Consumer<RecoveryPlanExecution.Builder> recoveryPlanExecution) The cancelled Recovery Plan execution.recoveryPlanExecution(RecoveryPlanExecution recoveryPlanExecution) The cancelled Recovery Plan execution.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
-
recoveryPlanExecution
CancelRecoveryPlanExecutionResponse.Builder recoveryPlanExecution(RecoveryPlanExecution recoveryPlanExecution) The cancelled Recovery Plan execution.
- Parameters:
recoveryPlanExecution- The cancelled Recovery Plan execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recoveryPlanExecution
default CancelRecoveryPlanExecutionResponse.Builder recoveryPlanExecution(Consumer<RecoveryPlanExecution.Builder> recoveryPlanExecution) The cancelled Recovery Plan execution.
This is a convenience method that creates an instance of theRecoveryPlanExecution.Builderavoiding the need to create one manually viaRecoveryPlanExecution.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torecoveryPlanExecution(RecoveryPlanExecution).- Parameters:
recoveryPlanExecution- a consumer that will call methods onRecoveryPlanExecution.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-