Interface DrsAsyncClient

All Superinterfaces:
AutoCloseable, AwsClient, SdkAutoCloseable, SdkClient

@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface DrsAsyncClient extends AwsClient
Service client for accessing drs asynchronously. This can be created using the static builder() method.The asynchronous client performs non-blocking I/O when configured with any SdkAsyncHttpClient supported in the SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API call.

AWS Elastic Disaster Recovery Service.

  • Field Details

  • Method Details

    • associateSourceNetworkStack

      default CompletableFuture<AssociateSourceNetworkStackResponse> associateSourceNetworkStack(AssociateSourceNetworkStackRequest associateSourceNetworkStackRequest)

      Associate a Source Network to an existing CloudFormation Stack and modify launch templates to use this network. Can be used for reverting to previously deployed CloudFormation stacks.

      Parameters:
      associateSourceNetworkStackRequest -
      Returns:
      A Java Future containing the result of the AssociateSourceNetworkStack operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ServiceQuotaExceededException The request could not be completed because its exceeded the service quota.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • associateSourceNetworkStack

      default CompletableFuture<AssociateSourceNetworkStackResponse> associateSourceNetworkStack(Consumer<AssociateSourceNetworkStackRequest.Builder> associateSourceNetworkStackRequest)

      Associate a Source Network to an existing CloudFormation Stack and modify launch templates to use this network. Can be used for reverting to previously deployed CloudFormation stacks.


      This is a convenience which creates an instance of the AssociateSourceNetworkStackRequest.Builder avoiding the need to create one manually via AssociateSourceNetworkStackRequest.builder()

      Parameters:
      associateSourceNetworkStackRequest - A Consumer that will call methods on AssociateSourceNetworkStackRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the AssociateSourceNetworkStack operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ServiceQuotaExceededException The request could not be completed because its exceeded the service quota.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createExtendedSourceServer

      default CompletableFuture<CreateExtendedSourceServerResponse> createExtendedSourceServer(CreateExtendedSourceServerRequest createExtendedSourceServerRequest)

      Create an extended source server in the target Account based on the source server in staging account.

      Parameters:
      createExtendedSourceServerRequest -
      Returns:
      A Java Future containing the result of the CreateExtendedSourceServer operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ServiceQuotaExceededException The request could not be completed because its exceeded the service quota.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createExtendedSourceServer

      default CompletableFuture<CreateExtendedSourceServerResponse> createExtendedSourceServer(Consumer<CreateExtendedSourceServerRequest.Builder> createExtendedSourceServerRequest)

      Create an extended source server in the target Account based on the source server in staging account.


      This is a convenience which creates an instance of the CreateExtendedSourceServerRequest.Builder avoiding the need to create one manually via CreateExtendedSourceServerRequest.builder()

      Parameters:
      createExtendedSourceServerRequest - A Consumer that will call methods on CreateExtendedSourceServerRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateExtendedSourceServer operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ServiceQuotaExceededException The request could not be completed because its exceeded the service quota.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createLaunchConfigurationTemplate

      default CompletableFuture<CreateLaunchConfigurationTemplateResponse> createLaunchConfigurationTemplate(CreateLaunchConfigurationTemplateRequest createLaunchConfigurationTemplateRequest)

      Creates a new Launch Configuration Template.

      Parameters:
      createLaunchConfigurationTemplateRequest -
      Returns:
      A Java Future containing the result of the CreateLaunchConfigurationTemplate operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ServiceQuotaExceededException The request could not be completed because its exceeded the service quota.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createLaunchConfigurationTemplate

      default CompletableFuture<CreateLaunchConfigurationTemplateResponse> createLaunchConfigurationTemplate(Consumer<CreateLaunchConfigurationTemplateRequest.Builder> createLaunchConfigurationTemplateRequest)

      Creates a new Launch Configuration Template.


      This is a convenience which creates an instance of the CreateLaunchConfigurationTemplateRequest.Builder avoiding the need to create one manually via CreateLaunchConfigurationTemplateRequest.builder()

      Parameters:
      createLaunchConfigurationTemplateRequest - A Consumer that will call methods on CreateLaunchConfigurationTemplateRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateLaunchConfigurationTemplate operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ServiceQuotaExceededException The request could not be completed because its exceeded the service quota.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createReplicationConfigurationTemplate

      default CompletableFuture<CreateReplicationConfigurationTemplateResponse> createReplicationConfigurationTemplate(CreateReplicationConfigurationTemplateRequest createReplicationConfigurationTemplateRequest)

      Creates a new ReplicationConfigurationTemplate.

      Parameters:
      createReplicationConfigurationTemplateRequest -
      Returns:
      A Java Future containing the result of the CreateReplicationConfigurationTemplate operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ServiceQuotaExceededException The request could not be completed because its exceeded the service quota.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createReplicationConfigurationTemplate

      default CompletableFuture<CreateReplicationConfigurationTemplateResponse> createReplicationConfigurationTemplate(Consumer<CreateReplicationConfigurationTemplateRequest.Builder> createReplicationConfigurationTemplateRequest)

      Creates a new ReplicationConfigurationTemplate.


      This is a convenience which creates an instance of the CreateReplicationConfigurationTemplateRequest.Builder avoiding the need to create one manually via CreateReplicationConfigurationTemplateRequest.builder()

      Parameters:
      createReplicationConfigurationTemplateRequest - A Consumer that will call methods on CreateReplicationConfigurationTemplateRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateReplicationConfigurationTemplate operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ServiceQuotaExceededException The request could not be completed because its exceeded the service quota.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createSourceNetwork

      default CompletableFuture<CreateSourceNetworkResponse> createSourceNetwork(CreateSourceNetworkRequest createSourceNetworkRequest)

      Create a new Source Network resource for a provided VPC ID.

      Parameters:
      createSourceNetworkRequest -
      Returns:
      A Java Future containing the result of the CreateSourceNetwork operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ServiceQuotaExceededException The request could not be completed because its exceeded the service quota.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createSourceNetwork

      default CompletableFuture<CreateSourceNetworkResponse> createSourceNetwork(Consumer<CreateSourceNetworkRequest.Builder> createSourceNetworkRequest)

      Create a new Source Network resource for a provided VPC ID.


      This is a convenience which creates an instance of the CreateSourceNetworkRequest.Builder avoiding the need to create one manually via CreateSourceNetworkRequest.builder()

      Parameters:
      createSourceNetworkRequest - A Consumer that will call methods on CreateSourceNetworkRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateSourceNetwork operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ServiceQuotaExceededException The request could not be completed because its exceeded the service quota.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteJob

      default CompletableFuture<DeleteJobResponse> deleteJob(DeleteJobRequest deleteJobRequest)

      Deletes a single Job by ID.

      Parameters:
      deleteJobRequest -
      Returns:
      A Java Future containing the result of the DeleteJob operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteJob

      default CompletableFuture<DeleteJobResponse> deleteJob(Consumer<DeleteJobRequest.Builder> deleteJobRequest)

      Deletes a single Job by ID.


      This is a convenience which creates an instance of the DeleteJobRequest.Builder avoiding the need to create one manually via DeleteJobRequest.builder()

      Parameters:
      deleteJobRequest - A Consumer that will call methods on DeleteJobRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteJob operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteLaunchAction

      default CompletableFuture<DeleteLaunchActionResponse> deleteLaunchAction(DeleteLaunchActionRequest deleteLaunchActionRequest)

      Deletes a resource launch action.

      Parameters:
      deleteLaunchActionRequest -
      Returns:
      A Java Future containing the result of the DeleteLaunchAction operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteLaunchAction

      default CompletableFuture<DeleteLaunchActionResponse> deleteLaunchAction(Consumer<DeleteLaunchActionRequest.Builder> deleteLaunchActionRequest)

      Deletes a resource launch action.


      This is a convenience which creates an instance of the DeleteLaunchActionRequest.Builder avoiding the need to create one manually via DeleteLaunchActionRequest.builder()

      Parameters:
      deleteLaunchActionRequest - A Consumer that will call methods on DeleteLaunchActionRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteLaunchAction operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteLaunchConfigurationTemplate

      default CompletableFuture<DeleteLaunchConfigurationTemplateResponse> deleteLaunchConfigurationTemplate(DeleteLaunchConfigurationTemplateRequest deleteLaunchConfigurationTemplateRequest)

      Deletes a single Launch Configuration Template by ID.

      Parameters:
      deleteLaunchConfigurationTemplateRequest -
      Returns:
      A Java Future containing the result of the DeleteLaunchConfigurationTemplate operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteLaunchConfigurationTemplate

      default CompletableFuture<DeleteLaunchConfigurationTemplateResponse> deleteLaunchConfigurationTemplate(Consumer<DeleteLaunchConfigurationTemplateRequest.Builder> deleteLaunchConfigurationTemplateRequest)

      Deletes a single Launch Configuration Template by ID.


      This is a convenience which creates an instance of the DeleteLaunchConfigurationTemplateRequest.Builder avoiding the need to create one manually via DeleteLaunchConfigurationTemplateRequest.builder()

      Parameters:
      deleteLaunchConfigurationTemplateRequest - A Consumer that will call methods on DeleteLaunchConfigurationTemplateRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteLaunchConfigurationTemplate operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteRecoveryInstance

      default CompletableFuture<DeleteRecoveryInstanceResponse> deleteRecoveryInstance(DeleteRecoveryInstanceRequest deleteRecoveryInstanceRequest)

      Deletes a single Recovery Instance by ID. This deletes the Recovery Instance resource from Elastic Disaster Recovery. The Recovery Instance must be disconnected first in order to delete it.

      Parameters:
      deleteRecoveryInstanceRequest -
      Returns:
      A Java Future containing the result of the DeleteRecoveryInstance operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteRecoveryInstance

      default CompletableFuture<DeleteRecoveryInstanceResponse> deleteRecoveryInstance(Consumer<DeleteRecoveryInstanceRequest.Builder> deleteRecoveryInstanceRequest)

      Deletes a single Recovery Instance by ID. This deletes the Recovery Instance resource from Elastic Disaster Recovery. The Recovery Instance must be disconnected first in order to delete it.


      This is a convenience which creates an instance of the DeleteRecoveryInstanceRequest.Builder avoiding the need to create one manually via DeleteRecoveryInstanceRequest.builder()

      Parameters:
      deleteRecoveryInstanceRequest - A Consumer that will call methods on DeleteRecoveryInstanceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteRecoveryInstance operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteReplicationConfigurationTemplate

      default CompletableFuture<DeleteReplicationConfigurationTemplateResponse> deleteReplicationConfigurationTemplate(DeleteReplicationConfigurationTemplateRequest deleteReplicationConfigurationTemplateRequest)

      Deletes a single Replication Configuration Template by ID

      Parameters:
      deleteReplicationConfigurationTemplateRequest -
      Returns:
      A Java Future containing the result of the DeleteReplicationConfigurationTemplate operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteReplicationConfigurationTemplate

      default CompletableFuture<DeleteReplicationConfigurationTemplateResponse> deleteReplicationConfigurationTemplate(Consumer<DeleteReplicationConfigurationTemplateRequest.Builder> deleteReplicationConfigurationTemplateRequest)

      Deletes a single Replication Configuration Template by ID


      This is a convenience which creates an instance of the DeleteReplicationConfigurationTemplateRequest.Builder avoiding the need to create one manually via DeleteReplicationConfigurationTemplateRequest.builder()

      Parameters:
      deleteReplicationConfigurationTemplateRequest - A Consumer that will call methods on DeleteReplicationConfigurationTemplateRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteReplicationConfigurationTemplate operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteSourceNetwork

      default CompletableFuture<DeleteSourceNetworkResponse> deleteSourceNetwork(DeleteSourceNetworkRequest deleteSourceNetworkRequest)

      Delete Source Network resource.

      Parameters:
      deleteSourceNetworkRequest -
      Returns:
      A Java Future containing the result of the DeleteSourceNetwork operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteSourceNetwork

      default CompletableFuture<DeleteSourceNetworkResponse> deleteSourceNetwork(Consumer<DeleteSourceNetworkRequest.Builder> deleteSourceNetworkRequest)

      Delete Source Network resource.


      This is a convenience which creates an instance of the DeleteSourceNetworkRequest.Builder avoiding the need to create one manually via DeleteSourceNetworkRequest.builder()

      Parameters:
      deleteSourceNetworkRequest - A Consumer that will call methods on DeleteSourceNetworkRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteSourceNetwork operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteSourceServer

      default CompletableFuture<DeleteSourceServerResponse> deleteSourceServer(DeleteSourceServerRequest deleteSourceServerRequest)

      Deletes a single Source Server by ID. The Source Server must be disconnected first.

      Parameters:
      deleteSourceServerRequest -
      Returns:
      A Java Future containing the result of the DeleteSourceServer operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteSourceServer

      default CompletableFuture<DeleteSourceServerResponse> deleteSourceServer(Consumer<DeleteSourceServerRequest.Builder> deleteSourceServerRequest)

      Deletes a single Source Server by ID. The Source Server must be disconnected first.


      This is a convenience which creates an instance of the DeleteSourceServerRequest.Builder avoiding the need to create one manually via DeleteSourceServerRequest.builder()

      Parameters:
      deleteSourceServerRequest - A Consumer that will call methods on DeleteSourceServerRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteSourceServer operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeJobLogItems

      default CompletableFuture<DescribeJobLogItemsResponse> describeJobLogItems(DescribeJobLogItemsRequest describeJobLogItemsRequest)

      Retrieves a detailed Job log with pagination.

      Parameters:
      describeJobLogItemsRequest -
      Returns:
      A Java Future containing the result of the DescribeJobLogItems operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeJobLogItems

      default CompletableFuture<DescribeJobLogItemsResponse> describeJobLogItems(Consumer<DescribeJobLogItemsRequest.Builder> describeJobLogItemsRequest)

      Retrieves a detailed Job log with pagination.


      This is a convenience which creates an instance of the DescribeJobLogItemsRequest.Builder avoiding the need to create one manually via DescribeJobLogItemsRequest.builder()

      Parameters:
      describeJobLogItemsRequest - A Consumer that will call methods on DescribeJobLogItemsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DescribeJobLogItems operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeJobLogItemsPaginator

      default DescribeJobLogItemsPublisher describeJobLogItemsPaginator(DescribeJobLogItemsRequest describeJobLogItemsRequest)

      This is a variant of describeJobLogItems(software.amazon.awssdk.services.drs.model.DescribeJobLogItemsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.drs.paginators.DescribeJobLogItemsPublisher publisher = client.describeJobLogItemsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.drs.paginators.DescribeJobLogItemsPublisher publisher = client.describeJobLogItemsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.drs.model.DescribeJobLogItemsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.drs.model.DescribeJobLogItemsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the describeJobLogItems(software.amazon.awssdk.services.drs.model.DescribeJobLogItemsRequest) operation.

      Parameters:
      describeJobLogItemsRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeJobLogItemsPaginator

      default DescribeJobLogItemsPublisher describeJobLogItemsPaginator(Consumer<DescribeJobLogItemsRequest.Builder> describeJobLogItemsRequest)

      This is a variant of describeJobLogItems(software.amazon.awssdk.services.drs.model.DescribeJobLogItemsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.drs.paginators.DescribeJobLogItemsPublisher publisher = client.describeJobLogItemsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.drs.paginators.DescribeJobLogItemsPublisher publisher = client.describeJobLogItemsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.drs.model.DescribeJobLogItemsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.drs.model.DescribeJobLogItemsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the describeJobLogItems(software.amazon.awssdk.services.drs.model.DescribeJobLogItemsRequest) operation.


      This is a convenience which creates an instance of the DescribeJobLogItemsRequest.Builder avoiding the need to create one manually via DescribeJobLogItemsRequest.builder()

      Parameters:
      describeJobLogItemsRequest - A Consumer that will call methods on DescribeJobLogItemsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeJobs

      default CompletableFuture<DescribeJobsResponse> describeJobs(DescribeJobsRequest describeJobsRequest)

      Returns a list of Jobs. Use the JobsID and fromDate and toDate filters to limit which jobs are returned. The response is sorted by creationDataTime - latest date first. Jobs are created by the StartRecovery, TerminateRecoveryInstances and StartFailbackLaunch APIs. Jobs are also created by DiagnosticLaunch and TerminateDiagnosticInstances, which are APIs available only to *Support* and only used in response to relevant support tickets.

      Parameters:
      describeJobsRequest -
      Returns:
      A Java Future containing the result of the DescribeJobs operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeJobs

      default CompletableFuture<DescribeJobsResponse> describeJobs(Consumer<DescribeJobsRequest.Builder> describeJobsRequest)

      Returns a list of Jobs. Use the JobsID and fromDate and toDate filters to limit which jobs are returned. The response is sorted by creationDataTime - latest date first. Jobs are created by the StartRecovery, TerminateRecoveryInstances and StartFailbackLaunch APIs. Jobs are also created by DiagnosticLaunch and TerminateDiagnosticInstances, which are APIs available only to *Support* and only used in response to relevant support tickets.


      This is a convenience which creates an instance of the DescribeJobsRequest.Builder avoiding the need to create one manually via DescribeJobsRequest.builder()

      Parameters:
      describeJobsRequest - A Consumer that will call methods on DescribeJobsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DescribeJobs operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeJobsPaginator

      default DescribeJobsPublisher describeJobsPaginator(DescribeJobsRequest describeJobsRequest)

      This is a variant of describeJobs(software.amazon.awssdk.services.drs.model.DescribeJobsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.drs.paginators.DescribeJobsPublisher publisher = client.describeJobsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.drs.paginators.DescribeJobsPublisher publisher = client.describeJobsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.drs.model.DescribeJobsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.drs.model.DescribeJobsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the describeJobs(software.amazon.awssdk.services.drs.model.DescribeJobsRequest) operation.

      Parameters:
      describeJobsRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeJobsPaginator

      default DescribeJobsPublisher describeJobsPaginator(Consumer<DescribeJobsRequest.Builder> describeJobsRequest)

      This is a variant of describeJobs(software.amazon.awssdk.services.drs.model.DescribeJobsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.drs.paginators.DescribeJobsPublisher publisher = client.describeJobsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.drs.paginators.DescribeJobsPublisher publisher = client.describeJobsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.drs.model.DescribeJobsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.drs.model.DescribeJobsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the describeJobs(software.amazon.awssdk.services.drs.model.DescribeJobsRequest) operation.


      This is a convenience which creates an instance of the DescribeJobsRequest.Builder avoiding the need to create one manually via DescribeJobsRequest.builder()

      Parameters:
      describeJobsRequest - A Consumer that will call methods on DescribeJobsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeLaunchConfigurationTemplates

      default CompletableFuture<DescribeLaunchConfigurationTemplatesResponse> describeLaunchConfigurationTemplates(DescribeLaunchConfigurationTemplatesRequest describeLaunchConfigurationTemplatesRequest)

      Lists all Launch Configuration Templates, filtered by Launch Configuration Template IDs

      Parameters:
      describeLaunchConfigurationTemplatesRequest -
      Returns:
      A Java Future containing the result of the DescribeLaunchConfigurationTemplates operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeLaunchConfigurationTemplates

      default CompletableFuture<DescribeLaunchConfigurationTemplatesResponse> describeLaunchConfigurationTemplates(Consumer<DescribeLaunchConfigurationTemplatesRequest.Builder> describeLaunchConfigurationTemplatesRequest)

      Lists all Launch Configuration Templates, filtered by Launch Configuration Template IDs


      This is a convenience which creates an instance of the DescribeLaunchConfigurationTemplatesRequest.Builder avoiding the need to create one manually via DescribeLaunchConfigurationTemplatesRequest.builder()

      Parameters:
      describeLaunchConfigurationTemplatesRequest - A Consumer that will call methods on DescribeLaunchConfigurationTemplatesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DescribeLaunchConfigurationTemplates operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeLaunchConfigurationTemplatesPaginator

      default DescribeLaunchConfigurationTemplatesPublisher describeLaunchConfigurationTemplatesPaginator(DescribeLaunchConfigurationTemplatesRequest describeLaunchConfigurationTemplatesRequest)

      This is a variant of describeLaunchConfigurationTemplates(software.amazon.awssdk.services.drs.model.DescribeLaunchConfigurationTemplatesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.drs.paginators.DescribeLaunchConfigurationTemplatesPublisher publisher = client.describeLaunchConfigurationTemplatesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.drs.paginators.DescribeLaunchConfigurationTemplatesPublisher publisher = client.describeLaunchConfigurationTemplatesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.drs.model.DescribeLaunchConfigurationTemplatesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.drs.model.DescribeLaunchConfigurationTemplatesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the describeLaunchConfigurationTemplates(software.amazon.awssdk.services.drs.model.DescribeLaunchConfigurationTemplatesRequest) operation.

      Parameters:
      describeLaunchConfigurationTemplatesRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeLaunchConfigurationTemplatesPaginator

      default DescribeLaunchConfigurationTemplatesPublisher describeLaunchConfigurationTemplatesPaginator(Consumer<DescribeLaunchConfigurationTemplatesRequest.Builder> describeLaunchConfigurationTemplatesRequest)

      This is a variant of describeLaunchConfigurationTemplates(software.amazon.awssdk.services.drs.model.DescribeLaunchConfigurationTemplatesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.drs.paginators.DescribeLaunchConfigurationTemplatesPublisher publisher = client.describeLaunchConfigurationTemplatesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.drs.paginators.DescribeLaunchConfigurationTemplatesPublisher publisher = client.describeLaunchConfigurationTemplatesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.drs.model.DescribeLaunchConfigurationTemplatesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.drs.model.DescribeLaunchConfigurationTemplatesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the describeLaunchConfigurationTemplates(software.amazon.awssdk.services.drs.model.DescribeLaunchConfigurationTemplatesRequest) operation.


      This is a convenience which creates an instance of the DescribeLaunchConfigurationTemplatesRequest.Builder avoiding the need to create one manually via DescribeLaunchConfigurationTemplatesRequest.builder()

      Parameters:
      describeLaunchConfigurationTemplatesRequest - A Consumer that will call methods on DescribeLaunchConfigurationTemplatesRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeRecoveryInstances

      default CompletableFuture<DescribeRecoveryInstancesResponse> describeRecoveryInstances(DescribeRecoveryInstancesRequest describeRecoveryInstancesRequest)

      Lists all Recovery Instances or multiple Recovery Instances by ID.

      Parameters:
      describeRecoveryInstancesRequest -
      Returns:
      A Java Future containing the result of the DescribeRecoveryInstances operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeRecoveryInstances

      default CompletableFuture<DescribeRecoveryInstancesResponse> describeRecoveryInstances(Consumer<DescribeRecoveryInstancesRequest.Builder> describeRecoveryInstancesRequest)

      Lists all Recovery Instances or multiple Recovery Instances by ID.


      This is a convenience which creates an instance of the DescribeRecoveryInstancesRequest.Builder avoiding the need to create one manually via DescribeRecoveryInstancesRequest.builder()

      Parameters:
      describeRecoveryInstancesRequest - A Consumer that will call methods on DescribeRecoveryInstancesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DescribeRecoveryInstances operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeRecoveryInstancesPaginator

      default DescribeRecoveryInstancesPublisher describeRecoveryInstancesPaginator(DescribeRecoveryInstancesRequest describeRecoveryInstancesRequest)

      This is a variant of describeRecoveryInstances(software.amazon.awssdk.services.drs.model.DescribeRecoveryInstancesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.drs.paginators.DescribeRecoveryInstancesPublisher publisher = client.describeRecoveryInstancesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.drs.paginators.DescribeRecoveryInstancesPublisher publisher = client.describeRecoveryInstancesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.drs.model.DescribeRecoveryInstancesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.drs.model.DescribeRecoveryInstancesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the describeRecoveryInstances(software.amazon.awssdk.services.drs.model.DescribeRecoveryInstancesRequest) operation.

      Parameters:
      describeRecoveryInstancesRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeRecoveryInstancesPaginator

      default DescribeRecoveryInstancesPublisher describeRecoveryInstancesPaginator(Consumer<DescribeRecoveryInstancesRequest.Builder> describeRecoveryInstancesRequest)

      This is a variant of describeRecoveryInstances(software.amazon.awssdk.services.drs.model.DescribeRecoveryInstancesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.drs.paginators.DescribeRecoveryInstancesPublisher publisher = client.describeRecoveryInstancesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.drs.paginators.DescribeRecoveryInstancesPublisher publisher = client.describeRecoveryInstancesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.drs.model.DescribeRecoveryInstancesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.drs.model.DescribeRecoveryInstancesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the describeRecoveryInstances(software.amazon.awssdk.services.drs.model.DescribeRecoveryInstancesRequest) operation.


      This is a convenience which creates an instance of the DescribeRecoveryInstancesRequest.Builder avoiding the need to create one manually via DescribeRecoveryInstancesRequest.builder()

      Parameters:
      describeRecoveryInstancesRequest - A Consumer that will call methods on DescribeRecoveryInstancesRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeRecoverySnapshots

      default CompletableFuture<DescribeRecoverySnapshotsResponse> describeRecoverySnapshots(DescribeRecoverySnapshotsRequest describeRecoverySnapshotsRequest)

      Lists all Recovery Snapshots for a single Source Server.

      Parameters:
      describeRecoverySnapshotsRequest -
      Returns:
      A Java Future containing the result of the DescribeRecoverySnapshots operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeRecoverySnapshots

      default CompletableFuture<DescribeRecoverySnapshotsResponse> describeRecoverySnapshots(Consumer<DescribeRecoverySnapshotsRequest.Builder> describeRecoverySnapshotsRequest)

      Lists all Recovery Snapshots for a single Source Server.


      This is a convenience which creates an instance of the DescribeRecoverySnapshotsRequest.Builder avoiding the need to create one manually via DescribeRecoverySnapshotsRequest.builder()

      Parameters:
      describeRecoverySnapshotsRequest - A Consumer that will call methods on DescribeRecoverySnapshotsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DescribeRecoverySnapshots operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeRecoverySnapshotsPaginator

      default DescribeRecoverySnapshotsPublisher describeRecoverySnapshotsPaginator(DescribeRecoverySnapshotsRequest describeRecoverySnapshotsRequest)

      This is a variant of describeRecoverySnapshots(software.amazon.awssdk.services.drs.model.DescribeRecoverySnapshotsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.drs.paginators.DescribeRecoverySnapshotsPublisher publisher = client.describeRecoverySnapshotsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.drs.paginators.DescribeRecoverySnapshotsPublisher publisher = client.describeRecoverySnapshotsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.drs.model.DescribeRecoverySnapshotsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.drs.model.DescribeRecoverySnapshotsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the describeRecoverySnapshots(software.amazon.awssdk.services.drs.model.DescribeRecoverySnapshotsRequest) operation.

      Parameters:
      describeRecoverySnapshotsRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeRecoverySnapshotsPaginator

      default DescribeRecoverySnapshotsPublisher describeRecoverySnapshotsPaginator(Consumer<DescribeRecoverySnapshotsRequest.Builder> describeRecoverySnapshotsRequest)

      This is a variant of describeRecoverySnapshots(software.amazon.awssdk.services.drs.model.DescribeRecoverySnapshotsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.drs.paginators.DescribeRecoverySnapshotsPublisher publisher = client.describeRecoverySnapshotsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.drs.paginators.DescribeRecoverySnapshotsPublisher publisher = client.describeRecoverySnapshotsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.drs.model.DescribeRecoverySnapshotsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.drs.model.DescribeRecoverySnapshotsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the describeRecoverySnapshots(software.amazon.awssdk.services.drs.model.DescribeRecoverySnapshotsRequest) operation.


      This is a convenience which creates an instance of the DescribeRecoverySnapshotsRequest.Builder avoiding the need to create one manually via DescribeRecoverySnapshotsRequest.builder()

      Parameters:
      describeRecoverySnapshotsRequest - A Consumer that will call methods on DescribeRecoverySnapshotsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeReplicationConfigurationTemplates

      default CompletableFuture<DescribeReplicationConfigurationTemplatesResponse> describeReplicationConfigurationTemplates(DescribeReplicationConfigurationTemplatesRequest describeReplicationConfigurationTemplatesRequest)

      Lists all ReplicationConfigurationTemplates, filtered by Source Server IDs.

      Parameters:
      describeReplicationConfigurationTemplatesRequest -
      Returns:
      A Java Future containing the result of the DescribeReplicationConfigurationTemplates operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeReplicationConfigurationTemplates

      default CompletableFuture<DescribeReplicationConfigurationTemplatesResponse> describeReplicationConfigurationTemplates(Consumer<DescribeReplicationConfigurationTemplatesRequest.Builder> describeReplicationConfigurationTemplatesRequest)

      Lists all ReplicationConfigurationTemplates, filtered by Source Server IDs.


      This is a convenience which creates an instance of the DescribeReplicationConfigurationTemplatesRequest.Builder avoiding the need to create one manually via DescribeReplicationConfigurationTemplatesRequest.builder()

      Parameters:
      describeReplicationConfigurationTemplatesRequest - A Consumer that will call methods on DescribeReplicationConfigurationTemplatesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DescribeReplicationConfigurationTemplates operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeReplicationConfigurationTemplatesPaginator

      default DescribeReplicationConfigurationTemplatesPublisher describeReplicationConfigurationTemplatesPaginator(DescribeReplicationConfigurationTemplatesRequest describeReplicationConfigurationTemplatesRequest)

      This is a variant of describeReplicationConfigurationTemplates(software.amazon.awssdk.services.drs.model.DescribeReplicationConfigurationTemplatesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.drs.paginators.DescribeReplicationConfigurationTemplatesPublisher publisher = client.describeReplicationConfigurationTemplatesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.drs.paginators.DescribeReplicationConfigurationTemplatesPublisher publisher = client.describeReplicationConfigurationTemplatesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.drs.model.DescribeReplicationConfigurationTemplatesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.drs.model.DescribeReplicationConfigurationTemplatesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the describeReplicationConfigurationTemplates(software.amazon.awssdk.services.drs.model.DescribeReplicationConfigurationTemplatesRequest) operation.

      Parameters:
      describeReplicationConfigurationTemplatesRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeReplicationConfigurationTemplatesPaginator

      default DescribeReplicationConfigurationTemplatesPublisher describeReplicationConfigurationTemplatesPaginator(Consumer<DescribeReplicationConfigurationTemplatesRequest.Builder> describeReplicationConfigurationTemplatesRequest)

      This is a variant of describeReplicationConfigurationTemplates(software.amazon.awssdk.services.drs.model.DescribeReplicationConfigurationTemplatesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.drs.paginators.DescribeReplicationConfigurationTemplatesPublisher publisher = client.describeReplicationConfigurationTemplatesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.drs.paginators.DescribeReplicationConfigurationTemplatesPublisher publisher = client.describeReplicationConfigurationTemplatesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.drs.model.DescribeReplicationConfigurationTemplatesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.drs.model.DescribeReplicationConfigurationTemplatesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the describeReplicationConfigurationTemplates(software.amazon.awssdk.services.drs.model.DescribeReplicationConfigurationTemplatesRequest) operation.


      This is a convenience which creates an instance of the DescribeReplicationConfigurationTemplatesRequest.Builder avoiding the need to create one manually via DescribeReplicationConfigurationTemplatesRequest.builder()

      Parameters:
      describeReplicationConfigurationTemplatesRequest - A Consumer that will call methods on DescribeReplicationConfigurationTemplatesRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeSourceNetworks

      default CompletableFuture<DescribeSourceNetworksResponse> describeSourceNetworks(DescribeSourceNetworksRequest describeSourceNetworksRequest)

      Lists all Source Networks or multiple Source Networks filtered by ID.

      Parameters:
      describeSourceNetworksRequest -
      Returns:
      A Java Future containing the result of the DescribeSourceNetworks operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeSourceNetworks

      default CompletableFuture<DescribeSourceNetworksResponse> describeSourceNetworks(Consumer<DescribeSourceNetworksRequest.Builder> describeSourceNetworksRequest)

      Lists all Source Networks or multiple Source Networks filtered by ID.


      This is a convenience which creates an instance of the DescribeSourceNetworksRequest.Builder avoiding the need to create one manually via DescribeSourceNetworksRequest.builder()

      Parameters:
      describeSourceNetworksRequest - A Consumer that will call methods on DescribeSourceNetworksRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DescribeSourceNetworks operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeSourceNetworksPaginator

      default DescribeSourceNetworksPublisher describeSourceNetworksPaginator(DescribeSourceNetworksRequest describeSourceNetworksRequest)

      This is a variant of describeSourceNetworks(software.amazon.awssdk.services.drs.model.DescribeSourceNetworksRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.drs.paginators.DescribeSourceNetworksPublisher publisher = client.describeSourceNetworksPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.drs.paginators.DescribeSourceNetworksPublisher publisher = client.describeSourceNetworksPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.drs.model.DescribeSourceNetworksResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.drs.model.DescribeSourceNetworksResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the describeSourceNetworks(software.amazon.awssdk.services.drs.model.DescribeSourceNetworksRequest) operation.

      Parameters:
      describeSourceNetworksRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeSourceNetworksPaginator

      default DescribeSourceNetworksPublisher describeSourceNetworksPaginator(Consumer<DescribeSourceNetworksRequest.Builder> describeSourceNetworksRequest)

      This is a variant of describeSourceNetworks(software.amazon.awssdk.services.drs.model.DescribeSourceNetworksRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.drs.paginators.DescribeSourceNetworksPublisher publisher = client.describeSourceNetworksPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.drs.paginators.DescribeSourceNetworksPublisher publisher = client.describeSourceNetworksPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.drs.model.DescribeSourceNetworksResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.drs.model.DescribeSourceNetworksResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the describeSourceNetworks(software.amazon.awssdk.services.drs.model.DescribeSourceNetworksRequest) operation.


      This is a convenience which creates an instance of the DescribeSourceNetworksRequest.Builder avoiding the need to create one manually via DescribeSourceNetworksRequest.builder()

      Parameters:
      describeSourceNetworksRequest - A Consumer that will call methods on DescribeSourceNetworksRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeSourceServers

      default CompletableFuture<DescribeSourceServersResponse> describeSourceServers(DescribeSourceServersRequest describeSourceServersRequest)

      Lists all Source Servers or multiple Source Servers filtered by ID.

      Parameters:
      describeSourceServersRequest -
      Returns:
      A Java Future containing the result of the DescribeSourceServers operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeSourceServers

      default CompletableFuture<DescribeSourceServersResponse> describeSourceServers(Consumer<DescribeSourceServersRequest.Builder> describeSourceServersRequest)

      Lists all Source Servers or multiple Source Servers filtered by ID.


      This is a convenience which creates an instance of the DescribeSourceServersRequest.Builder avoiding the need to create one manually via DescribeSourceServersRequest.builder()

      Parameters:
      describeSourceServersRequest - A Consumer that will call methods on DescribeSourceServersRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DescribeSourceServers operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeSourceServersPaginator

      default DescribeSourceServersPublisher describeSourceServersPaginator(DescribeSourceServersRequest describeSourceServersRequest)

      This is a variant of describeSourceServers(software.amazon.awssdk.services.drs.model.DescribeSourceServersRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.drs.paginators.DescribeSourceServersPublisher publisher = client.describeSourceServersPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.drs.paginators.DescribeSourceServersPublisher publisher = client.describeSourceServersPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.drs.model.DescribeSourceServersResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.drs.model.DescribeSourceServersResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the describeSourceServers(software.amazon.awssdk.services.drs.model.DescribeSourceServersRequest) operation.

      Parameters:
      describeSourceServersRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeSourceServersPaginator

      default DescribeSourceServersPublisher describeSourceServersPaginator(Consumer<DescribeSourceServersRequest.Builder> describeSourceServersRequest)

      This is a variant of describeSourceServers(software.amazon.awssdk.services.drs.model.DescribeSourceServersRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.drs.paginators.DescribeSourceServersPublisher publisher = client.describeSourceServersPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.drs.paginators.DescribeSourceServersPublisher publisher = client.describeSourceServersPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.drs.model.DescribeSourceServersResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.drs.model.DescribeSourceServersResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the describeSourceServers(software.amazon.awssdk.services.drs.model.DescribeSourceServersRequest) operation.


      This is a convenience which creates an instance of the DescribeSourceServersRequest.Builder avoiding the need to create one manually via DescribeSourceServersRequest.builder()

      Parameters:
      describeSourceServersRequest - A Consumer that will call methods on DescribeSourceServersRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • disconnectRecoveryInstance

      default CompletableFuture<DisconnectRecoveryInstanceResponse> disconnectRecoveryInstance(DisconnectRecoveryInstanceRequest disconnectRecoveryInstanceRequest)

      Disconnect a Recovery Instance from Elastic Disaster Recovery. Data replication is stopped immediately. All AWS resources created by Elastic Disaster Recovery for enabling the replication of the Recovery Instance will be terminated / deleted within 90 minutes. If the agent on the Recovery Instance has not been prevented from communicating with the Elastic Disaster Recovery service, then it will receive a command to uninstall itself (within approximately 10 minutes). The following properties of the Recovery Instance will be changed immediately: dataReplicationInfo.dataReplicationState will be set to DISCONNECTED; The totalStorageBytes property for each of dataReplicationInfo.replicatedDisks will be set to zero; dataReplicationInfo.lagDuration and dataReplicationInfo.lagDuration will be nullified.

      Parameters:
      disconnectRecoveryInstanceRequest -
      Returns:
      A Java Future containing the result of the DisconnectRecoveryInstance operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • disconnectRecoveryInstance

      default CompletableFuture<DisconnectRecoveryInstanceResponse> disconnectRecoveryInstance(Consumer<DisconnectRecoveryInstanceRequest.Builder> disconnectRecoveryInstanceRequest)

      Disconnect a Recovery Instance from Elastic Disaster Recovery. Data replication is stopped immediately. All AWS resources created by Elastic Disaster Recovery for enabling the replication of the Recovery Instance will be terminated / deleted within 90 minutes. If the agent on the Recovery Instance has not been prevented from communicating with the Elastic Disaster Recovery service, then it will receive a command to uninstall itself (within approximately 10 minutes). The following properties of the Recovery Instance will be changed immediately: dataReplicationInfo.dataReplicationState will be set to DISCONNECTED; The totalStorageBytes property for each of dataReplicationInfo.replicatedDisks will be set to zero; dataReplicationInfo.lagDuration and dataReplicationInfo.lagDuration will be nullified.


      This is a convenience which creates an instance of the DisconnectRecoveryInstanceRequest.Builder avoiding the need to create one manually via DisconnectRecoveryInstanceRequest.builder()

      Parameters:
      disconnectRecoveryInstanceRequest - A Consumer that will call methods on DisconnectRecoveryInstanceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DisconnectRecoveryInstance operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • disconnectSourceServer

      default CompletableFuture<DisconnectSourceServerResponse> disconnectSourceServer(DisconnectSourceServerRequest disconnectSourceServerRequest)

      Disconnects a specific Source Server from Elastic Disaster Recovery. Data replication is stopped immediately. All AWS resources created by Elastic Disaster Recovery for enabling the replication of the Source Server will be terminated / deleted within 90 minutes. You cannot disconnect a Source Server if it has a Recovery Instance. If the agent on the Source Server has not been prevented from communicating with the Elastic Disaster Recovery service, then it will receive a command to uninstall itself (within approximately 10 minutes). The following properties of the SourceServer will be changed immediately: dataReplicationInfo.dataReplicationState will be set to DISCONNECTED; The totalStorageBytes property for each of dataReplicationInfo.replicatedDisks will be set to zero; dataReplicationInfo.lagDuration and dataReplicationInfo.lagDuration will be nullified.

      Parameters:
      disconnectSourceServerRequest -
      Returns:
      A Java Future containing the result of the DisconnectSourceServer operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • disconnectSourceServer

      default CompletableFuture<DisconnectSourceServerResponse> disconnectSourceServer(Consumer<DisconnectSourceServerRequest.Builder> disconnectSourceServerRequest)

      Disconnects a specific Source Server from Elastic Disaster Recovery. Data replication is stopped immediately. All AWS resources created by Elastic Disaster Recovery for enabling the replication of the Source Server will be terminated / deleted within 90 minutes. You cannot disconnect a Source Server if it has a Recovery Instance. If the agent on the Source Server has not been prevented from communicating with the Elastic Disaster Recovery service, then it will receive a command to uninstall itself (within approximately 10 minutes). The following properties of the SourceServer will be changed immediately: dataReplicationInfo.dataReplicationState will be set to DISCONNECTED; The totalStorageBytes property for each of dataReplicationInfo.replicatedDisks will be set to zero; dataReplicationInfo.lagDuration and dataReplicationInfo.lagDuration will be nullified.


      This is a convenience which creates an instance of the DisconnectSourceServerRequest.Builder avoiding the need to create one manually via DisconnectSourceServerRequest.builder()

      Parameters:
      disconnectSourceServerRequest - A Consumer that will call methods on DisconnectSourceServerRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DisconnectSourceServer operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • exportSourceNetworkCfnTemplate

      default CompletableFuture<ExportSourceNetworkCfnTemplateResponse> exportSourceNetworkCfnTemplate(ExportSourceNetworkCfnTemplateRequest exportSourceNetworkCfnTemplateRequest)

      Export the Source Network CloudFormation template to an S3 bucket.

      Parameters:
      exportSourceNetworkCfnTemplateRequest -
      Returns:
      A Java Future containing the result of the ExportSourceNetworkCfnTemplate operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • exportSourceNetworkCfnTemplate

      default CompletableFuture<ExportSourceNetworkCfnTemplateResponse> exportSourceNetworkCfnTemplate(Consumer<ExportSourceNetworkCfnTemplateRequest.Builder> exportSourceNetworkCfnTemplateRequest)

      Export the Source Network CloudFormation template to an S3 bucket.


      This is a convenience which creates an instance of the ExportSourceNetworkCfnTemplateRequest.Builder avoiding the need to create one manually via ExportSourceNetworkCfnTemplateRequest.builder()

      Parameters:
      exportSourceNetworkCfnTemplateRequest - A Consumer that will call methods on ExportSourceNetworkCfnTemplateRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ExportSourceNetworkCfnTemplate operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getFailbackReplicationConfiguration

      default CompletableFuture<GetFailbackReplicationConfigurationResponse> getFailbackReplicationConfiguration(GetFailbackReplicationConfigurationRequest getFailbackReplicationConfigurationRequest)

      Lists all Failback ReplicationConfigurations, filtered by Recovery Instance ID.

      Parameters:
      getFailbackReplicationConfigurationRequest -
      Returns:
      A Java Future containing the result of the GetFailbackReplicationConfiguration operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getFailbackReplicationConfiguration

      default CompletableFuture<GetFailbackReplicationConfigurationResponse> getFailbackReplicationConfiguration(Consumer<GetFailbackReplicationConfigurationRequest.Builder> getFailbackReplicationConfigurationRequest)

      Lists all Failback ReplicationConfigurations, filtered by Recovery Instance ID.


      This is a convenience which creates an instance of the GetFailbackReplicationConfigurationRequest.Builder avoiding the need to create one manually via GetFailbackReplicationConfigurationRequest.builder()

      Parameters:
      getFailbackReplicationConfigurationRequest - A Consumer that will call methods on GetFailbackReplicationConfigurationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetFailbackReplicationConfiguration operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getLaunchConfiguration

      default CompletableFuture<GetLaunchConfigurationResponse> getLaunchConfiguration(GetLaunchConfigurationRequest getLaunchConfigurationRequest)

      Gets a LaunchConfiguration, filtered by Source Server IDs.

      Parameters:
      getLaunchConfigurationRequest -
      Returns:
      A Java Future containing the result of the GetLaunchConfiguration operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getLaunchConfiguration

      default CompletableFuture<GetLaunchConfigurationResponse> getLaunchConfiguration(Consumer<GetLaunchConfigurationRequest.Builder> getLaunchConfigurationRequest)

      Gets a LaunchConfiguration, filtered by Source Server IDs.


      This is a convenience which creates an instance of the GetLaunchConfigurationRequest.Builder avoiding the need to create one manually via GetLaunchConfigurationRequest.builder()

      Parameters:
      getLaunchConfigurationRequest - A Consumer that will call methods on GetLaunchConfigurationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetLaunchConfiguration operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getReplicationConfiguration

      default CompletableFuture<GetReplicationConfigurationResponse> getReplicationConfiguration(GetReplicationConfigurationRequest getReplicationConfigurationRequest)

      Gets a ReplicationConfiguration, filtered by Source Server ID.

      Parameters:
      getReplicationConfigurationRequest -
      Returns:
      A Java Future containing the result of the GetReplicationConfiguration operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getReplicationConfiguration

      default CompletableFuture<GetReplicationConfigurationResponse> getReplicationConfiguration(Consumer<GetReplicationConfigurationRequest.Builder> getReplicationConfigurationRequest)

      Gets a ReplicationConfiguration, filtered by Source Server ID.


      This is a convenience which creates an instance of the GetReplicationConfigurationRequest.Builder avoiding the need to create one manually via GetReplicationConfigurationRequest.builder()

      Parameters:
      getReplicationConfigurationRequest - A Consumer that will call methods on GetReplicationConfigurationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetReplicationConfiguration operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • initializeService

      default CompletableFuture<InitializeServiceResponse> initializeService(InitializeServiceRequest initializeServiceRequest)

      Initialize Elastic Disaster Recovery.

      Parameters:
      initializeServiceRequest -
      Returns:
      A Java Future containing the result of the InitializeService operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • initializeService

      default CompletableFuture<InitializeServiceResponse> initializeService(Consumer<InitializeServiceRequest.Builder> initializeServiceRequest)

      Initialize Elastic Disaster Recovery.


      This is a convenience which creates an instance of the InitializeServiceRequest.Builder avoiding the need to create one manually via InitializeServiceRequest.builder()

      Parameters:
      initializeServiceRequest - A Consumer that will call methods on InitializeServiceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the InitializeService operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listExtensibleSourceServers

      default CompletableFuture<ListExtensibleSourceServersResponse> listExtensibleSourceServers(ListExtensibleSourceServersRequest listExtensibleSourceServersRequest)

      Returns a list of source servers on a staging account that are extensible, which means that: a. The source server is not already extended into this Account. b. The source server on the Account we’re reading from is not an extension of another source server.

      Parameters:
      listExtensibleSourceServersRequest -
      Returns:
      A Java Future containing the result of the ListExtensibleSourceServers operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listExtensibleSourceServers

      default CompletableFuture<ListExtensibleSourceServersResponse> listExtensibleSourceServers(Consumer<ListExtensibleSourceServersRequest.Builder> listExtensibleSourceServersRequest)

      Returns a list of source servers on a staging account that are extensible, which means that: a. The source server is not already extended into this Account. b. The source server on the Account we’re reading from is not an extension of another source server.


      This is a convenience which creates an instance of the ListExtensibleSourceServersRequest.Builder avoiding the need to create one manually via ListExtensibleSourceServersRequest.builder()

      Parameters:
      listExtensibleSourceServersRequest - A Consumer that will call methods on ListExtensibleSourceServersRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListExtensibleSourceServers operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listExtensibleSourceServersPaginator

      default ListExtensibleSourceServersPublisher listExtensibleSourceServersPaginator(ListExtensibleSourceServersRequest listExtensibleSourceServersRequest)

      This is a variant of listExtensibleSourceServers(software.amazon.awssdk.services.drs.model.ListExtensibleSourceServersRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.drs.paginators.ListExtensibleSourceServersPublisher publisher = client.listExtensibleSourceServersPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.drs.paginators.ListExtensibleSourceServersPublisher publisher = client.listExtensibleSourceServersPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.drs.model.ListExtensibleSourceServersResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.drs.model.ListExtensibleSourceServersResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listExtensibleSourceServers(software.amazon.awssdk.services.drs.model.ListExtensibleSourceServersRequest) operation.

      Parameters:
      listExtensibleSourceServersRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listExtensibleSourceServersPaginator

      default ListExtensibleSourceServersPublisher listExtensibleSourceServersPaginator(Consumer<ListExtensibleSourceServersRequest.Builder> listExtensibleSourceServersRequest)

      This is a variant of listExtensibleSourceServers(software.amazon.awssdk.services.drs.model.ListExtensibleSourceServersRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.drs.paginators.ListExtensibleSourceServersPublisher publisher = client.listExtensibleSourceServersPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.drs.paginators.ListExtensibleSourceServersPublisher publisher = client.listExtensibleSourceServersPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.drs.model.ListExtensibleSourceServersResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.drs.model.ListExtensibleSourceServersResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listExtensibleSourceServers(software.amazon.awssdk.services.drs.model.ListExtensibleSourceServersRequest) operation.


      This is a convenience which creates an instance of the ListExtensibleSourceServersRequest.Builder avoiding the need to create one manually via ListExtensibleSourceServersRequest.builder()

      Parameters:
      listExtensibleSourceServersRequest - A Consumer that will call methods on ListExtensibleSourceServersRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listLaunchActions

      default CompletableFuture<ListLaunchActionsResponse> listLaunchActions(ListLaunchActionsRequest listLaunchActionsRequest)

      Lists resource launch actions.

      Parameters:
      listLaunchActionsRequest -
      Returns:
      A Java Future containing the result of the ListLaunchActions operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ServiceQuotaExceededException The request could not be completed because its exceeded the service quota.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listLaunchActions

      default CompletableFuture<ListLaunchActionsResponse> listLaunchActions(Consumer<ListLaunchActionsRequest.Builder> listLaunchActionsRequest)

      Lists resource launch actions.


      This is a convenience which creates an instance of the ListLaunchActionsRequest.Builder avoiding the need to create one manually via ListLaunchActionsRequest.builder()

      Parameters:
      listLaunchActionsRequest - A Consumer that will call methods on ListLaunchActionsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListLaunchActions operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ServiceQuotaExceededException The request could not be completed because its exceeded the service quota.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listLaunchActionsPaginator

      default ListLaunchActionsPublisher listLaunchActionsPaginator(ListLaunchActionsRequest listLaunchActionsRequest)

      This is a variant of listLaunchActions(software.amazon.awssdk.services.drs.model.ListLaunchActionsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.drs.paginators.ListLaunchActionsPublisher publisher = client.listLaunchActionsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.drs.paginators.ListLaunchActionsPublisher publisher = client.listLaunchActionsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.drs.model.ListLaunchActionsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.drs.model.ListLaunchActionsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listLaunchActions(software.amazon.awssdk.services.drs.model.ListLaunchActionsRequest) operation.

      Parameters:
      listLaunchActionsRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ServiceQuotaExceededException The request could not be completed because its exceeded the service quota.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listLaunchActionsPaginator

      default ListLaunchActionsPublisher listLaunchActionsPaginator(Consumer<ListLaunchActionsRequest.Builder> listLaunchActionsRequest)

      This is a variant of listLaunchActions(software.amazon.awssdk.services.drs.model.ListLaunchActionsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.drs.paginators.ListLaunchActionsPublisher publisher = client.listLaunchActionsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.drs.paginators.ListLaunchActionsPublisher publisher = client.listLaunchActionsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.drs.model.ListLaunchActionsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.drs.model.ListLaunchActionsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listLaunchActions(software.amazon.awssdk.services.drs.model.ListLaunchActionsRequest) operation.


      This is a convenience which creates an instance of the ListLaunchActionsRequest.Builder avoiding the need to create one manually via ListLaunchActionsRequest.builder()

      Parameters:
      listLaunchActionsRequest - A Consumer that will call methods on ListLaunchActionsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ServiceQuotaExceededException The request could not be completed because its exceeded the service quota.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listStagingAccounts

      default CompletableFuture<ListStagingAccountsResponse> listStagingAccounts(ListStagingAccountsRequest listStagingAccountsRequest)

      Returns an array of staging accounts for existing extended source servers.

      Parameters:
      listStagingAccountsRequest -
      Returns:
      A Java Future containing the result of the ListStagingAccounts operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listStagingAccounts

      default CompletableFuture<ListStagingAccountsResponse> listStagingAccounts(Consumer<ListStagingAccountsRequest.Builder> listStagingAccountsRequest)

      Returns an array of staging accounts for existing extended source servers.


      This is a convenience which creates an instance of the ListStagingAccountsRequest.Builder avoiding the need to create one manually via ListStagingAccountsRequest.builder()

      Parameters:
      listStagingAccountsRequest - A Consumer that will call methods on ListStagingAccountsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListStagingAccounts operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listStagingAccountsPaginator

      default ListStagingAccountsPublisher listStagingAccountsPaginator(ListStagingAccountsRequest listStagingAccountsRequest)

      This is a variant of listStagingAccounts(software.amazon.awssdk.services.drs.model.ListStagingAccountsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.drs.paginators.ListStagingAccountsPublisher publisher = client.listStagingAccountsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.drs.paginators.ListStagingAccountsPublisher publisher = client.listStagingAccountsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.drs.model.ListStagingAccountsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.drs.model.ListStagingAccountsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listStagingAccounts(software.amazon.awssdk.services.drs.model.ListStagingAccountsRequest) operation.

      Parameters:
      listStagingAccountsRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listStagingAccountsPaginator

      default ListStagingAccountsPublisher listStagingAccountsPaginator(Consumer<ListStagingAccountsRequest.Builder> listStagingAccountsRequest)

      This is a variant of listStagingAccounts(software.amazon.awssdk.services.drs.model.ListStagingAccountsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.drs.paginators.ListStagingAccountsPublisher publisher = client.listStagingAccountsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.drs.paginators.ListStagingAccountsPublisher publisher = client.listStagingAccountsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.drs.model.ListStagingAccountsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.drs.model.ListStagingAccountsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listStagingAccounts(software.amazon.awssdk.services.drs.model.ListStagingAccountsRequest) operation.


      This is a convenience which creates an instance of the ListStagingAccountsRequest.Builder avoiding the need to create one manually via ListStagingAccountsRequest.builder()

      Parameters:
      listStagingAccountsRequest - A Consumer that will call methods on ListStagingAccountsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTagsForResource

      default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)

      List all tags for your Elastic Disaster Recovery resources.

      Parameters:
      listTagsForResourceRequest -
      Returns:
      A Java Future containing the result of the ListTagsForResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTagsForResource

      default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)

      List all tags for your Elastic Disaster Recovery resources.


      This is a convenience which creates an instance of the ListTagsForResourceRequest.Builder avoiding the need to create one manually via ListTagsForResourceRequest.builder()

      Parameters:
      listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListTagsForResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • putLaunchAction

      default CompletableFuture<PutLaunchActionResponse> putLaunchAction(PutLaunchActionRequest putLaunchActionRequest)

      Puts a resource launch action.

      Parameters:
      putLaunchActionRequest -
      Returns:
      A Java Future containing the result of the PutLaunchAction operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • putLaunchAction

      default CompletableFuture<PutLaunchActionResponse> putLaunchAction(Consumer<PutLaunchActionRequest.Builder> putLaunchActionRequest)

      Puts a resource launch action.


      This is a convenience which creates an instance of the PutLaunchActionRequest.Builder avoiding the need to create one manually via PutLaunchActionRequest.builder()

      Parameters:
      putLaunchActionRequest - A Consumer that will call methods on PutLaunchActionRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the PutLaunchAction operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • retryDataReplication

      @Deprecated default CompletableFuture<RetryDataReplicationResponse> retryDataReplication(RetryDataReplicationRequest retryDataReplicationRequest)
      Deprecated.
      WARNING: RetryDataReplication is deprecated

      WARNING: RetryDataReplication is deprecated. Causes the data replication initiation sequence to begin immediately upon next Handshake for the specified Source Server ID, regardless of when the previous initiation started. This command will work only if the Source Server is stalled or is in a DISCONNECTED or STOPPED state.

      Parameters:
      retryDataReplicationRequest -
      Returns:
      A Java Future containing the result of the RetryDataReplication operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • retryDataReplication

      @Deprecated default CompletableFuture<RetryDataReplicationResponse> retryDataReplication(Consumer<RetryDataReplicationRequest.Builder> retryDataReplicationRequest)
      Deprecated.
      WARNING: RetryDataReplication is deprecated

      WARNING: RetryDataReplication is deprecated. Causes the data replication initiation sequence to begin immediately upon next Handshake for the specified Source Server ID, regardless of when the previous initiation started. This command will work only if the Source Server is stalled or is in a DISCONNECTED or STOPPED state.


      This is a convenience which creates an instance of the RetryDataReplicationRequest.Builder avoiding the need to create one manually via RetryDataReplicationRequest.builder()

      Parameters:
      retryDataReplicationRequest - A Consumer that will call methods on RetryDataReplicationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the RetryDataReplication operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • reverseReplication

      default CompletableFuture<ReverseReplicationResponse> reverseReplication(ReverseReplicationRequest reverseReplicationRequest)

      Start replication to origin / target region - applies only to protected instances that originated in EC2. For recovery instances on target region - starts replication back to origin region. For failback instances on origin region - starts replication to target region to re-protect them.

      Parameters:
      reverseReplicationRequest -
      Returns:
      A Java Future containing the result of the ReverseReplication operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • reverseReplication

      default CompletableFuture<ReverseReplicationResponse> reverseReplication(Consumer<ReverseReplicationRequest.Builder> reverseReplicationRequest)

      Start replication to origin / target region - applies only to protected instances that originated in EC2. For recovery instances on target region - starts replication back to origin region. For failback instances on origin region - starts replication to target region to re-protect them.


      This is a convenience which creates an instance of the ReverseReplicationRequest.Builder avoiding the need to create one manually via ReverseReplicationRequest.builder()

      Parameters:
      reverseReplicationRequest - A Consumer that will call methods on ReverseReplicationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ReverseReplication operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startFailbackLaunch

      default CompletableFuture<StartFailbackLaunchResponse> startFailbackLaunch(StartFailbackLaunchRequest startFailbackLaunchRequest)

      Initiates a Job for launching the machine that is being failed back to from the specified Recovery Instance. This will run conversion on the failback client and will reboot your machine, thus completing the failback process.

      Parameters:
      startFailbackLaunchRequest -
      Returns:
      A Java Future containing the result of the StartFailbackLaunch operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ServiceQuotaExceededException The request could not be completed because its exceeded the service quota.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startFailbackLaunch

      default CompletableFuture<StartFailbackLaunchResponse> startFailbackLaunch(Consumer<StartFailbackLaunchRequest.Builder> startFailbackLaunchRequest)

      Initiates a Job for launching the machine that is being failed back to from the specified Recovery Instance. This will run conversion on the failback client and will reboot your machine, thus completing the failback process.


      This is a convenience which creates an instance of the StartFailbackLaunchRequest.Builder avoiding the need to create one manually via StartFailbackLaunchRequest.builder()

      Parameters:
      startFailbackLaunchRequest - A Consumer that will call methods on StartFailbackLaunchRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the StartFailbackLaunch operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ServiceQuotaExceededException The request could not be completed because its exceeded the service quota.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startRecovery

      default CompletableFuture<StartRecoveryResponse> startRecovery(StartRecoveryRequest startRecoveryRequest)

      Launches Recovery Instances for the specified Source Servers. For each Source Server you may choose a point in time snapshot to launch from, or use an on demand snapshot.

      Parameters:
      startRecoveryRequest -
      Returns:
      A Java Future containing the result of the StartRecovery operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ServiceQuotaExceededException The request could not be completed because its exceeded the service quota.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startRecovery

      default CompletableFuture<StartRecoveryResponse> startRecovery(Consumer<StartRecoveryRequest.Builder> startRecoveryRequest)

      Launches Recovery Instances for the specified Source Servers. For each Source Server you may choose a point in time snapshot to launch from, or use an on demand snapshot.


      This is a convenience which creates an instance of the StartRecoveryRequest.Builder avoiding the need to create one manually via StartRecoveryRequest.builder()

      Parameters:
      startRecoveryRequest - A Consumer that will call methods on StartRecoveryRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the StartRecovery operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ServiceQuotaExceededException The request could not be completed because its exceeded the service quota.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startReplication

      default CompletableFuture<StartReplicationResponse> startReplication(StartReplicationRequest startReplicationRequest)

      Starts replication for a stopped Source Server. This action would make the Source Server protected again and restart billing for it.

      Parameters:
      startReplicationRequest -
      Returns:
      A Java Future containing the result of the StartReplication operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startReplication

      default CompletableFuture<StartReplicationResponse> startReplication(Consumer<StartReplicationRequest.Builder> startReplicationRequest)

      Starts replication for a stopped Source Server. This action would make the Source Server protected again and restart billing for it.


      This is a convenience which creates an instance of the StartReplicationRequest.Builder avoiding the need to create one manually via StartReplicationRequest.builder()

      Parameters:
      startReplicationRequest - A Consumer that will call methods on StartReplicationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the StartReplication operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startSourceNetworkRecovery

      default CompletableFuture<StartSourceNetworkRecoveryResponse> startSourceNetworkRecovery(StartSourceNetworkRecoveryRequest startSourceNetworkRecoveryRequest)

      Deploy VPC for the specified Source Network and modify launch templates to use this network. The VPC will be deployed using a dedicated CloudFormation stack.

      Parameters:
      startSourceNetworkRecoveryRequest -
      Returns:
      A Java Future containing the result of the StartSourceNetworkRecovery operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ServiceQuotaExceededException The request could not be completed because its exceeded the service quota.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startSourceNetworkRecovery

      default CompletableFuture<StartSourceNetworkRecoveryResponse> startSourceNetworkRecovery(Consumer<StartSourceNetworkRecoveryRequest.Builder> startSourceNetworkRecoveryRequest)

      Deploy VPC for the specified Source Network and modify launch templates to use this network. The VPC will be deployed using a dedicated CloudFormation stack.


      This is a convenience which creates an instance of the StartSourceNetworkRecoveryRequest.Builder avoiding the need to create one manually via StartSourceNetworkRecoveryRequest.builder()

      Parameters:
      startSourceNetworkRecoveryRequest - A Consumer that will call methods on StartSourceNetworkRecoveryRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the StartSourceNetworkRecovery operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ServiceQuotaExceededException The request could not be completed because its exceeded the service quota.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startSourceNetworkReplication

      default CompletableFuture<StartSourceNetworkReplicationResponse> startSourceNetworkReplication(StartSourceNetworkReplicationRequest startSourceNetworkReplicationRequest)

      Starts replication for a Source Network. This action would make the Source Network protected.

      Parameters:
      startSourceNetworkReplicationRequest -
      Returns:
      A Java Future containing the result of the StartSourceNetworkReplication operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startSourceNetworkReplication

      default CompletableFuture<StartSourceNetworkReplicationResponse> startSourceNetworkReplication(Consumer<StartSourceNetworkReplicationRequest.Builder> startSourceNetworkReplicationRequest)

      Starts replication for a Source Network. This action would make the Source Network protected.


      This is a convenience which creates an instance of the StartSourceNetworkReplicationRequest.Builder avoiding the need to create one manually via StartSourceNetworkReplicationRequest.builder()

      Parameters:
      startSourceNetworkReplicationRequest - A Consumer that will call methods on StartSourceNetworkReplicationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the StartSourceNetworkReplication operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • stopFailback

      default CompletableFuture<StopFailbackResponse> stopFailback(StopFailbackRequest stopFailbackRequest)

      Stops the failback process for a specified Recovery Instance. This changes the Failback State of the Recovery Instance back to FAILBACK_NOT_STARTED.

      Parameters:
      stopFailbackRequest -
      Returns:
      A Java Future containing the result of the StopFailback operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • stopFailback

      default CompletableFuture<StopFailbackResponse> stopFailback(Consumer<StopFailbackRequest.Builder> stopFailbackRequest)

      Stops the failback process for a specified Recovery Instance. This changes the Failback State of the Recovery Instance back to FAILBACK_NOT_STARTED.


      This is a convenience which creates an instance of the StopFailbackRequest.Builder avoiding the need to create one manually via StopFailbackRequest.builder()

      Parameters:
      stopFailbackRequest - A Consumer that will call methods on StopFailbackRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the StopFailback operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • stopReplication

      default CompletableFuture<StopReplicationResponse> stopReplication(StopReplicationRequest stopReplicationRequest)

      Stops replication for a Source Server. This action would make the Source Server unprotected, delete its existing snapshots and stop billing for it.

      Parameters:
      stopReplicationRequest -
      Returns:
      A Java Future containing the result of the StopReplication operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • stopReplication

      default CompletableFuture<StopReplicationResponse> stopReplication(Consumer<StopReplicationRequest.Builder> stopReplicationRequest)

      Stops replication for a Source Server. This action would make the Source Server unprotected, delete its existing snapshots and stop billing for it.


      This is a convenience which creates an instance of the StopReplicationRequest.Builder avoiding the need to create one manually via StopReplicationRequest.builder()

      Parameters:
      stopReplicationRequest - A Consumer that will call methods on StopReplicationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the StopReplication operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • stopSourceNetworkReplication

      default CompletableFuture<StopSourceNetworkReplicationResponse> stopSourceNetworkReplication(StopSourceNetworkReplicationRequest stopSourceNetworkReplicationRequest)

      Stops replication for a Source Network. This action would make the Source Network unprotected.

      Parameters:
      stopSourceNetworkReplicationRequest -
      Returns:
      A Java Future containing the result of the StopSourceNetworkReplication operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • stopSourceNetworkReplication

      default CompletableFuture<StopSourceNetworkReplicationResponse> stopSourceNetworkReplication(Consumer<StopSourceNetworkReplicationRequest.Builder> stopSourceNetworkReplicationRequest)

      Stops replication for a Source Network. This action would make the Source Network unprotected.


      This is a convenience which creates an instance of the StopSourceNetworkReplicationRequest.Builder avoiding the need to create one manually via StopSourceNetworkReplicationRequest.builder()

      Parameters:
      stopSourceNetworkReplicationRequest - A Consumer that will call methods on StopSourceNetworkReplicationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the StopSourceNetworkReplication operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • tagResource

      default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)

      Adds or overwrites only the specified tags for the specified Elastic Disaster Recovery resource or resources. When you specify an existing tag key, the value is overwritten with the new value. Each resource can have a maximum of 50 tags. Each tag consists of a key and optional value.

      Parameters:
      tagResourceRequest -
      Returns:
      A Java Future containing the result of the TagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • tagResource

      default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)

      Adds or overwrites only the specified tags for the specified Elastic Disaster Recovery resource or resources. When you specify an existing tag key, the value is overwritten with the new value. Each resource can have a maximum of 50 tags. Each tag consists of a key and optional value.


      This is a convenience which creates an instance of the TagResourceRequest.Builder avoiding the need to create one manually via TagResourceRequest.builder()

      Parameters:
      tagResourceRequest - A Consumer that will call methods on TagResourceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the TagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • terminateRecoveryInstances

      default CompletableFuture<TerminateRecoveryInstancesResponse> terminateRecoveryInstances(TerminateRecoveryInstancesRequest terminateRecoveryInstancesRequest)

      Initiates a Job for terminating the EC2 resources associated with the specified Recovery Instances, and then will delete the Recovery Instances from the Elastic Disaster Recovery service.

      Parameters:
      terminateRecoveryInstancesRequest -
      Returns:
      A Java Future containing the result of the TerminateRecoveryInstances operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ServiceQuotaExceededException The request could not be completed because its exceeded the service quota.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • terminateRecoveryInstances

      default CompletableFuture<TerminateRecoveryInstancesResponse> terminateRecoveryInstances(Consumer<TerminateRecoveryInstancesRequest.Builder> terminateRecoveryInstancesRequest)

      Initiates a Job for terminating the EC2 resources associated with the specified Recovery Instances, and then will delete the Recovery Instances from the Elastic Disaster Recovery service.


      This is a convenience which creates an instance of the TerminateRecoveryInstancesRequest.Builder avoiding the need to create one manually via TerminateRecoveryInstancesRequest.builder()

      Parameters:
      terminateRecoveryInstancesRequest - A Consumer that will call methods on TerminateRecoveryInstancesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the TerminateRecoveryInstances operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ServiceQuotaExceededException The request could not be completed because its exceeded the service quota.
      • ThrottlingException The request was denied due to request throttling.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • untagResource

      default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)

      Deletes the specified set of tags from the specified set of Elastic Disaster Recovery resources.

      Parameters:
      untagResourceRequest -
      Returns:
      A Java Future containing the result of the UntagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • untagResource

      default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)

      Deletes the specified set of tags from the specified set of Elastic Disaster Recovery resources.


      This is a convenience which creates an instance of the UntagResourceRequest.Builder avoiding the need to create one manually via UntagResourceRequest.builder()

      Parameters:
      untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UntagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateFailbackReplicationConfiguration

      default CompletableFuture<UpdateFailbackReplicationConfigurationResponse> updateFailbackReplicationConfiguration(UpdateFailbackReplicationConfigurationRequest updateFailbackReplicationConfigurationRequest)

      Allows you to update the failback replication configuration of a Recovery Instance by ID.

      Parameters:
      updateFailbackReplicationConfigurationRequest -
      Returns:
      A Java Future containing the result of the UpdateFailbackReplicationConfiguration operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateFailbackReplicationConfiguration

      default CompletableFuture<UpdateFailbackReplicationConfigurationResponse> updateFailbackReplicationConfiguration(Consumer<UpdateFailbackReplicationConfigurationRequest.Builder> updateFailbackReplicationConfigurationRequest)

      Allows you to update the failback replication configuration of a Recovery Instance by ID.


      This is a convenience which creates an instance of the UpdateFailbackReplicationConfigurationRequest.Builder avoiding the need to create one manually via UpdateFailbackReplicationConfigurationRequest.builder()

      Parameters:
      updateFailbackReplicationConfigurationRequest - A Consumer that will call methods on UpdateFailbackReplicationConfigurationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateFailbackReplicationConfiguration operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateLaunchConfiguration

      default CompletableFuture<UpdateLaunchConfigurationResponse> updateLaunchConfiguration(UpdateLaunchConfigurationRequest updateLaunchConfigurationRequest)

      Updates a LaunchConfiguration by Source Server ID.

      Parameters:
      updateLaunchConfigurationRequest -
      Returns:
      A Java Future containing the result of the UpdateLaunchConfiguration operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateLaunchConfiguration

      default CompletableFuture<UpdateLaunchConfigurationResponse> updateLaunchConfiguration(Consumer<UpdateLaunchConfigurationRequest.Builder> updateLaunchConfigurationRequest)

      Updates a LaunchConfiguration by Source Server ID.


      This is a convenience which creates an instance of the UpdateLaunchConfigurationRequest.Builder avoiding the need to create one manually via UpdateLaunchConfigurationRequest.builder()

      Parameters:
      updateLaunchConfigurationRequest - A Consumer that will call methods on UpdateLaunchConfigurationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateLaunchConfiguration operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateLaunchConfigurationTemplate

      default CompletableFuture<UpdateLaunchConfigurationTemplateResponse> updateLaunchConfigurationTemplate(UpdateLaunchConfigurationTemplateRequest updateLaunchConfigurationTemplateRequest)

      Updates an existing Launch Configuration Template by ID.

      Parameters:
      updateLaunchConfigurationTemplateRequest -
      Returns:
      A Java Future containing the result of the UpdateLaunchConfigurationTemplate operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateLaunchConfigurationTemplate

      default CompletableFuture<UpdateLaunchConfigurationTemplateResponse> updateLaunchConfigurationTemplate(Consumer<UpdateLaunchConfigurationTemplateRequest.Builder> updateLaunchConfigurationTemplateRequest)

      Updates an existing Launch Configuration Template by ID.


      This is a convenience which creates an instance of the UpdateLaunchConfigurationTemplateRequest.Builder avoiding the need to create one manually via UpdateLaunchConfigurationTemplateRequest.builder()

      Parameters:
      updateLaunchConfigurationTemplateRequest - A Consumer that will call methods on UpdateLaunchConfigurationTemplateRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateLaunchConfigurationTemplate operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateReplicationConfiguration

      default CompletableFuture<UpdateReplicationConfigurationResponse> updateReplicationConfiguration(UpdateReplicationConfigurationRequest updateReplicationConfigurationRequest)

      Allows you to update a ReplicationConfiguration by Source Server ID.

      Parameters:
      updateReplicationConfigurationRequest -
      Returns:
      A Java Future containing the result of the UpdateReplicationConfiguration operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateReplicationConfiguration

      default CompletableFuture<UpdateReplicationConfigurationResponse> updateReplicationConfiguration(Consumer<UpdateReplicationConfigurationRequest.Builder> updateReplicationConfigurationRequest)

      Allows you to update a ReplicationConfiguration by Source Server ID.


      This is a convenience which creates an instance of the UpdateReplicationConfigurationRequest.Builder avoiding the need to create one manually via UpdateReplicationConfigurationRequest.builder()

      Parameters:
      updateReplicationConfigurationRequest - A Consumer that will call methods on UpdateReplicationConfigurationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateReplicationConfiguration operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ConflictException The request could not be completed due to a conflict with the current state of the target resource.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateReplicationConfigurationTemplate

      default CompletableFuture<UpdateReplicationConfigurationTemplateResponse> updateReplicationConfigurationTemplate(UpdateReplicationConfigurationTemplateRequest updateReplicationConfigurationTemplateRequest)

      Updates a ReplicationConfigurationTemplate by ID.

      Parameters:
      updateReplicationConfigurationTemplateRequest -
      Returns:
      A Java Future containing the result of the UpdateReplicationConfigurationTemplate operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateReplicationConfigurationTemplate

      default CompletableFuture<UpdateReplicationConfigurationTemplateResponse> updateReplicationConfigurationTemplate(Consumer<UpdateReplicationConfigurationTemplateRequest.Builder> updateReplicationConfigurationTemplateRequest)

      Updates a ReplicationConfigurationTemplate by ID.


      This is a convenience which creates an instance of the UpdateReplicationConfigurationTemplateRequest.Builder avoiding the need to create one manually via UpdateReplicationConfigurationTemplateRequest.builder()

      Parameters:
      updateReplicationConfigurationTemplateRequest - A Consumer that will call methods on UpdateReplicationConfigurationTemplateRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateReplicationConfigurationTemplate operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The resource for this operation was not found.
      • InternalServerException The request processing has failed because of an unknown error, exception or failure.
      • ThrottlingException The request was denied due to request throttling.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ValidationException The input fails to satisfy the constraints specified by the AWS service.
      • UninitializedAccountException The account performing the request has not been initialized.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • DrsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • serviceClientConfiguration

      default DrsServiceClientConfiguration serviceClientConfiguration()
      Description copied from interface: SdkClient
      The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration
      Specified by:
      serviceClientConfiguration in interface AwsClient
      Specified by:
      serviceClientConfiguration in interface SdkClient
      Returns:
      SdkServiceClientConfiguration
    • create

      static DrsAsyncClient create()
      Create a DrsAsyncClient with the region loaded from the DefaultAwsRegionProviderChain and credentials loaded from the DefaultCredentialsProvider.
    • builder

      static DrsAsyncClientBuilder builder()
      Create a builder that can be used to configure and create a DrsAsyncClient.