Interface StartRecoveryRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<StartRecoveryRequest.Builder,,StartRecoveryRequest> DrsRequest.Builder,SdkBuilder<StartRecoveryRequest.Builder,,StartRecoveryRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
StartRecoveryRequest
@Mutable
@NotThreadSafe
public static interface StartRecoveryRequest.Builder
extends DrsRequest.Builder, SdkPojo, CopyableBuilder<StartRecoveryRequest.Builder,StartRecoveryRequest>
-
Method Summary
Modifier and TypeMethodDescriptionWhether this Source Server Recovery operation is a drill or not.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.sourceServers(Collection<StartRecoveryRequestSourceServer> sourceServers) The Source Servers that we want to start a Recovery Job for.sourceServers(Consumer<StartRecoveryRequestSourceServer.Builder>... sourceServers) The Source Servers that we want to start a Recovery Job for.sourceServers(StartRecoveryRequestSourceServer... sourceServers) The Source Servers that we want to start a Recovery Job for.The tags to be associated with the Recovery Job.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
-
isDrill
Whether this Source Server Recovery operation is a drill or not.
- Parameters:
isDrill- Whether this Source Server Recovery operation is a drill or not.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceServers
StartRecoveryRequest.Builder sourceServers(Collection<StartRecoveryRequestSourceServer> sourceServers) The Source Servers that we want to start a Recovery Job for.
- Parameters:
sourceServers- The Source Servers that we want to start a Recovery Job for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceServers
The Source Servers that we want to start a Recovery Job for.
- Parameters:
sourceServers- The Source Servers that we want to start a Recovery Job for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceServers
StartRecoveryRequest.Builder sourceServers(Consumer<StartRecoveryRequestSourceServer.Builder>... sourceServers) The Source Servers that we want to start a Recovery Job for.
This is a convenience method that creates an instance of theStartRecoveryRequestSourceServer.Builderavoiding the need to create one manually viaStartRecoveryRequestSourceServer.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosourceServers(List<StartRecoveryRequestSourceServer>).- Parameters:
sourceServers- a consumer that will call methods onStartRecoveryRequestSourceServer.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags to be associated with the Recovery Job.
- Parameters:
tags- The tags to be associated with the Recovery Job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
StartRecoveryRequest.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
StartRecoveryRequest.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.
-