Interface StartRecoveryPlanExecutionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<StartRecoveryPlanExecutionRequest.Builder,,StartRecoveryPlanExecutionRequest> DrsRequest.Builder,SdkBuilder<StartRecoveryPlanExecutionRequest.Builder,,StartRecoveryPlanExecutionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
StartRecoveryPlanExecutionRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique string provided to ensure request idempotency.The execution mode (DRILLorRECOVERY).The execution mode (DRILLorRECOVERY).overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.recoveryPlanArn(String recoveryPlanArn) The ARN of the Recovery Plan to execute.sourceServers(Collection<RecoveryPlanExecutionSourceServer> sourceServers) Optional list of source servers with specific recovery snapshots.sourceServers(Consumer<RecoveryPlanExecutionSourceServer.Builder>... sourceServers) Optional list of source servers with specific recovery snapshots.sourceServers(RecoveryPlanExecutionSourceServer... sourceServers) Optional list of source servers with specific recovery snapshots.The tags to apply to the Recovery Plan execution.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.drs.model.DrsRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
recoveryPlanArn
The ARN of the Recovery Plan to execute.
- Parameters:
recoveryPlanArn- The ARN of the Recovery Plan to execute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mode
The execution mode (
DRILLorRECOVERY).- Parameters:
mode- The execution mode (DRILLorRECOVERY).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
mode
The execution mode (
DRILLorRECOVERY).- Parameters:
mode- The execution mode (DRILLorRECOVERY).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
A unique string provided to ensure request idempotency.
- Parameters:
clientToken- A unique string provided to ensure request idempotency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceServers
StartRecoveryPlanExecutionRequest.Builder sourceServers(Collection<RecoveryPlanExecutionSourceServer> sourceServers) Optional list of source servers with specific recovery snapshots. If not provided, the latest snapshot is used for each server.
- Parameters:
sourceServers- Optional list of source servers with specific recovery snapshots. If not provided, the latest snapshot is used for each server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceServers
StartRecoveryPlanExecutionRequest.Builder sourceServers(RecoveryPlanExecutionSourceServer... sourceServers) Optional list of source servers with specific recovery snapshots. If not provided, the latest snapshot is used for each server.
- Parameters:
sourceServers- Optional list of source servers with specific recovery snapshots. If not provided, the latest snapshot is used for each server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceServers
StartRecoveryPlanExecutionRequest.Builder sourceServers(Consumer<RecoveryPlanExecutionSourceServer.Builder>... sourceServers) Optional list of source servers with specific recovery snapshots. If not provided, the latest snapshot is used for each server.
This is a convenience method that creates an instance of theRecoveryPlanExecutionSourceServer.Builderavoiding the need to create one manually viaRecoveryPlanExecutionSourceServer.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosourceServers(List<RecoveryPlanExecutionSourceServer>).- Parameters:
sourceServers- a consumer that will call methods onRecoveryPlanExecutionSourceServer.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags to apply to the Recovery Plan execution.
- Parameters:
tags- The tags to apply to the Recovery Plan execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
StartRecoveryPlanExecutionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
StartRecoveryPlanExecutionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-