software.amazon.awssdk.services.migrationhub.MigrationHubAsyncClient Maven / Gradle / Ivy
Show all versions of migrationhub Show documentation
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package software.amazon.awssdk.services.migrationhub;
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkPublicApi;
import software.amazon.awssdk.annotations.ThreadSafe;
import software.amazon.awssdk.core.SdkClient;
import software.amazon.awssdk.services.migrationhub.model.AssociateCreatedArtifactRequest;
import software.amazon.awssdk.services.migrationhub.model.AssociateCreatedArtifactResponse;
import software.amazon.awssdk.services.migrationhub.model.AssociateDiscoveredResourceRequest;
import software.amazon.awssdk.services.migrationhub.model.AssociateDiscoveredResourceResponse;
import software.amazon.awssdk.services.migrationhub.model.CreateProgressUpdateStreamRequest;
import software.amazon.awssdk.services.migrationhub.model.CreateProgressUpdateStreamResponse;
import software.amazon.awssdk.services.migrationhub.model.DeleteProgressUpdateStreamRequest;
import software.amazon.awssdk.services.migrationhub.model.DeleteProgressUpdateStreamResponse;
import software.amazon.awssdk.services.migrationhub.model.DescribeApplicationStateRequest;
import software.amazon.awssdk.services.migrationhub.model.DescribeApplicationStateResponse;
import software.amazon.awssdk.services.migrationhub.model.DescribeMigrationTaskRequest;
import software.amazon.awssdk.services.migrationhub.model.DescribeMigrationTaskResponse;
import software.amazon.awssdk.services.migrationhub.model.DisassociateCreatedArtifactRequest;
import software.amazon.awssdk.services.migrationhub.model.DisassociateCreatedArtifactResponse;
import software.amazon.awssdk.services.migrationhub.model.DisassociateDiscoveredResourceRequest;
import software.amazon.awssdk.services.migrationhub.model.DisassociateDiscoveredResourceResponse;
import software.amazon.awssdk.services.migrationhub.model.ImportMigrationTaskRequest;
import software.amazon.awssdk.services.migrationhub.model.ImportMigrationTaskResponse;
import software.amazon.awssdk.services.migrationhub.model.ListApplicationStatesRequest;
import software.amazon.awssdk.services.migrationhub.model.ListApplicationStatesResponse;
import software.amazon.awssdk.services.migrationhub.model.ListCreatedArtifactsRequest;
import software.amazon.awssdk.services.migrationhub.model.ListCreatedArtifactsResponse;
import software.amazon.awssdk.services.migrationhub.model.ListDiscoveredResourcesRequest;
import software.amazon.awssdk.services.migrationhub.model.ListDiscoveredResourcesResponse;
import software.amazon.awssdk.services.migrationhub.model.ListMigrationTasksRequest;
import software.amazon.awssdk.services.migrationhub.model.ListMigrationTasksResponse;
import software.amazon.awssdk.services.migrationhub.model.ListProgressUpdateStreamsRequest;
import software.amazon.awssdk.services.migrationhub.model.ListProgressUpdateStreamsResponse;
import software.amazon.awssdk.services.migrationhub.model.NotifyApplicationStateRequest;
import software.amazon.awssdk.services.migrationhub.model.NotifyApplicationStateResponse;
import software.amazon.awssdk.services.migrationhub.model.NotifyMigrationTaskStateRequest;
import software.amazon.awssdk.services.migrationhub.model.NotifyMigrationTaskStateResponse;
import software.amazon.awssdk.services.migrationhub.model.PutResourceAttributesRequest;
import software.amazon.awssdk.services.migrationhub.model.PutResourceAttributesResponse;
import software.amazon.awssdk.services.migrationhub.paginators.ListApplicationStatesPublisher;
import software.amazon.awssdk.services.migrationhub.paginators.ListCreatedArtifactsPublisher;
import software.amazon.awssdk.services.migrationhub.paginators.ListDiscoveredResourcesPublisher;
import software.amazon.awssdk.services.migrationhub.paginators.ListMigrationTasksPublisher;
import software.amazon.awssdk.services.migrationhub.paginators.ListProgressUpdateStreamsPublisher;
/**
* Service client for accessing AWS Migration Hub asynchronously. This can be created using the static
* {@link #builder()} method.
*
*
* The AWS Migration Hub API methods help to obtain server and application migration status and integrate your
* resource-specific migration tool by providing a programmatic interface to Migration Hub.
*
*
* Remember that you must set your AWS Migration Hub home region before you call any of these APIs, or a
* HomeRegionNotSetException
error will be returned. Also, you must make the API calls while in your home
* region.
*
*/
@Generated("software.amazon.awssdk:codegen")
@SdkPublicApi
@ThreadSafe
public interface MigrationHubAsyncClient extends SdkClient {
String SERVICE_NAME = "mgh";
/**
* Value for looking up the service's metadata from the
* {@link software.amazon.awssdk.regions.ServiceMetadataProvider}.
*/
String SERVICE_METADATA_ID = "mgh";
/**
*
* Associates a created artifact of an AWS cloud resource, the target receiving the migration, with the migration
* task performed by a migration tool. This API has the following traits:
*
*
* -
*
* Migration tools can call the AssociateCreatedArtifact
operation to indicate which AWS artifact is
* associated with a migration task.
*
*
* -
*
* The created artifact name must be provided in ARN (Amazon Resource Name) format which will contain information
* about type and region; for example: arn:aws:ec2:us-east-1:488216288981:image/ami-6d0ba87b
.
*
*
* -
*
* Examples of the AWS resource behind the created artifact are, AMI's, EC2 instance, or DMS endpoint, etc.
*
*
*
*
* @param associateCreatedArtifactRequest
* @return A Java Future containing the result of the AssociateCreatedArtifact operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - DryRunOperationException Exception raised to indicate a successfully authorized action when the
*
DryRun
flag is set to "true".
* - UnauthorizedOperationException Exception raised to indicate a request was not authorized when the
*
DryRun
flag is set to "true".
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.AssociateCreatedArtifact
* @see AWS API Documentation
*/
default CompletableFuture associateCreatedArtifact(
AssociateCreatedArtifactRequest associateCreatedArtifactRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Associates a created artifact of an AWS cloud resource, the target receiving the migration, with the migration
* task performed by a migration tool. This API has the following traits:
*
*
* -
*
* Migration tools can call the AssociateCreatedArtifact
operation to indicate which AWS artifact is
* associated with a migration task.
*
*
* -
*
* The created artifact name must be provided in ARN (Amazon Resource Name) format which will contain information
* about type and region; for example: arn:aws:ec2:us-east-1:488216288981:image/ami-6d0ba87b
.
*
*
* -
*
* Examples of the AWS resource behind the created artifact are, AMI's, EC2 instance, or DMS endpoint, etc.
*
*
*
*
*
* This is a convenience which creates an instance of the {@link AssociateCreatedArtifactRequest.Builder} avoiding
* the need to create one manually via {@link AssociateCreatedArtifactRequest#builder()}
*
*
* @param associateCreatedArtifactRequest
* A {@link Consumer} that will call methods on {@link AssociateCreatedArtifactRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the AssociateCreatedArtifact operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - DryRunOperationException Exception raised to indicate a successfully authorized action when the
*
DryRun
flag is set to "true".
* - UnauthorizedOperationException Exception raised to indicate a request was not authorized when the
*
DryRun
flag is set to "true".
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.AssociateCreatedArtifact
* @see AWS API Documentation
*/
default CompletableFuture associateCreatedArtifact(
Consumer associateCreatedArtifactRequest) {
return associateCreatedArtifact(AssociateCreatedArtifactRequest.builder().applyMutation(associateCreatedArtifactRequest)
.build());
}
/**
*
* Associates a discovered resource ID from Application Discovery Service with a migration task.
*
*
* @param associateDiscoveredResourceRequest
* @return A Java Future containing the result of the AssociateDiscoveredResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - DryRunOperationException Exception raised to indicate a successfully authorized action when the
*
DryRun
flag is set to "true".
* - UnauthorizedOperationException Exception raised to indicate a request was not authorized when the
*
DryRun
flag is set to "true".
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - PolicyErrorException Exception raised when there are problems accessing Application Discovery Service
* (Application Discovery Service); most likely due to a misconfigured policy or the
*
migrationhub-discovery
role is missing or not configured correctly.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.AssociateDiscoveredResource
* @see AWS API Documentation
*/
default CompletableFuture associateDiscoveredResource(
AssociateDiscoveredResourceRequest associateDiscoveredResourceRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Associates a discovered resource ID from Application Discovery Service with a migration task.
*
*
*
* This is a convenience which creates an instance of the {@link AssociateDiscoveredResourceRequest.Builder}
* avoiding the need to create one manually via {@link AssociateDiscoveredResourceRequest#builder()}
*
*
* @param associateDiscoveredResourceRequest
* A {@link Consumer} that will call methods on {@link AssociateDiscoveredResourceRequest.Builder} to create
* a request.
* @return A Java Future containing the result of the AssociateDiscoveredResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - DryRunOperationException Exception raised to indicate a successfully authorized action when the
*
DryRun
flag is set to "true".
* - UnauthorizedOperationException Exception raised to indicate a request was not authorized when the
*
DryRun
flag is set to "true".
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - PolicyErrorException Exception raised when there are problems accessing Application Discovery Service
* (Application Discovery Service); most likely due to a misconfigured policy or the
*
migrationhub-discovery
role is missing or not configured correctly.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.AssociateDiscoveredResource
* @see AWS API Documentation
*/
default CompletableFuture associateDiscoveredResource(
Consumer associateDiscoveredResourceRequest) {
return associateDiscoveredResource(AssociateDiscoveredResourceRequest.builder()
.applyMutation(associateDiscoveredResourceRequest).build());
}
/**
*
* Creates a progress update stream which is an AWS resource used for access control as well as a namespace for
* migration task names that is implicitly linked to your AWS account. It must uniquely identify the migration tool
* as it is used for all updates made by the tool; however, it does not need to be unique for each AWS account
* because it is scoped to the AWS account.
*
*
* @param createProgressUpdateStreamRequest
* @return A Java Future containing the result of the CreateProgressUpdateStream operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - DryRunOperationException Exception raised to indicate a successfully authorized action when the
*
DryRun
flag is set to "true".
* - UnauthorizedOperationException Exception raised to indicate a request was not authorized when the
*
DryRun
flag is set to "true".
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.CreateProgressUpdateStream
* @see AWS API Documentation
*/
default CompletableFuture createProgressUpdateStream(
CreateProgressUpdateStreamRequest createProgressUpdateStreamRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a progress update stream which is an AWS resource used for access control as well as a namespace for
* migration task names that is implicitly linked to your AWS account. It must uniquely identify the migration tool
* as it is used for all updates made by the tool; however, it does not need to be unique for each AWS account
* because it is scoped to the AWS account.
*
*
*
* This is a convenience which creates an instance of the {@link CreateProgressUpdateStreamRequest.Builder} avoiding
* the need to create one manually via {@link CreateProgressUpdateStreamRequest#builder()}
*
*
* @param createProgressUpdateStreamRequest
* A {@link Consumer} that will call methods on {@link CreateProgressUpdateStreamRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the CreateProgressUpdateStream operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - DryRunOperationException Exception raised to indicate a successfully authorized action when the
*
DryRun
flag is set to "true".
* - UnauthorizedOperationException Exception raised to indicate a request was not authorized when the
*
DryRun
flag is set to "true".
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.CreateProgressUpdateStream
* @see AWS API Documentation
*/
default CompletableFuture createProgressUpdateStream(
Consumer createProgressUpdateStreamRequest) {
return createProgressUpdateStream(CreateProgressUpdateStreamRequest.builder()
.applyMutation(createProgressUpdateStreamRequest).build());
}
/**
*
* Deletes a progress update stream, including all of its tasks, which was previously created as an AWS resource
* used for access control. This API has the following traits:
*
*
* -
*
* The only parameter needed for DeleteProgressUpdateStream
is the stream name (same as a
* CreateProgressUpdateStream
call).
*
*
* -
*
* The call will return, and a background process will asynchronously delete the stream and all of its resources
* (tasks, associated resources, resource attributes, created artifacts).
*
*
* -
*
* If the stream takes time to be deleted, it might still show up on a ListProgressUpdateStreams
call.
*
*
* -
*
* CreateProgressUpdateStream
, ImportMigrationTask
, NotifyMigrationTaskState
,
* and all Associate[*] APIs related to the tasks belonging to the stream will throw "InvalidInputException" if the
* stream of the same name is in the process of being deleted.
*
*
* -
*
* Once the stream and all of its resources are deleted, CreateProgressUpdateStream
for a stream of the
* same name will succeed, and that stream will be an entirely new logical resource (without any resources
* associated with the old stream).
*
*
*
*
* @param deleteProgressUpdateStreamRequest
* @return A Java Future containing the result of the DeleteProgressUpdateStream operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - DryRunOperationException Exception raised to indicate a successfully authorized action when the
*
DryRun
flag is set to "true".
* - UnauthorizedOperationException Exception raised to indicate a request was not authorized when the
*
DryRun
flag is set to "true".
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.DeleteProgressUpdateStream
* @see AWS API Documentation
*/
default CompletableFuture deleteProgressUpdateStream(
DeleteProgressUpdateStreamRequest deleteProgressUpdateStreamRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a progress update stream, including all of its tasks, which was previously created as an AWS resource
* used for access control. This API has the following traits:
*
*
* -
*
* The only parameter needed for DeleteProgressUpdateStream
is the stream name (same as a
* CreateProgressUpdateStream
call).
*
*
* -
*
* The call will return, and a background process will asynchronously delete the stream and all of its resources
* (tasks, associated resources, resource attributes, created artifacts).
*
*
* -
*
* If the stream takes time to be deleted, it might still show up on a ListProgressUpdateStreams
call.
*
*
* -
*
* CreateProgressUpdateStream
, ImportMigrationTask
, NotifyMigrationTaskState
,
* and all Associate[*] APIs related to the tasks belonging to the stream will throw "InvalidInputException" if the
* stream of the same name is in the process of being deleted.
*
*
* -
*
* Once the stream and all of its resources are deleted, CreateProgressUpdateStream
for a stream of the
* same name will succeed, and that stream will be an entirely new logical resource (without any resources
* associated with the old stream).
*
*
*
*
*
* This is a convenience which creates an instance of the {@link DeleteProgressUpdateStreamRequest.Builder} avoiding
* the need to create one manually via {@link DeleteProgressUpdateStreamRequest#builder()}
*
*
* @param deleteProgressUpdateStreamRequest
* A {@link Consumer} that will call methods on {@link DeleteProgressUpdateStreamRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the DeleteProgressUpdateStream operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - DryRunOperationException Exception raised to indicate a successfully authorized action when the
*
DryRun
flag is set to "true".
* - UnauthorizedOperationException Exception raised to indicate a request was not authorized when the
*
DryRun
flag is set to "true".
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.DeleteProgressUpdateStream
* @see AWS API Documentation
*/
default CompletableFuture deleteProgressUpdateStream(
Consumer deleteProgressUpdateStreamRequest) {
return deleteProgressUpdateStream(DeleteProgressUpdateStreamRequest.builder()
.applyMutation(deleteProgressUpdateStreamRequest).build());
}
/**
*
* Gets the migration status of an application.
*
*
* @param describeApplicationStateRequest
* @return A Java Future containing the result of the DescribeApplicationState operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - PolicyErrorException Exception raised when there are problems accessing Application Discovery Service
* (Application Discovery Service); most likely due to a misconfigured policy or the
*
migrationhub-discovery
role is missing or not configured correctly.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.DescribeApplicationState
* @see AWS API Documentation
*/
default CompletableFuture describeApplicationState(
DescribeApplicationStateRequest describeApplicationStateRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets the migration status of an application.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeApplicationStateRequest.Builder} avoiding
* the need to create one manually via {@link DescribeApplicationStateRequest#builder()}
*
*
* @param describeApplicationStateRequest
* A {@link Consumer} that will call methods on {@link DescribeApplicationStateRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the DescribeApplicationState operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - PolicyErrorException Exception raised when there are problems accessing Application Discovery Service
* (Application Discovery Service); most likely due to a misconfigured policy or the
*
migrationhub-discovery
role is missing or not configured correctly.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.DescribeApplicationState
* @see AWS API Documentation
*/
default CompletableFuture describeApplicationState(
Consumer describeApplicationStateRequest) {
return describeApplicationState(DescribeApplicationStateRequest.builder().applyMutation(describeApplicationStateRequest)
.build());
}
/**
*
* Retrieves a list of all attributes associated with a specific migration task.
*
*
* @param describeMigrationTaskRequest
* @return A Java Future containing the result of the DescribeMigrationTask operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.DescribeMigrationTask
* @see AWS API Documentation
*/
default CompletableFuture describeMigrationTask(
DescribeMigrationTaskRequest describeMigrationTaskRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Retrieves a list of all attributes associated with a specific migration task.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeMigrationTaskRequest.Builder} avoiding the
* need to create one manually via {@link DescribeMigrationTaskRequest#builder()}
*
*
* @param describeMigrationTaskRequest
* A {@link Consumer} that will call methods on {@link DescribeMigrationTaskRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the DescribeMigrationTask operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.DescribeMigrationTask
* @see AWS API Documentation
*/
default CompletableFuture describeMigrationTask(
Consumer describeMigrationTaskRequest) {
return describeMigrationTask(DescribeMigrationTaskRequest.builder().applyMutation(describeMigrationTaskRequest).build());
}
/**
*
* Disassociates a created artifact of an AWS resource with a migration task performed by a migration tool that was
* previously associated. This API has the following traits:
*
*
* -
*
* A migration user can call the DisassociateCreatedArtifacts
operation to disassociate a created AWS
* Artifact from a migration task.
*
*
* -
*
* The created artifact name must be provided in ARN (Amazon Resource Name) format which will contain information
* about type and region; for example: arn:aws:ec2:us-east-1:488216288981:image/ami-6d0ba87b
.
*
*
* -
*
* Examples of the AWS resource behind the created artifact are, AMI's, EC2 instance, or RDS instance, etc.
*
*
*
*
* @param disassociateCreatedArtifactRequest
* @return A Java Future containing the result of the DisassociateCreatedArtifact operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - DryRunOperationException Exception raised to indicate a successfully authorized action when the
*
DryRun
flag is set to "true".
* - UnauthorizedOperationException Exception raised to indicate a request was not authorized when the
*
DryRun
flag is set to "true".
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.DisassociateCreatedArtifact
* @see AWS API Documentation
*/
default CompletableFuture disassociateCreatedArtifact(
DisassociateCreatedArtifactRequest disassociateCreatedArtifactRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Disassociates a created artifact of an AWS resource with a migration task performed by a migration tool that was
* previously associated. This API has the following traits:
*
*
* -
*
* A migration user can call the DisassociateCreatedArtifacts
operation to disassociate a created AWS
* Artifact from a migration task.
*
*
* -
*
* The created artifact name must be provided in ARN (Amazon Resource Name) format which will contain information
* about type and region; for example: arn:aws:ec2:us-east-1:488216288981:image/ami-6d0ba87b
.
*
*
* -
*
* Examples of the AWS resource behind the created artifact are, AMI's, EC2 instance, or RDS instance, etc.
*
*
*
*
*
* This is a convenience which creates an instance of the {@link DisassociateCreatedArtifactRequest.Builder}
* avoiding the need to create one manually via {@link DisassociateCreatedArtifactRequest#builder()}
*
*
* @param disassociateCreatedArtifactRequest
* A {@link Consumer} that will call methods on {@link DisassociateCreatedArtifactRequest.Builder} to create
* a request.
* @return A Java Future containing the result of the DisassociateCreatedArtifact operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - DryRunOperationException Exception raised to indicate a successfully authorized action when the
*
DryRun
flag is set to "true".
* - UnauthorizedOperationException Exception raised to indicate a request was not authorized when the
*
DryRun
flag is set to "true".
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.DisassociateCreatedArtifact
* @see AWS API Documentation
*/
default CompletableFuture disassociateCreatedArtifact(
Consumer disassociateCreatedArtifactRequest) {
return disassociateCreatedArtifact(DisassociateCreatedArtifactRequest.builder()
.applyMutation(disassociateCreatedArtifactRequest).build());
}
/**
*
* Disassociate an Application Discovery Service discovered resource from a migration task.
*
*
* @param disassociateDiscoveredResourceRequest
* @return A Java Future containing the result of the DisassociateDiscoveredResource operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - DryRunOperationException Exception raised to indicate a successfully authorized action when the
*
DryRun
flag is set to "true".
* - UnauthorizedOperationException Exception raised to indicate a request was not authorized when the
*
DryRun
flag is set to "true".
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.DisassociateDiscoveredResource
* @see AWS API Documentation
*/
default CompletableFuture disassociateDiscoveredResource(
DisassociateDiscoveredResourceRequest disassociateDiscoveredResourceRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Disassociate an Application Discovery Service discovered resource from a migration task.
*
*
*
* This is a convenience which creates an instance of the {@link DisassociateDiscoveredResourceRequest.Builder}
* avoiding the need to create one manually via {@link DisassociateDiscoveredResourceRequest#builder()}
*
*
* @param disassociateDiscoveredResourceRequest
* A {@link Consumer} that will call methods on {@link DisassociateDiscoveredResourceRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the DisassociateDiscoveredResource operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - DryRunOperationException Exception raised to indicate a successfully authorized action when the
*
DryRun
flag is set to "true".
* - UnauthorizedOperationException Exception raised to indicate a request was not authorized when the
*
DryRun
flag is set to "true".
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.DisassociateDiscoveredResource
* @see AWS API Documentation
*/
default CompletableFuture disassociateDiscoveredResource(
Consumer disassociateDiscoveredResourceRequest) {
return disassociateDiscoveredResource(DisassociateDiscoveredResourceRequest.builder()
.applyMutation(disassociateDiscoveredResourceRequest).build());
}
/**
*
* Registers a new migration task which represents a server, database, etc., being migrated to AWS by a migration
* tool.
*
*
* This API is a prerequisite to calling the NotifyMigrationTaskState
API as the migration tool must
* first register the migration task with Migration Hub.
*
*
* @param importMigrationTaskRequest
* @return A Java Future containing the result of the ImportMigrationTask operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - DryRunOperationException Exception raised to indicate a successfully authorized action when the
*
DryRun
flag is set to "true".
* - UnauthorizedOperationException Exception raised to indicate a request was not authorized when the
*
DryRun
flag is set to "true".
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.ImportMigrationTask
* @see AWS API Documentation
*/
default CompletableFuture importMigrationTask(
ImportMigrationTaskRequest importMigrationTaskRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Registers a new migration task which represents a server, database, etc., being migrated to AWS by a migration
* tool.
*
*
* This API is a prerequisite to calling the NotifyMigrationTaskState
API as the migration tool must
* first register the migration task with Migration Hub.
*
*
*
* This is a convenience which creates an instance of the {@link ImportMigrationTaskRequest.Builder} avoiding the
* need to create one manually via {@link ImportMigrationTaskRequest#builder()}
*
*
* @param importMigrationTaskRequest
* A {@link Consumer} that will call methods on {@link ImportMigrationTaskRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the ImportMigrationTask operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - DryRunOperationException Exception raised to indicate a successfully authorized action when the
*
DryRun
flag is set to "true".
* - UnauthorizedOperationException Exception raised to indicate a request was not authorized when the
*
DryRun
flag is set to "true".
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.ImportMigrationTask
* @see AWS API Documentation
*/
default CompletableFuture importMigrationTask(
Consumer importMigrationTaskRequest) {
return importMigrationTask(ImportMigrationTaskRequest.builder().applyMutation(importMigrationTaskRequest).build());
}
/**
*
* Lists all the migration statuses for your applications. If you use the optional ApplicationIds
* parameter, only the migration statuses for those applications will be returned.
*
*
* @param listApplicationStatesRequest
* @return A Java Future containing the result of the ListApplicationStates operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.ListApplicationStates
* @see AWS API Documentation
*/
default CompletableFuture listApplicationStates(
ListApplicationStatesRequest listApplicationStatesRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Lists all the migration statuses for your applications. If you use the optional ApplicationIds
* parameter, only the migration statuses for those applications will be returned.
*
*
*
* This is a convenience which creates an instance of the {@link ListApplicationStatesRequest.Builder} avoiding the
* need to create one manually via {@link ListApplicationStatesRequest#builder()}
*
*
* @param listApplicationStatesRequest
* A {@link Consumer} that will call methods on {@link ListApplicationStatesRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the ListApplicationStates operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.ListApplicationStates
* @see AWS API Documentation
*/
default CompletableFuture listApplicationStates(
Consumer listApplicationStatesRequest) {
return listApplicationStates(ListApplicationStatesRequest.builder().applyMutation(listApplicationStatesRequest).build());
}
/**
*
* Lists all the migration statuses for your applications. If you use the optional ApplicationIds
* parameter, only the migration statuses for those applications will be returned.
*
*
*
* This is a variant of
* {@link #listApplicationStates(software.amazon.awssdk.services.migrationhub.model.ListApplicationStatesRequest)}
* 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
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.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
*
*
* {@code
* software.amazon.awssdk.services.migrationhub.paginators.ListApplicationStatesPublisher publisher = client.listApplicationStatesPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.migrationhub.paginators.ListApplicationStatesPublisher publisher = client.listApplicationStatesPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.migrationhub.model.ListApplicationStatesResponse 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
* {@link #listApplicationStates(software.amazon.awssdk.services.migrationhub.model.ListApplicationStatesRequest)}
* operation.
*
*
* @param listApplicationStatesRequest
* @return 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.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.ListApplicationStates
* @see AWS API Documentation
*/
default ListApplicationStatesPublisher listApplicationStatesPaginator(
ListApplicationStatesRequest listApplicationStatesRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Lists all the migration statuses for your applications. If you use the optional ApplicationIds
* parameter, only the migration statuses for those applications will be returned.
*
*
*
* This is a variant of
* {@link #listApplicationStates(software.amazon.awssdk.services.migrationhub.model.ListApplicationStatesRequest)}
* 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
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.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
*
*
* {@code
* software.amazon.awssdk.services.migrationhub.paginators.ListApplicationStatesPublisher publisher = client.listApplicationStatesPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.migrationhub.paginators.ListApplicationStatesPublisher publisher = client.listApplicationStatesPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.migrationhub.model.ListApplicationStatesResponse 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
* {@link #listApplicationStates(software.amazon.awssdk.services.migrationhub.model.ListApplicationStatesRequest)}
* operation.
*
*
* This is a convenience which creates an instance of the {@link ListApplicationStatesRequest.Builder} avoiding the
* need to create one manually via {@link ListApplicationStatesRequest#builder()}
*
*
* @param listApplicationStatesRequest
* A {@link Consumer} that will call methods on {@link ListApplicationStatesRequest.Builder} to create a
* request.
* @return 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.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.ListApplicationStates
* @see AWS API Documentation
*/
default ListApplicationStatesPublisher listApplicationStatesPaginator(
Consumer listApplicationStatesRequest) {
return listApplicationStatesPaginator(ListApplicationStatesRequest.builder().applyMutation(listApplicationStatesRequest)
.build());
}
/**
*
* Lists the created artifacts attached to a given migration task in an update stream. This API has the following
* traits:
*
*
* -
*
* Gets the list of the created artifacts while migration is taking place.
*
*
* -
*
* Shows the artifacts created by the migration tool that was associated by the
* AssociateCreatedArtifact
API.
*
*
* -
*
* Lists created artifacts in a paginated interface.
*
*
*
*
* @param listCreatedArtifactsRequest
* @return A Java Future containing the result of the ListCreatedArtifacts operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.ListCreatedArtifacts
* @see AWS API Documentation
*/
default CompletableFuture listCreatedArtifacts(
ListCreatedArtifactsRequest listCreatedArtifactsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Lists the created artifacts attached to a given migration task in an update stream. This API has the following
* traits:
*
*
* -
*
* Gets the list of the created artifacts while migration is taking place.
*
*
* -
*
* Shows the artifacts created by the migration tool that was associated by the
* AssociateCreatedArtifact
API.
*
*
* -
*
* Lists created artifacts in a paginated interface.
*
*
*
*
*
* This is a convenience which creates an instance of the {@link ListCreatedArtifactsRequest.Builder} avoiding the
* need to create one manually via {@link ListCreatedArtifactsRequest#builder()}
*
*
* @param listCreatedArtifactsRequest
* A {@link Consumer} that will call methods on {@link ListCreatedArtifactsRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the ListCreatedArtifacts operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.ListCreatedArtifacts
* @see AWS API Documentation
*/
default CompletableFuture listCreatedArtifacts(
Consumer listCreatedArtifactsRequest) {
return listCreatedArtifacts(ListCreatedArtifactsRequest.builder().applyMutation(listCreatedArtifactsRequest).build());
}
/**
*
* Lists the created artifacts attached to a given migration task in an update stream. This API has the following
* traits:
*
*
* -
*
* Gets the list of the created artifacts while migration is taking place.
*
*
* -
*
* Shows the artifacts created by the migration tool that was associated by the
* AssociateCreatedArtifact
API.
*
*
* -
*
* Lists created artifacts in a paginated interface.
*
*
*
*
*
* This is a variant of
* {@link #listCreatedArtifacts(software.amazon.awssdk.services.migrationhub.model.ListCreatedArtifactsRequest)}
* 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
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.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
*
*
* {@code
* software.amazon.awssdk.services.migrationhub.paginators.ListCreatedArtifactsPublisher publisher = client.listCreatedArtifactsPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.migrationhub.paginators.ListCreatedArtifactsPublisher publisher = client.listCreatedArtifactsPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.migrationhub.model.ListCreatedArtifactsResponse 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
* {@link #listCreatedArtifacts(software.amazon.awssdk.services.migrationhub.model.ListCreatedArtifactsRequest)}
* operation.
*
*
* @param listCreatedArtifactsRequest
* @return 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.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.ListCreatedArtifacts
* @see AWS API Documentation
*/
default ListCreatedArtifactsPublisher listCreatedArtifactsPaginator(ListCreatedArtifactsRequest listCreatedArtifactsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Lists the created artifacts attached to a given migration task in an update stream. This API has the following
* traits:
*
*
* -
*
* Gets the list of the created artifacts while migration is taking place.
*
*
* -
*
* Shows the artifacts created by the migration tool that was associated by the
* AssociateCreatedArtifact
API.
*
*
* -
*
* Lists created artifacts in a paginated interface.
*
*
*
*
*
* This is a variant of
* {@link #listCreatedArtifacts(software.amazon.awssdk.services.migrationhub.model.ListCreatedArtifactsRequest)}
* 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
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.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
*
*
* {@code
* software.amazon.awssdk.services.migrationhub.paginators.ListCreatedArtifactsPublisher publisher = client.listCreatedArtifactsPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.migrationhub.paginators.ListCreatedArtifactsPublisher publisher = client.listCreatedArtifactsPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.migrationhub.model.ListCreatedArtifactsResponse 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
* {@link #listCreatedArtifacts(software.amazon.awssdk.services.migrationhub.model.ListCreatedArtifactsRequest)}
* operation.
*
*
* This is a convenience which creates an instance of the {@link ListCreatedArtifactsRequest.Builder} avoiding the
* need to create one manually via {@link ListCreatedArtifactsRequest#builder()}
*
*
* @param listCreatedArtifactsRequest
* A {@link Consumer} that will call methods on {@link ListCreatedArtifactsRequest.Builder} to create a
* request.
* @return 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.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.ListCreatedArtifacts
* @see AWS API Documentation
*/
default ListCreatedArtifactsPublisher listCreatedArtifactsPaginator(
Consumer listCreatedArtifactsRequest) {
return listCreatedArtifactsPaginator(ListCreatedArtifactsRequest.builder().applyMutation(listCreatedArtifactsRequest)
.build());
}
/**
*
* Lists discovered resources associated with the given MigrationTask
.
*
*
* @param listDiscoveredResourcesRequest
* @return A Java Future containing the result of the ListDiscoveredResources operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.ListDiscoveredResources
* @see AWS API Documentation
*/
default CompletableFuture listDiscoveredResources(
ListDiscoveredResourcesRequest listDiscoveredResourcesRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Lists discovered resources associated with the given MigrationTask
.
*
*
*
* This is a convenience which creates an instance of the {@link ListDiscoveredResourcesRequest.Builder} avoiding
* the need to create one manually via {@link ListDiscoveredResourcesRequest#builder()}
*
*
* @param listDiscoveredResourcesRequest
* A {@link Consumer} that will call methods on {@link ListDiscoveredResourcesRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the ListDiscoveredResources operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.ListDiscoveredResources
* @see AWS API Documentation
*/
default CompletableFuture listDiscoveredResources(
Consumer listDiscoveredResourcesRequest) {
return listDiscoveredResources(ListDiscoveredResourcesRequest.builder().applyMutation(listDiscoveredResourcesRequest)
.build());
}
/**
*
* Lists discovered resources associated with the given MigrationTask
.
*
*
*
* This is a variant of
* {@link #listDiscoveredResources(software.amazon.awssdk.services.migrationhub.model.ListDiscoveredResourcesRequest)}
* 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
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.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
*
*
* {@code
* software.amazon.awssdk.services.migrationhub.paginators.ListDiscoveredResourcesPublisher publisher = client.listDiscoveredResourcesPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.migrationhub.paginators.ListDiscoveredResourcesPublisher publisher = client.listDiscoveredResourcesPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.migrationhub.model.ListDiscoveredResourcesResponse 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
* {@link #listDiscoveredResources(software.amazon.awssdk.services.migrationhub.model.ListDiscoveredResourcesRequest)}
* operation.
*
*
* @param listDiscoveredResourcesRequest
* @return 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.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.ListDiscoveredResources
* @see AWS API Documentation
*/
default ListDiscoveredResourcesPublisher listDiscoveredResourcesPaginator(
ListDiscoveredResourcesRequest listDiscoveredResourcesRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Lists discovered resources associated with the given MigrationTask
.
*
*
*
* This is a variant of
* {@link #listDiscoveredResources(software.amazon.awssdk.services.migrationhub.model.ListDiscoveredResourcesRequest)}
* 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
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.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
*
*
* {@code
* software.amazon.awssdk.services.migrationhub.paginators.ListDiscoveredResourcesPublisher publisher = client.listDiscoveredResourcesPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.migrationhub.paginators.ListDiscoveredResourcesPublisher publisher = client.listDiscoveredResourcesPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.migrationhub.model.ListDiscoveredResourcesResponse 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
* {@link #listDiscoveredResources(software.amazon.awssdk.services.migrationhub.model.ListDiscoveredResourcesRequest)}
* operation.
*
*
* This is a convenience which creates an instance of the {@link ListDiscoveredResourcesRequest.Builder} avoiding
* the need to create one manually via {@link ListDiscoveredResourcesRequest#builder()}
*
*
* @param listDiscoveredResourcesRequest
* A {@link Consumer} that will call methods on {@link ListDiscoveredResourcesRequest.Builder} to create a
* request.
* @return 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.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.ListDiscoveredResources
* @see AWS API Documentation
*/
default ListDiscoveredResourcesPublisher listDiscoveredResourcesPaginator(
Consumer listDiscoveredResourcesRequest) {
return listDiscoveredResourcesPaginator(ListDiscoveredResourcesRequest.builder()
.applyMutation(listDiscoveredResourcesRequest).build());
}
/**
*
* Lists all, or filtered by resource name, migration tasks associated with the user account making this call. This
* API has the following traits:
*
*
* -
*
* Can show a summary list of the most recent migration tasks.
*
*
* -
*
* Can show a summary list of migration tasks associated with a given discovered resource.
*
*
* -
*
* Lists migration tasks in a paginated interface.
*
*
*
*
* @param listMigrationTasksRequest
* @return A Java Future containing the result of the ListMigrationTasks operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - PolicyErrorException Exception raised when there are problems accessing Application Discovery Service
* (Application Discovery Service); most likely due to a misconfigured policy or the
*
migrationhub-discovery
role is missing or not configured correctly.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.ListMigrationTasks
* @see AWS API Documentation
*/
default CompletableFuture listMigrationTasks(ListMigrationTasksRequest listMigrationTasksRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Lists all, or filtered by resource name, migration tasks associated with the user account making this call. This
* API has the following traits:
*
*
* -
*
* Can show a summary list of the most recent migration tasks.
*
*
* -
*
* Can show a summary list of migration tasks associated with a given discovered resource.
*
*
* -
*
* Lists migration tasks in a paginated interface.
*
*
*
*
*
* This is a convenience which creates an instance of the {@link ListMigrationTasksRequest.Builder} avoiding the
* need to create one manually via {@link ListMigrationTasksRequest#builder()}
*
*
* @param listMigrationTasksRequest
* A {@link Consumer} that will call methods on {@link ListMigrationTasksRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the ListMigrationTasks operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - PolicyErrorException Exception raised when there are problems accessing Application Discovery Service
* (Application Discovery Service); most likely due to a misconfigured policy or the
*
migrationhub-discovery
role is missing or not configured correctly.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.ListMigrationTasks
* @see AWS API Documentation
*/
default CompletableFuture listMigrationTasks(
Consumer listMigrationTasksRequest) {
return listMigrationTasks(ListMigrationTasksRequest.builder().applyMutation(listMigrationTasksRequest).build());
}
/**
*
* Lists all, or filtered by resource name, migration tasks associated with the user account making this call. This
* API has the following traits:
*
*
* -
*
* Can show a summary list of the most recent migration tasks.
*
*
* -
*
* Can show a summary list of migration tasks associated with a given discovered resource.
*
*
* -
*
* Lists migration tasks in a paginated interface.
*
*
*
*
*
* This is a variant of
* {@link #listMigrationTasks(software.amazon.awssdk.services.migrationhub.model.ListMigrationTasksRequest)}
* 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
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.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
*
*
* {@code
* software.amazon.awssdk.services.migrationhub.paginators.ListMigrationTasksPublisher publisher = client.listMigrationTasksPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.migrationhub.paginators.ListMigrationTasksPublisher publisher = client.listMigrationTasksPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.migrationhub.model.ListMigrationTasksResponse 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
* {@link #listMigrationTasks(software.amazon.awssdk.services.migrationhub.model.ListMigrationTasksRequest)}
* operation.
*
*
* @param listMigrationTasksRequest
* @return 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.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - PolicyErrorException Exception raised when there are problems accessing Application Discovery Service
* (Application Discovery Service); most likely due to a misconfigured policy or the
*
migrationhub-discovery
role is missing or not configured correctly.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.ListMigrationTasks
* @see AWS API Documentation
*/
default ListMigrationTasksPublisher listMigrationTasksPaginator(ListMigrationTasksRequest listMigrationTasksRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Lists all, or filtered by resource name, migration tasks associated with the user account making this call. This
* API has the following traits:
*
*
* -
*
* Can show a summary list of the most recent migration tasks.
*
*
* -
*
* Can show a summary list of migration tasks associated with a given discovered resource.
*
*
* -
*
* Lists migration tasks in a paginated interface.
*
*
*
*
*
* This is a variant of
* {@link #listMigrationTasks(software.amazon.awssdk.services.migrationhub.model.ListMigrationTasksRequest)}
* 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
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.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
*
*
* {@code
* software.amazon.awssdk.services.migrationhub.paginators.ListMigrationTasksPublisher publisher = client.listMigrationTasksPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.migrationhub.paginators.ListMigrationTasksPublisher publisher = client.listMigrationTasksPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.migrationhub.model.ListMigrationTasksResponse 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
* {@link #listMigrationTasks(software.amazon.awssdk.services.migrationhub.model.ListMigrationTasksRequest)}
* operation.
*
*
* This is a convenience which creates an instance of the {@link ListMigrationTasksRequest.Builder} avoiding the
* need to create one manually via {@link ListMigrationTasksRequest#builder()}
*
*
* @param listMigrationTasksRequest
* A {@link Consumer} that will call methods on {@link ListMigrationTasksRequest.Builder} to create a
* request.
* @return 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.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - PolicyErrorException Exception raised when there are problems accessing Application Discovery Service
* (Application Discovery Service); most likely due to a misconfigured policy or the
*
migrationhub-discovery
role is missing or not configured correctly.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.ListMigrationTasks
* @see AWS API Documentation
*/
default ListMigrationTasksPublisher listMigrationTasksPaginator(
Consumer listMigrationTasksRequest) {
return listMigrationTasksPaginator(ListMigrationTasksRequest.builder().applyMutation(listMigrationTasksRequest).build());
}
/**
*
* Lists progress update streams associated with the user account making this call.
*
*
* @param listProgressUpdateStreamsRequest
* @return A Java Future containing the result of the ListProgressUpdateStreams operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.ListProgressUpdateStreams
* @see AWS API Documentation
*/
default CompletableFuture listProgressUpdateStreams(
ListProgressUpdateStreamsRequest listProgressUpdateStreamsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Lists progress update streams associated with the user account making this call.
*
*
*
* This is a convenience which creates an instance of the {@link ListProgressUpdateStreamsRequest.Builder} avoiding
* the need to create one manually via {@link ListProgressUpdateStreamsRequest#builder()}
*
*
* @param listProgressUpdateStreamsRequest
* A {@link Consumer} that will call methods on {@link ListProgressUpdateStreamsRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the ListProgressUpdateStreams operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.ListProgressUpdateStreams
* @see AWS API Documentation
*/
default CompletableFuture listProgressUpdateStreams(
Consumer listProgressUpdateStreamsRequest) {
return listProgressUpdateStreams(ListProgressUpdateStreamsRequest.builder()
.applyMutation(listProgressUpdateStreamsRequest).build());
}
/**
*
* Lists progress update streams associated with the user account making this call.
*
*
*
* This is a variant of
* {@link #listProgressUpdateStreams(software.amazon.awssdk.services.migrationhub.model.ListProgressUpdateStreamsRequest)}
* 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
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.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
*
*
* {@code
* software.amazon.awssdk.services.migrationhub.paginators.ListProgressUpdateStreamsPublisher publisher = client.listProgressUpdateStreamsPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.migrationhub.paginators.ListProgressUpdateStreamsPublisher publisher = client.listProgressUpdateStreamsPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.migrationhub.model.ListProgressUpdateStreamsResponse 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
* {@link #listProgressUpdateStreams(software.amazon.awssdk.services.migrationhub.model.ListProgressUpdateStreamsRequest)}
* operation.
*
*
* @param listProgressUpdateStreamsRequest
* @return 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.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.ListProgressUpdateStreams
* @see AWS API Documentation
*/
default ListProgressUpdateStreamsPublisher listProgressUpdateStreamsPaginator(
ListProgressUpdateStreamsRequest listProgressUpdateStreamsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Lists progress update streams associated with the user account making this call.
*
*
*
* This is a variant of
* {@link #listProgressUpdateStreams(software.amazon.awssdk.services.migrationhub.model.ListProgressUpdateStreamsRequest)}
* 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
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.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
*
*
* {@code
* software.amazon.awssdk.services.migrationhub.paginators.ListProgressUpdateStreamsPublisher publisher = client.listProgressUpdateStreamsPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.migrationhub.paginators.ListProgressUpdateStreamsPublisher publisher = client.listProgressUpdateStreamsPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.migrationhub.model.ListProgressUpdateStreamsResponse 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
* {@link #listProgressUpdateStreams(software.amazon.awssdk.services.migrationhub.model.ListProgressUpdateStreamsRequest)}
* operation.
*
*
* This is a convenience which creates an instance of the {@link ListProgressUpdateStreamsRequest.Builder} avoiding
* the need to create one manually via {@link ListProgressUpdateStreamsRequest#builder()}
*
*
* @param listProgressUpdateStreamsRequest
* A {@link Consumer} that will call methods on {@link ListProgressUpdateStreamsRequest.Builder} to create a
* request.
* @return 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.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.ListProgressUpdateStreams
* @see AWS API Documentation
*/
default ListProgressUpdateStreamsPublisher listProgressUpdateStreamsPaginator(
Consumer listProgressUpdateStreamsRequest) {
return listProgressUpdateStreamsPaginator(ListProgressUpdateStreamsRequest.builder()
.applyMutation(listProgressUpdateStreamsRequest).build());
}
/**
*
* Sets the migration state of an application. For a given application identified by the value passed to
* ApplicationId
, its status is set or updated by passing one of three values to Status
:
* NOT_STARTED | IN_PROGRESS | COMPLETED
.
*
*
* @param notifyApplicationStateRequest
* @return A Java Future containing the result of the NotifyApplicationState operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - DryRunOperationException Exception raised to indicate a successfully authorized action when the
*
DryRun
flag is set to "true".
* - UnauthorizedOperationException Exception raised to indicate a request was not authorized when the
*
DryRun
flag is set to "true".
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - PolicyErrorException Exception raised when there are problems accessing Application Discovery Service
* (Application Discovery Service); most likely due to a misconfigured policy or the
*
migrationhub-discovery
role is missing or not configured correctly.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.NotifyApplicationState
* @see AWS API Documentation
*/
default CompletableFuture notifyApplicationState(
NotifyApplicationStateRequest notifyApplicationStateRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Sets the migration state of an application. For a given application identified by the value passed to
* ApplicationId
, its status is set or updated by passing one of three values to Status
:
* NOT_STARTED | IN_PROGRESS | COMPLETED
.
*
*
*
* This is a convenience which creates an instance of the {@link NotifyApplicationStateRequest.Builder} avoiding the
* need to create one manually via {@link NotifyApplicationStateRequest#builder()}
*
*
* @param notifyApplicationStateRequest
* A {@link Consumer} that will call methods on {@link NotifyApplicationStateRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the NotifyApplicationState operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - DryRunOperationException Exception raised to indicate a successfully authorized action when the
*
DryRun
flag is set to "true".
* - UnauthorizedOperationException Exception raised to indicate a request was not authorized when the
*
DryRun
flag is set to "true".
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - PolicyErrorException Exception raised when there are problems accessing Application Discovery Service
* (Application Discovery Service); most likely due to a misconfigured policy or the
*
migrationhub-discovery
role is missing or not configured correctly.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.NotifyApplicationState
* @see AWS API Documentation
*/
default CompletableFuture notifyApplicationState(
Consumer notifyApplicationStateRequest) {
return notifyApplicationState(NotifyApplicationStateRequest.builder().applyMutation(notifyApplicationStateRequest)
.build());
}
/**
*
* Notifies Migration Hub of the current status, progress, or other detail regarding a migration task. This API has
* the following traits:
*
*
* -
*
* Migration tools will call the NotifyMigrationTaskState
API to share the latest progress and status.
*
*
* -
*
* MigrationTaskName
is used for addressing updates to the correct target.
*
*
* -
*
* ProgressUpdateStream
is used for access control and to provide a namespace for each migration tool.
*
*
*
*
* @param notifyMigrationTaskStateRequest
* @return A Java Future containing the result of the NotifyMigrationTaskState operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - DryRunOperationException Exception raised to indicate a successfully authorized action when the
*
DryRun
flag is set to "true".
* - UnauthorizedOperationException Exception raised to indicate a request was not authorized when the
*
DryRun
flag is set to "true".
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.NotifyMigrationTaskState
* @see AWS API Documentation
*/
default CompletableFuture notifyMigrationTaskState(
NotifyMigrationTaskStateRequest notifyMigrationTaskStateRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Notifies Migration Hub of the current status, progress, or other detail regarding a migration task. This API has
* the following traits:
*
*
* -
*
* Migration tools will call the NotifyMigrationTaskState
API to share the latest progress and status.
*
*
* -
*
* MigrationTaskName
is used for addressing updates to the correct target.
*
*
* -
*
* ProgressUpdateStream
is used for access control and to provide a namespace for each migration tool.
*
*
*
*
*
* This is a convenience which creates an instance of the {@link NotifyMigrationTaskStateRequest.Builder} avoiding
* the need to create one manually via {@link NotifyMigrationTaskStateRequest#builder()}
*
*
* @param notifyMigrationTaskStateRequest
* A {@link Consumer} that will call methods on {@link NotifyMigrationTaskStateRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the NotifyMigrationTaskState operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - DryRunOperationException Exception raised to indicate a successfully authorized action when the
*
DryRun
flag is set to "true".
* - UnauthorizedOperationException Exception raised to indicate a request was not authorized when the
*
DryRun
flag is set to "true".
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.NotifyMigrationTaskState
* @see AWS API Documentation
*/
default CompletableFuture notifyMigrationTaskState(
Consumer notifyMigrationTaskStateRequest) {
return notifyMigrationTaskState(NotifyMigrationTaskStateRequest.builder().applyMutation(notifyMigrationTaskStateRequest)
.build());
}
/**
*
* Provides identifying details of the resource being migrated so that it can be associated in the Application
* Discovery Service repository. This association occurs asynchronously after PutResourceAttributes
* returns.
*
*
*
* -
*
* Keep in mind that subsequent calls to PutResourceAttributes will override previously stored attributes. For
* example, if it is first called with a MAC address, but later, it is desired to add an IP address, it will
* then be required to call it with both the IP and MAC addresses to prevent overriding the MAC address.
*
*
* -
*
* Note the instructions regarding the special use case of the ResourceAttributeList
parameter when specifying any "VM" related value.
*
*
*
*
*
* Because this is an asynchronous call, it will always return 200, whether an association occurs or not. To confirm
* if an association was found based on the provided details, call ListDiscoveredResources
.
*
*
*
* @param putResourceAttributesRequest
* @return A Java Future containing the result of the PutResourceAttributes operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - DryRunOperationException Exception raised to indicate a successfully authorized action when the
*
DryRun
flag is set to "true".
* - UnauthorizedOperationException Exception raised to indicate a request was not authorized when the
*
DryRun
flag is set to "true".
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.PutResourceAttributes
* @see AWS API Documentation
*/
default CompletableFuture putResourceAttributes(
PutResourceAttributesRequest putResourceAttributesRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Provides identifying details of the resource being migrated so that it can be associated in the Application
* Discovery Service repository. This association occurs asynchronously after PutResourceAttributes
* returns.
*
*
*
* -
*
* Keep in mind that subsequent calls to PutResourceAttributes will override previously stored attributes. For
* example, if it is first called with a MAC address, but later, it is desired to add an IP address, it will
* then be required to call it with both the IP and MAC addresses to prevent overriding the MAC address.
*
*
* -
*
* Note the instructions regarding the special use case of the ResourceAttributeList
parameter when specifying any "VM" related value.
*
*
*
*
*
* Because this is an asynchronous call, it will always return 200, whether an association occurs or not. To confirm
* if an association was found based on the provided details, call ListDiscoveredResources
.
*
*
*
* This is a convenience which creates an instance of the {@link PutResourceAttributesRequest.Builder} avoiding the
* need to create one manually via {@link PutResourceAttributesRequest#builder()}
*
*
* @param putResourceAttributesRequest
* A {@link Consumer} that will call methods on {@link PutResourceAttributesRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the PutResourceAttributes operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException You do not have sufficient access to perform this action.
* - ThrottlingException The request was denied due to request throttling.
* - InternalServerErrorException Exception raised when an internal, configuration, or dependency error is
* encountered.
* - ServiceUnavailableException Exception raised when there is an internal, configuration, or dependency
* error encountered.
* - DryRunOperationException Exception raised to indicate a successfully authorized action when the
*
DryRun
flag is set to "true".
* - UnauthorizedOperationException Exception raised to indicate a request was not authorized when the
*
DryRun
flag is set to "true".
* - InvalidInputException Exception raised when the provided input violates a policy constraint or is
* entered in the wrong format or data type.
* - ResourceNotFoundException Exception raised when the request references a resource (Application
* Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application
* Discovery Service (Application Discovery Service) or in Migration Hub's repository.
* - HomeRegionNotSetException The home region is not set. Set the home region to continue.
* - 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.
* - MigrationHubException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample MigrationHubAsyncClient.PutResourceAttributes
* @see AWS API Documentation
*/
default CompletableFuture putResourceAttributes(
Consumer putResourceAttributesRequest) {
return putResourceAttributes(PutResourceAttributesRequest.builder().applyMutation(putResourceAttributesRequest).build());
}
/**
* Create a {@link MigrationHubAsyncClient} with the region loaded from the
* {@link software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain} and credentials loaded from the
* {@link software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider}.
*/
static MigrationHubAsyncClient create() {
return builder().build();
}
/**
* Create a builder that can be used to configure and create a {@link MigrationHubAsyncClient}.
*/
static MigrationHubAsyncClientBuilder builder() {
return new DefaultMigrationHubAsyncClientBuilder();
}
}