@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface MigrationHubStrategyAsyncClient extends SdkClient
builder() method.
<p>This API reference provides descriptions, syntax, and other details about each of the actions and data types for Migration Hub Strategy Recommendations (Strategy Recommendations). The topic for each action shows the API request parameters and the response. Alternatively, you can use one of the AWS SDKs to access an API that is tailored to the programming language or platform that you're using. For more information, see <a href="http://aws.amazon.com/tools/#SDKs">AWS SDKs</a>.</p>
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider. |
static String |
SERVICE_NAME |
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.static MigrationHubStrategyAsyncClient create()
MigrationHubStrategyAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static MigrationHubStrategyAsyncClientBuilder builder()
MigrationHubStrategyAsyncClient.default CompletableFuture<GetApplicationComponentDetailsResponse> getApplicationComponentDetails(GetApplicationComponentDetailsRequest getApplicationComponentDetailsRequest)
Retrieves details about an application component.
getApplicationComponentDetailsRequest - default CompletableFuture<GetApplicationComponentDetailsResponse> getApplicationComponentDetails(Consumer<GetApplicationComponentDetailsRequest.Builder> getApplicationComponentDetailsRequest)
Retrieves details about an application component.
This is a convenience which creates an instance of the GetApplicationComponentDetailsRequest.Builder
avoiding the need to create one manually via GetApplicationComponentDetailsRequest.builder()
getApplicationComponentDetailsRequest - A Consumer that will call methods on GetApplicationComponentDetailsRequest.Builder to
create a request.default CompletableFuture<GetApplicationComponentStrategiesResponse> getApplicationComponentStrategies(GetApplicationComponentStrategiesRequest getApplicationComponentStrategiesRequest)
Retrieves a list of all the recommended strategies and tools for an application component running on a server.
getApplicationComponentStrategiesRequest - default CompletableFuture<GetApplicationComponentStrategiesResponse> getApplicationComponentStrategies(Consumer<GetApplicationComponentStrategiesRequest.Builder> getApplicationComponentStrategiesRequest)
Retrieves a list of all the recommended strategies and tools for an application component running on a server.
This is a convenience which creates an instance of the GetApplicationComponentStrategiesRequest.Builder
avoiding the need to create one manually via GetApplicationComponentStrategiesRequest.builder()
getApplicationComponentStrategiesRequest - A Consumer that will call methods on GetApplicationComponentStrategiesRequest.Builder to
create a request.default CompletableFuture<GetAssessmentResponse> getAssessment(GetAssessmentRequest getAssessmentRequest)
Retrieves the status of an on-going assessment.
getAssessmentRequest - default CompletableFuture<GetAssessmentResponse> getAssessment(Consumer<GetAssessmentRequest.Builder> getAssessmentRequest)
Retrieves the status of an on-going assessment.
This is a convenience which creates an instance of the GetAssessmentRequest.Builder avoiding the need to
create one manually via GetAssessmentRequest.builder()
getAssessmentRequest - A Consumer that will call methods on GetAssessmentRequest.Builder to create a request.default CompletableFuture<GetImportFileTaskResponse> getImportFileTask(GetImportFileTaskRequest getImportFileTaskRequest)
Retrieves the details about a specific import task.
getImportFileTaskRequest - default CompletableFuture<GetImportFileTaskResponse> getImportFileTask(Consumer<GetImportFileTaskRequest.Builder> getImportFileTaskRequest)
Retrieves the details about a specific import task.
This is a convenience which creates an instance of the GetImportFileTaskRequest.Builder avoiding the need
to create one manually via GetImportFileTaskRequest.builder()
getImportFileTaskRequest - A Consumer that will call methods on GetImportFileTaskRequest.Builder to create a request.default CompletableFuture<GetPortfolioPreferencesResponse> getPortfolioPreferences(GetPortfolioPreferencesRequest getPortfolioPreferencesRequest)
Retrieves your migration and modernization preferences.
getPortfolioPreferencesRequest - default CompletableFuture<GetPortfolioPreferencesResponse> getPortfolioPreferences(Consumer<GetPortfolioPreferencesRequest.Builder> getPortfolioPreferencesRequest)
Retrieves your migration and modernization preferences.
This is a convenience which creates an instance of the GetPortfolioPreferencesRequest.Builder avoiding
the need to create one manually via GetPortfolioPreferencesRequest.builder()
getPortfolioPreferencesRequest - A Consumer that will call methods on GetPortfolioPreferencesRequest.Builder to create a
request.default CompletableFuture<GetPortfolioSummaryResponse> getPortfolioSummary(GetPortfolioSummaryRequest getPortfolioSummaryRequest)
Retrieves overall summary including the number of servers to rehost and the overall number of anti-patterns.
getPortfolioSummaryRequest - default CompletableFuture<GetPortfolioSummaryResponse> getPortfolioSummary(Consumer<GetPortfolioSummaryRequest.Builder> getPortfolioSummaryRequest)
Retrieves overall summary including the number of servers to rehost and the overall number of anti-patterns.
This is a convenience which creates an instance of the GetPortfolioSummaryRequest.Builder avoiding the
need to create one manually via GetPortfolioSummaryRequest.builder()
getPortfolioSummaryRequest - A Consumer that will call methods on GetPortfolioSummaryRequest.Builder to create a
request.default CompletableFuture<GetRecommendationReportDetailsResponse> getRecommendationReportDetails(GetRecommendationReportDetailsRequest getRecommendationReportDetailsRequest)
Retrieves detailed information about the specified recommendation report.
getRecommendationReportDetailsRequest - default CompletableFuture<GetRecommendationReportDetailsResponse> getRecommendationReportDetails(Consumer<GetRecommendationReportDetailsRequest.Builder> getRecommendationReportDetailsRequest)
Retrieves detailed information about the specified recommendation report.
This is a convenience which creates an instance of the GetRecommendationReportDetailsRequest.Builder
avoiding the need to create one manually via GetRecommendationReportDetailsRequest.builder()
getRecommendationReportDetailsRequest - A Consumer that will call methods on GetRecommendationReportDetailsRequest.Builder to
create a request.default CompletableFuture<GetServerDetailsResponse> getServerDetails(GetServerDetailsRequest getServerDetailsRequest)
Retrieves detailed information about a specified server.
getServerDetailsRequest - default CompletableFuture<GetServerDetailsResponse> getServerDetails(Consumer<GetServerDetailsRequest.Builder> getServerDetailsRequest)
Retrieves detailed information about a specified server.
This is a convenience which creates an instance of the GetServerDetailsRequest.Builder avoiding the need
to create one manually via GetServerDetailsRequest.builder()
getServerDetailsRequest - A Consumer that will call methods on GetServerDetailsRequest.Builder to create a request.default GetServerDetailsPublisher getServerDetailsPaginator(GetServerDetailsRequest getServerDetailsRequest)
Retrieves detailed information about a specified server.
This is a variant of
getServerDetails(software.amazon.awssdk.services.migrationhubstrategy.model.GetServerDetailsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.migrationhubstrategy.paginators.GetServerDetailsPublisher publisher = client.getServerDetailsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.migrationhubstrategy.paginators.GetServerDetailsPublisher publisher = client.getServerDetailsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.migrationhubstrategy.model.GetServerDetailsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.migrationhubstrategy.model.GetServerDetailsResponse 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
getServerDetails(software.amazon.awssdk.services.migrationhubstrategy.model.GetServerDetailsRequest)
operation.
getServerDetailsRequest - default GetServerDetailsPublisher getServerDetailsPaginator(Consumer<GetServerDetailsRequest.Builder> getServerDetailsRequest)
Retrieves detailed information about a specified server.
This is a variant of
getServerDetails(software.amazon.awssdk.services.migrationhubstrategy.model.GetServerDetailsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.migrationhubstrategy.paginators.GetServerDetailsPublisher publisher = client.getServerDetailsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.migrationhubstrategy.paginators.GetServerDetailsPublisher publisher = client.getServerDetailsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.migrationhubstrategy.model.GetServerDetailsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.migrationhubstrategy.model.GetServerDetailsResponse 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
getServerDetails(software.amazon.awssdk.services.migrationhubstrategy.model.GetServerDetailsRequest)
operation.
This is a convenience which creates an instance of the GetServerDetailsRequest.Builder avoiding the need
to create one manually via GetServerDetailsRequest.builder()
getServerDetailsRequest - A Consumer that will call methods on GetServerDetailsRequest.Builder to create a request.default CompletableFuture<GetServerStrategiesResponse> getServerStrategies(GetServerStrategiesRequest getServerStrategiesRequest)
Retrieves recommended strategies and tools for the specified server.
getServerStrategiesRequest - default CompletableFuture<GetServerStrategiesResponse> getServerStrategies(Consumer<GetServerStrategiesRequest.Builder> getServerStrategiesRequest)
Retrieves recommended strategies and tools for the specified server.
This is a convenience which creates an instance of the GetServerStrategiesRequest.Builder avoiding the
need to create one manually via GetServerStrategiesRequest.builder()
getServerStrategiesRequest - A Consumer that will call methods on GetServerStrategiesRequest.Builder to create a
request.default CompletableFuture<ListApplicationComponentsResponse> listApplicationComponents(ListApplicationComponentsRequest listApplicationComponentsRequest)
Retrieves a list of all the application components (processes).
listApplicationComponentsRequest - default CompletableFuture<ListApplicationComponentsResponse> listApplicationComponents(Consumer<ListApplicationComponentsRequest.Builder> listApplicationComponentsRequest)
Retrieves a list of all the application components (processes).
This is a convenience which creates an instance of the ListApplicationComponentsRequest.Builder avoiding
the need to create one manually via ListApplicationComponentsRequest.builder()
listApplicationComponentsRequest - A Consumer that will call methods on ListApplicationComponentsRequest.Builder to create a
request.default ListApplicationComponentsPublisher listApplicationComponentsPaginator(ListApplicationComponentsRequest listApplicationComponentsRequest)
Retrieves a list of all the application components (processes).
This is a variant of
listApplicationComponents(software.amazon.awssdk.services.migrationhubstrategy.model.ListApplicationComponentsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.migrationhubstrategy.paginators.ListApplicationComponentsPublisher publisher = client.listApplicationComponentsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.migrationhubstrategy.paginators.ListApplicationComponentsPublisher publisher = client.listApplicationComponentsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.migrationhubstrategy.model.ListApplicationComponentsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.migrationhubstrategy.model.ListApplicationComponentsResponse 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
listApplicationComponents(software.amazon.awssdk.services.migrationhubstrategy.model.ListApplicationComponentsRequest)
operation.
listApplicationComponentsRequest - default ListApplicationComponentsPublisher listApplicationComponentsPaginator(Consumer<ListApplicationComponentsRequest.Builder> listApplicationComponentsRequest)
Retrieves a list of all the application components (processes).
This is a variant of
listApplicationComponents(software.amazon.awssdk.services.migrationhubstrategy.model.ListApplicationComponentsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.migrationhubstrategy.paginators.ListApplicationComponentsPublisher publisher = client.listApplicationComponentsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.migrationhubstrategy.paginators.ListApplicationComponentsPublisher publisher = client.listApplicationComponentsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.migrationhubstrategy.model.ListApplicationComponentsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.migrationhubstrategy.model.ListApplicationComponentsResponse 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
listApplicationComponents(software.amazon.awssdk.services.migrationhubstrategy.model.ListApplicationComponentsRequest)
operation.
This is a convenience which creates an instance of the ListApplicationComponentsRequest.Builder avoiding
the need to create one manually via ListApplicationComponentsRequest.builder()
listApplicationComponentsRequest - A Consumer that will call methods on ListApplicationComponentsRequest.Builder to create a
request.default CompletableFuture<ListCollectorsResponse> listCollectors(ListCollectorsRequest listCollectorsRequest)
Retrieves a list of all the installed collectors.
listCollectorsRequest - default CompletableFuture<ListCollectorsResponse> listCollectors(Consumer<ListCollectorsRequest.Builder> listCollectorsRequest)
Retrieves a list of all the installed collectors.
This is a convenience which creates an instance of the ListCollectorsRequest.Builder avoiding the need to
create one manually via ListCollectorsRequest.builder()
listCollectorsRequest - A Consumer that will call methods on ListCollectorsRequest.Builder to create a request.default ListCollectorsPublisher listCollectorsPaginator(ListCollectorsRequest listCollectorsRequest)
Retrieves a list of all the installed collectors.
This is a variant of
listCollectors(software.amazon.awssdk.services.migrationhubstrategy.model.ListCollectorsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.migrationhubstrategy.paginators.ListCollectorsPublisher publisher = client.listCollectorsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.migrationhubstrategy.paginators.ListCollectorsPublisher publisher = client.listCollectorsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.migrationhubstrategy.model.ListCollectorsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.migrationhubstrategy.model.ListCollectorsResponse 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
listCollectors(software.amazon.awssdk.services.migrationhubstrategy.model.ListCollectorsRequest)
operation.
listCollectorsRequest - default ListCollectorsPublisher listCollectorsPaginator(Consumer<ListCollectorsRequest.Builder> listCollectorsRequest)
Retrieves a list of all the installed collectors.
This is a variant of
listCollectors(software.amazon.awssdk.services.migrationhubstrategy.model.ListCollectorsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.migrationhubstrategy.paginators.ListCollectorsPublisher publisher = client.listCollectorsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.migrationhubstrategy.paginators.ListCollectorsPublisher publisher = client.listCollectorsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.migrationhubstrategy.model.ListCollectorsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.migrationhubstrategy.model.ListCollectorsResponse 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
listCollectors(software.amazon.awssdk.services.migrationhubstrategy.model.ListCollectorsRequest)
operation.
This is a convenience which creates an instance of the ListCollectorsRequest.Builder avoiding the need to
create one manually via ListCollectorsRequest.builder()
listCollectorsRequest - A Consumer that will call methods on ListCollectorsRequest.Builder to create a request.default CompletableFuture<ListImportFileTaskResponse> listImportFileTask(ListImportFileTaskRequest listImportFileTaskRequest)
Retrieves a list of all the imports performed.
listImportFileTaskRequest - default CompletableFuture<ListImportFileTaskResponse> listImportFileTask(Consumer<ListImportFileTaskRequest.Builder> listImportFileTaskRequest)
Retrieves a list of all the imports performed.
This is a convenience which creates an instance of the ListImportFileTaskRequest.Builder avoiding the
need to create one manually via ListImportFileTaskRequest.builder()
listImportFileTaskRequest - A Consumer that will call methods on ListImportFileTaskRequest.Builder to create a
request.default ListImportFileTaskPublisher listImportFileTaskPaginator(ListImportFileTaskRequest listImportFileTaskRequest)
Retrieves a list of all the imports performed.
This is a variant of
listImportFileTask(software.amazon.awssdk.services.migrationhubstrategy.model.ListImportFileTaskRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.migrationhubstrategy.paginators.ListImportFileTaskPublisher publisher = client.listImportFileTaskPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.migrationhubstrategy.paginators.ListImportFileTaskPublisher publisher = client.listImportFileTaskPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.migrationhubstrategy.model.ListImportFileTaskResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.migrationhubstrategy.model.ListImportFileTaskResponse 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
listImportFileTask(software.amazon.awssdk.services.migrationhubstrategy.model.ListImportFileTaskRequest)
operation.
listImportFileTaskRequest - default ListImportFileTaskPublisher listImportFileTaskPaginator(Consumer<ListImportFileTaskRequest.Builder> listImportFileTaskRequest)
Retrieves a list of all the imports performed.
This is a variant of
listImportFileTask(software.amazon.awssdk.services.migrationhubstrategy.model.ListImportFileTaskRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.migrationhubstrategy.paginators.ListImportFileTaskPublisher publisher = client.listImportFileTaskPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.migrationhubstrategy.paginators.ListImportFileTaskPublisher publisher = client.listImportFileTaskPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.migrationhubstrategy.model.ListImportFileTaskResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.migrationhubstrategy.model.ListImportFileTaskResponse 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
listImportFileTask(software.amazon.awssdk.services.migrationhubstrategy.model.ListImportFileTaskRequest)
operation.
This is a convenience which creates an instance of the ListImportFileTaskRequest.Builder avoiding the
need to create one manually via ListImportFileTaskRequest.builder()
listImportFileTaskRequest - A Consumer that will call methods on ListImportFileTaskRequest.Builder to create a
request.default CompletableFuture<ListServersResponse> listServers(ListServersRequest listServersRequest)
Returns a list of all the servers.
listServersRequest - default CompletableFuture<ListServersResponse> listServers(Consumer<ListServersRequest.Builder> listServersRequest)
Returns a list of all the servers.
This is a convenience which creates an instance of the ListServersRequest.Builder avoiding the need to
create one manually via ListServersRequest.builder()
listServersRequest - A Consumer that will call methods on ListServersRequest.Builder to create a request.default ListServersPublisher listServersPaginator(ListServersRequest listServersRequest)
Returns a list of all the servers.
This is a variant of
listServers(software.amazon.awssdk.services.migrationhubstrategy.model.ListServersRequest) operation.
The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.migrationhubstrategy.paginators.ListServersPublisher publisher = client.listServersPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.migrationhubstrategy.paginators.ListServersPublisher publisher = client.listServersPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.migrationhubstrategy.model.ListServersResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.migrationhubstrategy.model.ListServersResponse 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
listServers(software.amazon.awssdk.services.migrationhubstrategy.model.ListServersRequest)
operation.
listServersRequest - default ListServersPublisher listServersPaginator(Consumer<ListServersRequest.Builder> listServersRequest)
Returns a list of all the servers.
This is a variant of
listServers(software.amazon.awssdk.services.migrationhubstrategy.model.ListServersRequest) operation.
The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.migrationhubstrategy.paginators.ListServersPublisher publisher = client.listServersPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.migrationhubstrategy.paginators.ListServersPublisher publisher = client.listServersPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.migrationhubstrategy.model.ListServersResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.migrationhubstrategy.model.ListServersResponse 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
listServers(software.amazon.awssdk.services.migrationhubstrategy.model.ListServersRequest)
operation.
This is a convenience which creates an instance of the ListServersRequest.Builder avoiding the need to
create one manually via ListServersRequest.builder()
listServersRequest - A Consumer that will call methods on ListServersRequest.Builder to create a request.default CompletableFuture<PutPortfolioPreferencesResponse> putPortfolioPreferences(PutPortfolioPreferencesRequest putPortfolioPreferencesRequest)
Saves the specified migration and modernization preferences.
putPortfolioPreferencesRequest - default CompletableFuture<PutPortfolioPreferencesResponse> putPortfolioPreferences(Consumer<PutPortfolioPreferencesRequest.Builder> putPortfolioPreferencesRequest)
Saves the specified migration and modernization preferences.
This is a convenience which creates an instance of the PutPortfolioPreferencesRequest.Builder avoiding
the need to create one manually via PutPortfolioPreferencesRequest.builder()
putPortfolioPreferencesRequest - A Consumer that will call methods on PutPortfolioPreferencesRequest.Builder to create a
request.default CompletableFuture<StartAssessmentResponse> startAssessment(StartAssessmentRequest startAssessmentRequest)
Starts the assessment of an on-premises environment.
startAssessmentRequest - default CompletableFuture<StartAssessmentResponse> startAssessment(Consumer<StartAssessmentRequest.Builder> startAssessmentRequest)
Starts the assessment of an on-premises environment.
This is a convenience which creates an instance of the StartAssessmentRequest.Builder avoiding the need
to create one manually via StartAssessmentRequest.builder()
startAssessmentRequest - A Consumer that will call methods on StartAssessmentRequest.Builder to create a request.default CompletableFuture<StartImportFileTaskResponse> startImportFileTask(StartImportFileTaskRequest startImportFileTaskRequest)
Starts a file import.
startImportFileTaskRequest - default CompletableFuture<StartImportFileTaskResponse> startImportFileTask(Consumer<StartImportFileTaskRequest.Builder> startImportFileTaskRequest)
Starts a file import.
This is a convenience which creates an instance of the StartImportFileTaskRequest.Builder avoiding the
need to create one manually via StartImportFileTaskRequest.builder()
startImportFileTaskRequest - A Consumer that will call methods on StartImportFileTaskRequest.Builder to create a
request.default CompletableFuture<StartRecommendationReportGenerationResponse> startRecommendationReportGeneration(StartRecommendationReportGenerationRequest startRecommendationReportGenerationRequest)
Starts generating a recommendation report.
startRecommendationReportGenerationRequest - default CompletableFuture<StartRecommendationReportGenerationResponse> startRecommendationReportGeneration(Consumer<StartRecommendationReportGenerationRequest.Builder> startRecommendationReportGenerationRequest)
Starts generating a recommendation report.
This is a convenience which creates an instance of the StartRecommendationReportGenerationRequest.Builder
avoiding the need to create one manually via StartRecommendationReportGenerationRequest.builder()
startRecommendationReportGenerationRequest - A Consumer that will call methods on StartRecommendationReportGenerationRequest.Builder to
create a request.default CompletableFuture<StopAssessmentResponse> stopAssessment(StopAssessmentRequest stopAssessmentRequest)
Stops the assessment of an on-premises environment.
stopAssessmentRequest - default CompletableFuture<StopAssessmentResponse> stopAssessment(Consumer<StopAssessmentRequest.Builder> stopAssessmentRequest)
Stops the assessment of an on-premises environment.
This is a convenience which creates an instance of the StopAssessmentRequest.Builder avoiding the need to
create one manually via StopAssessmentRequest.builder()
stopAssessmentRequest - A Consumer that will call methods on StopAssessmentRequest.Builder to create a request.default CompletableFuture<UpdateApplicationComponentConfigResponse> updateApplicationComponentConfig(UpdateApplicationComponentConfigRequest updateApplicationComponentConfigRequest)
Updates the configuration of an application component.
updateApplicationComponentConfigRequest - default CompletableFuture<UpdateApplicationComponentConfigResponse> updateApplicationComponentConfig(Consumer<UpdateApplicationComponentConfigRequest.Builder> updateApplicationComponentConfigRequest)
Updates the configuration of an application component.
This is a convenience which creates an instance of the UpdateApplicationComponentConfigRequest.Builder
avoiding the need to create one manually via UpdateApplicationComponentConfigRequest.builder()
updateApplicationComponentConfigRequest - A Consumer that will call methods on UpdateApplicationComponentConfigRequest.Builder to
create a request.default CompletableFuture<UpdateServerConfigResponse> updateServerConfig(UpdateServerConfigRequest updateServerConfigRequest)
Updates the configuration of the specified server.
updateServerConfigRequest - default CompletableFuture<UpdateServerConfigResponse> updateServerConfig(Consumer<UpdateServerConfigRequest.Builder> updateServerConfigRequest)
Updates the configuration of the specified server.
This is a convenience which creates an instance of the UpdateServerConfigRequest.Builder avoiding the
need to create one manually via UpdateServerConfigRequest.builder()
updateServerConfigRequest - A Consumer that will call methods on UpdateServerConfigRequest.Builder to create a
request.Copyright © 2022. All rights reserved.