Interface MigrationHubStrategyAsyncClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.The asynchronous client performs non-blocking I/O when configured with any
SdkAsyncHttpClient
supported in the SDK. However, full non-blocking is not guaranteed as the async client may
perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API
call.
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 AWS SDKs.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder that can be used to configure and create aMigrationHubStrategyAsyncClient
.create()
Create aMigrationHubStrategyAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.getApplicationComponentDetails
(Consumer<GetApplicationComponentDetailsRequest.Builder> getApplicationComponentDetailsRequest) Retrieves details about an application component.getApplicationComponentDetails
(GetApplicationComponentDetailsRequest getApplicationComponentDetailsRequest) Retrieves details about an application component.getApplicationComponentStrategies
(Consumer<GetApplicationComponentStrategiesRequest.Builder> getApplicationComponentStrategiesRequest) Retrieves a list of all the recommended strategies and tools for an application component running on a server.getApplicationComponentStrategies
(GetApplicationComponentStrategiesRequest getApplicationComponentStrategiesRequest) Retrieves a list of all the recommended strategies and tools for an application component running on a server.default CompletableFuture
<GetAssessmentResponse> getAssessment
(Consumer<GetAssessmentRequest.Builder> getAssessmentRequest) Retrieves the status of an on-going assessment.default CompletableFuture
<GetAssessmentResponse> getAssessment
(GetAssessmentRequest getAssessmentRequest) Retrieves the status of an on-going assessment.getImportFileTask
(Consumer<GetImportFileTaskRequest.Builder> getImportFileTaskRequest) Retrieves the details about a specific import task.getImportFileTask
(GetImportFileTaskRequest getImportFileTaskRequest) Retrieves the details about a specific import task.getLatestAssessmentId
(Consumer<GetLatestAssessmentIdRequest.Builder> getLatestAssessmentIdRequest) Retrieve the latest ID of a specific assessment task.getLatestAssessmentId
(GetLatestAssessmentIdRequest getLatestAssessmentIdRequest) Retrieve the latest ID of a specific assessment task.getPortfolioPreferences
(Consumer<GetPortfolioPreferencesRequest.Builder> getPortfolioPreferencesRequest) Retrieves your migration and modernization preferences.getPortfolioPreferences
(GetPortfolioPreferencesRequest getPortfolioPreferencesRequest) Retrieves your migration and modernization preferences.getPortfolioSummary
(Consumer<GetPortfolioSummaryRequest.Builder> getPortfolioSummaryRequest) Retrieves overall summary including the number of servers to rehost and the overall number of anti-patterns.getPortfolioSummary
(GetPortfolioSummaryRequest getPortfolioSummaryRequest) Retrieves overall summary including the number of servers to rehost and the overall number of anti-patterns.getRecommendationReportDetails
(Consumer<GetRecommendationReportDetailsRequest.Builder> getRecommendationReportDetailsRequest) Retrieves detailed information about the specified recommendation report.getRecommendationReportDetails
(GetRecommendationReportDetailsRequest getRecommendationReportDetailsRequest) Retrieves detailed information about the specified recommendation report.getServerDetails
(Consumer<GetServerDetailsRequest.Builder> getServerDetailsRequest) Retrieves detailed information about a specified server.getServerDetails
(GetServerDetailsRequest getServerDetailsRequest) Retrieves detailed information about a specified server.default GetServerDetailsPublisher
getServerDetailsPaginator
(Consumer<GetServerDetailsRequest.Builder> getServerDetailsRequest) This is a variant ofgetServerDetails(software.amazon.awssdk.services.migrationhubstrategy.model.GetServerDetailsRequest)
operation.default GetServerDetailsPublisher
getServerDetailsPaginator
(GetServerDetailsRequest getServerDetailsRequest) This is a variant ofgetServerDetails(software.amazon.awssdk.services.migrationhubstrategy.model.GetServerDetailsRequest)
operation.getServerStrategies
(Consumer<GetServerStrategiesRequest.Builder> getServerStrategiesRequest) Retrieves recommended strategies and tools for the specified server.getServerStrategies
(GetServerStrategiesRequest getServerStrategiesRequest) Retrieves recommended strategies and tools for the specified server.listAnalyzableServers
(Consumer<ListAnalyzableServersRequest.Builder> listAnalyzableServersRequest) Retrieves a list of all the servers fetched from customer vCenter using Strategy Recommendation Collector.listAnalyzableServers
(ListAnalyzableServersRequest listAnalyzableServersRequest) Retrieves a list of all the servers fetched from customer vCenter using Strategy Recommendation Collector.default ListAnalyzableServersPublisher
listAnalyzableServersPaginator
(Consumer<ListAnalyzableServersRequest.Builder> listAnalyzableServersRequest) This is a variant oflistAnalyzableServers(software.amazon.awssdk.services.migrationhubstrategy.model.ListAnalyzableServersRequest)
operation.default ListAnalyzableServersPublisher
listAnalyzableServersPaginator
(ListAnalyzableServersRequest listAnalyzableServersRequest) This is a variant oflistAnalyzableServers(software.amazon.awssdk.services.migrationhubstrategy.model.ListAnalyzableServersRequest)
operation.listApplicationComponents
(Consumer<ListApplicationComponentsRequest.Builder> listApplicationComponentsRequest) Retrieves a list of all the application components (processes).listApplicationComponents
(ListApplicationComponentsRequest listApplicationComponentsRequest) Retrieves a list of all the application components (processes).listApplicationComponentsPaginator
(Consumer<ListApplicationComponentsRequest.Builder> listApplicationComponentsRequest) This is a variant oflistApplicationComponents(software.amazon.awssdk.services.migrationhubstrategy.model.ListApplicationComponentsRequest)
operation.listApplicationComponentsPaginator
(ListApplicationComponentsRequest listApplicationComponentsRequest) This is a variant oflistApplicationComponents(software.amazon.awssdk.services.migrationhubstrategy.model.ListApplicationComponentsRequest)
operation.default CompletableFuture
<ListCollectorsResponse> listCollectors
(Consumer<ListCollectorsRequest.Builder> listCollectorsRequest) Retrieves a list of all the installed collectors.default CompletableFuture
<ListCollectorsResponse> listCollectors
(ListCollectorsRequest listCollectorsRequest) Retrieves a list of all the installed collectors.default ListCollectorsPublisher
listCollectorsPaginator
(Consumer<ListCollectorsRequest.Builder> listCollectorsRequest) This is a variant oflistCollectors(software.amazon.awssdk.services.migrationhubstrategy.model.ListCollectorsRequest)
operation.default ListCollectorsPublisher
listCollectorsPaginator
(ListCollectorsRequest listCollectorsRequest) This is a variant oflistCollectors(software.amazon.awssdk.services.migrationhubstrategy.model.ListCollectorsRequest)
operation.listImportFileTask
(Consumer<ListImportFileTaskRequest.Builder> listImportFileTaskRequest) Retrieves a list of all the imports performed.listImportFileTask
(ListImportFileTaskRequest listImportFileTaskRequest) Retrieves a list of all the imports performed.default ListImportFileTaskPublisher
listImportFileTaskPaginator
(Consumer<ListImportFileTaskRequest.Builder> listImportFileTaskRequest) This is a variant oflistImportFileTask(software.amazon.awssdk.services.migrationhubstrategy.model.ListImportFileTaskRequest)
operation.default ListImportFileTaskPublisher
listImportFileTaskPaginator
(ListImportFileTaskRequest listImportFileTaskRequest) This is a variant oflistImportFileTask(software.amazon.awssdk.services.migrationhubstrategy.model.ListImportFileTaskRequest)
operation.default CompletableFuture
<ListServersResponse> listServers
(Consumer<ListServersRequest.Builder> listServersRequest) Returns a list of all the servers.default CompletableFuture
<ListServersResponse> listServers
(ListServersRequest listServersRequest) Returns a list of all the servers.default ListServersPublisher
listServersPaginator
(Consumer<ListServersRequest.Builder> listServersRequest) This is a variant oflistServers(software.amazon.awssdk.services.migrationhubstrategy.model.ListServersRequest)
operation.default ListServersPublisher
listServersPaginator
(ListServersRequest listServersRequest) This is a variant oflistServers(software.amazon.awssdk.services.migrationhubstrategy.model.ListServersRequest)
operation.putPortfolioPreferences
(Consumer<PutPortfolioPreferencesRequest.Builder> putPortfolioPreferencesRequest) Saves the specified migration and modernization preferences.putPortfolioPreferences
(PutPortfolioPreferencesRequest putPortfolioPreferencesRequest) Saves the specified migration and modernization preferences.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationdefault CompletableFuture
<StartAssessmentResponse> startAssessment
(Consumer<StartAssessmentRequest.Builder> startAssessmentRequest) Starts the assessment of an on-premises environment.default CompletableFuture
<StartAssessmentResponse> startAssessment
(StartAssessmentRequest startAssessmentRequest) Starts the assessment of an on-premises environment.startImportFileTask
(Consumer<StartImportFileTaskRequest.Builder> startImportFileTaskRequest) Starts a file import.startImportFileTask
(StartImportFileTaskRequest startImportFileTaskRequest) Starts a file import.startRecommendationReportGeneration
(Consumer<StartRecommendationReportGenerationRequest.Builder> startRecommendationReportGenerationRequest) Starts generating a recommendation report.startRecommendationReportGeneration
(StartRecommendationReportGenerationRequest startRecommendationReportGenerationRequest) Starts generating a recommendation report.default CompletableFuture
<StopAssessmentResponse> stopAssessment
(Consumer<StopAssessmentRequest.Builder> stopAssessmentRequest) Stops the assessment of an on-premises environment.default CompletableFuture
<StopAssessmentResponse> stopAssessment
(StopAssessmentRequest stopAssessmentRequest) Stops the assessment of an on-premises environment.updateApplicationComponentConfig
(Consumer<UpdateApplicationComponentConfigRequest.Builder> updateApplicationComponentConfigRequest) Updates the configuration of an application component.updateApplicationComponentConfig
(UpdateApplicationComponentConfigRequest updateApplicationComponentConfigRequest) Updates the configuration of an application component.updateServerConfig
(Consumer<UpdateServerConfigRequest.Builder> updateServerConfigRequest) Updates the configuration of the specified server.updateServerConfig
(UpdateServerConfigRequest updateServerConfigRequest) Updates the configuration of the specified server.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
getApplicationComponentDetails
default CompletableFuture<GetApplicationComponentDetailsResponse> getApplicationComponentDetails(GetApplicationComponentDetailsRequest getApplicationComponentDetailsRequest) Retrieves details about an application component.
- Parameters:
getApplicationComponentDetailsRequest
-- Returns:
- A Java Future containing the result of the GetApplicationComponentDetails operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified ID in the request is not found.
- ThrottlingException The request was denied due to request throttling.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getApplicationComponentDetails
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 viaGetApplicationComponentDetailsRequest.builder()
- Parameters:
getApplicationComponentDetailsRequest
- AConsumer
that will call methods onGetApplicationComponentDetailsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetApplicationComponentDetails operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified ID in the request is not found.
- ThrottlingException The request was denied due to request throttling.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getApplicationComponentStrategies
default CompletableFuture<GetApplicationComponentStrategiesResponse> getApplicationComponentStrategies(GetApplicationComponentStrategiesRequest getApplicationComponentStrategiesRequest) Retrieves a list of all the recommended strategies and tools for an application component running on a server.
- Parameters:
getApplicationComponentStrategiesRequest
-- Returns:
- A Java Future containing the result of the GetApplicationComponentStrategies operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified ID in the request is not found.
- ThrottlingException The request was denied due to request throttling.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getApplicationComponentStrategies
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 viaGetApplicationComponentStrategiesRequest.builder()
- Parameters:
getApplicationComponentStrategiesRequest
- AConsumer
that will call methods onGetApplicationComponentStrategiesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetApplicationComponentStrategies operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified ID in the request is not found.
- ThrottlingException The request was denied due to request throttling.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAssessment
default CompletableFuture<GetAssessmentResponse> getAssessment(GetAssessmentRequest getAssessmentRequest) Retrieves the status of an on-going assessment.
- Parameters:
getAssessmentRequest
-- Returns:
- A Java Future containing the result of the GetAssessment operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified ID in the request is not found.
- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAssessment
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 viaGetAssessmentRequest.builder()
- Parameters:
getAssessmentRequest
- AConsumer
that will call methods onGetAssessmentRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetAssessment operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified ID in the request is not found.
- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getImportFileTask
default CompletableFuture<GetImportFileTaskResponse> getImportFileTask(GetImportFileTaskRequest getImportFileTaskRequest) Retrieves the details about a specific import task.
- Parameters:
getImportFileTaskRequest
-- Returns:
- A Java Future containing the result of the GetImportFileTask operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified ID in the request is not found.
- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getImportFileTask
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 viaGetImportFileTaskRequest.builder()
- Parameters:
getImportFileTaskRequest
- AConsumer
that will call methods onGetImportFileTaskRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetImportFileTask operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified ID in the request is not found.
- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getLatestAssessmentId
default CompletableFuture<GetLatestAssessmentIdResponse> getLatestAssessmentId(GetLatestAssessmentIdRequest getLatestAssessmentIdRequest) Retrieve the latest ID of a specific assessment task.
- Parameters:
getLatestAssessmentIdRequest
-- Returns:
- A Java Future containing the result of the GetLatestAssessmentId operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- DependencyException Dependency encountered an error.
- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getLatestAssessmentId
default CompletableFuture<GetLatestAssessmentIdResponse> getLatestAssessmentId(Consumer<GetLatestAssessmentIdRequest.Builder> getLatestAssessmentIdRequest) Retrieve the latest ID of a specific assessment task.
This is a convenience which creates an instance of the
GetLatestAssessmentIdRequest.Builder
avoiding the need to create one manually viaGetLatestAssessmentIdRequest.builder()
- Parameters:
getLatestAssessmentIdRequest
- AConsumer
that will call methods onGetLatestAssessmentIdRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetLatestAssessmentId operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- DependencyException Dependency encountered an error.
- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getPortfolioPreferences
default CompletableFuture<GetPortfolioPreferencesResponse> getPortfolioPreferences(GetPortfolioPreferencesRequest getPortfolioPreferencesRequest) Retrieves your migration and modernization preferences.
- Parameters:
getPortfolioPreferencesRequest
-- Returns:
- A Java Future containing the result of the GetPortfolioPreferences operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified ID in the request is not found.
- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getPortfolioPreferences
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 viaGetPortfolioPreferencesRequest.builder()
- Parameters:
getPortfolioPreferencesRequest
- AConsumer
that will call methods onGetPortfolioPreferencesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetPortfolioPreferences operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified ID in the request is not found.
- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getPortfolioSummary
default CompletableFuture<GetPortfolioSummaryResponse> getPortfolioSummary(GetPortfolioSummaryRequest getPortfolioSummaryRequest) Retrieves overall summary including the number of servers to rehost and the overall number of anti-patterns.
- Parameters:
getPortfolioSummaryRequest
-- Returns:
- A Java Future containing the result of the GetPortfolioSummary operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getPortfolioSummary
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 viaGetPortfolioSummaryRequest.builder()
- Parameters:
getPortfolioSummaryRequest
- AConsumer
that will call methods onGetPortfolioSummaryRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetPortfolioSummary operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getRecommendationReportDetails
default CompletableFuture<GetRecommendationReportDetailsResponse> getRecommendationReportDetails(GetRecommendationReportDetailsRequest getRecommendationReportDetailsRequest) Retrieves detailed information about the specified recommendation report.
- Parameters:
getRecommendationReportDetailsRequest
-- Returns:
- A Java Future containing the result of the GetRecommendationReportDetails operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified ID in the request is not found.
- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getRecommendationReportDetails
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 viaGetRecommendationReportDetailsRequest.builder()
- Parameters:
getRecommendationReportDetailsRequest
- AConsumer
that will call methods onGetRecommendationReportDetailsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetRecommendationReportDetails operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified ID in the request is not found.
- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getServerDetails
default CompletableFuture<GetServerDetailsResponse> getServerDetails(GetServerDetailsRequest getServerDetailsRequest) Retrieves detailed information about a specified server.
- Parameters:
getServerDetailsRequest
-- Returns:
- A Java Future containing the result of the GetServerDetails operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified ID in the request is not found.
- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getServerDetails
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 viaGetServerDetailsRequest.builder()
- Parameters:
getServerDetailsRequest
- AConsumer
that will call methods onGetServerDetailsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetServerDetails operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified ID in the request is not found.
- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getServerDetailsPaginator
default GetServerDetailsPublisher getServerDetailsPaginator(GetServerDetailsRequest getServerDetailsRequest) 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 newSubscription
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 methodsoftware.amazon.awssdk.services.migrationhubstrategy.paginators.GetServerDetailsPublisher publisher = client.getServerDetailsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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) { //... }; });
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.- Parameters:
getServerDetailsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified ID in the request is not found.
- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getServerDetailsPaginator
default GetServerDetailsPublisher getServerDetailsPaginator(Consumer<GetServerDetailsRequest.Builder> getServerDetailsRequest) 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 newSubscription
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 methodsoftware.amazon.awssdk.services.migrationhubstrategy.paginators.GetServerDetailsPublisher publisher = client.getServerDetailsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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) { //... }; });
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 viaGetServerDetailsRequest.builder()
- Parameters:
getServerDetailsRequest
- AConsumer
that will call methods onGetServerDetailsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified ID in the request is not found.
- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getServerStrategies
default CompletableFuture<GetServerStrategiesResponse> getServerStrategies(GetServerStrategiesRequest getServerStrategiesRequest) Retrieves recommended strategies and tools for the specified server.
- Parameters:
getServerStrategiesRequest
-- Returns:
- A Java Future containing the result of the GetServerStrategies operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified ID in the request is not found.
- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getServerStrategies
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 viaGetServerStrategiesRequest.builder()
- Parameters:
getServerStrategiesRequest
- AConsumer
that will call methods onGetServerStrategiesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetServerStrategies operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified ID in the request is not found.
- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAnalyzableServers
default CompletableFuture<ListAnalyzableServersResponse> listAnalyzableServers(ListAnalyzableServersRequest listAnalyzableServersRequest) Retrieves a list of all the servers fetched from customer vCenter using Strategy Recommendation Collector.
- Parameters:
listAnalyzableServersRequest
- Represents input for ListAnalyzableServers operation.- Returns:
- A Java Future containing the result of the ListAnalyzableServers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAnalyzableServers
default CompletableFuture<ListAnalyzableServersResponse> listAnalyzableServers(Consumer<ListAnalyzableServersRequest.Builder> listAnalyzableServersRequest) Retrieves a list of all the servers fetched from customer vCenter using Strategy Recommendation Collector.
This is a convenience which creates an instance of the
ListAnalyzableServersRequest.Builder
avoiding the need to create one manually viaListAnalyzableServersRequest.builder()
- Parameters:
listAnalyzableServersRequest
- AConsumer
that will call methods onListAnalyzableServersRequest.Builder
to create a request. Represents input for ListAnalyzableServers operation.- Returns:
- A Java Future containing the result of the ListAnalyzableServers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAnalyzableServersPaginator
default ListAnalyzableServersPublisher listAnalyzableServersPaginator(ListAnalyzableServersRequest listAnalyzableServersRequest) This is a variant of
listAnalyzableServers(software.amazon.awssdk.services.migrationhubstrategy.model.ListAnalyzableServersRequest)
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 newSubscription
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 methodsoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListAnalyzableServersPublisher publisher = client.listAnalyzableServersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.migrationhubstrategy.paginators.ListAnalyzableServersPublisher publisher = client.listAnalyzableServersPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.migrationhubstrategy.model.ListAnalyzableServersResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.migrationhubstrategy.model.ListAnalyzableServersResponse response) { //... }; });
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
listAnalyzableServers(software.amazon.awssdk.services.migrationhubstrategy.model.ListAnalyzableServersRequest)
operation.- Parameters:
listAnalyzableServersRequest
- Represents input for ListAnalyzableServers operation.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAnalyzableServersPaginator
default ListAnalyzableServersPublisher listAnalyzableServersPaginator(Consumer<ListAnalyzableServersRequest.Builder> listAnalyzableServersRequest) This is a variant of
listAnalyzableServers(software.amazon.awssdk.services.migrationhubstrategy.model.ListAnalyzableServersRequest)
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 newSubscription
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 methodsoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListAnalyzableServersPublisher publisher = client.listAnalyzableServersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.migrationhubstrategy.paginators.ListAnalyzableServersPublisher publisher = client.listAnalyzableServersPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.migrationhubstrategy.model.ListAnalyzableServersResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.migrationhubstrategy.model.ListAnalyzableServersResponse response) { //... }; });
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
listAnalyzableServers(software.amazon.awssdk.services.migrationhubstrategy.model.ListAnalyzableServersRequest)
operation.
This is a convenience which creates an instance of the
ListAnalyzableServersRequest.Builder
avoiding the need to create one manually viaListAnalyzableServersRequest.builder()
- Parameters:
listAnalyzableServersRequest
- AConsumer
that will call methods onListAnalyzableServersRequest.Builder
to create a request. Represents input for ListAnalyzableServers operation.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listApplicationComponents
default CompletableFuture<ListApplicationComponentsResponse> listApplicationComponents(ListApplicationComponentsRequest listApplicationComponentsRequest) Retrieves a list of all the application components (processes).
- Parameters:
listApplicationComponentsRequest
-- Returns:
- A Java Future containing the result of the ListApplicationComponents operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ServiceLinkedRoleLockClientException Exception to indicate that the service-linked role (SLR) is locked.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listApplicationComponents
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 viaListApplicationComponentsRequest.builder()
- Parameters:
listApplicationComponentsRequest
- AConsumer
that will call methods onListApplicationComponentsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListApplicationComponents operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ServiceLinkedRoleLockClientException Exception to indicate that the service-linked role (SLR) is locked.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listApplicationComponentsPaginator
default ListApplicationComponentsPublisher listApplicationComponentsPaginator(ListApplicationComponentsRequest listApplicationComponentsRequest) 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 newSubscription
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 methodsoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListApplicationComponentsPublisher publisher = client.listApplicationComponentsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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) { //... }; });
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.- Parameters:
listApplicationComponentsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ServiceLinkedRoleLockClientException Exception to indicate that the service-linked role (SLR) is locked.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listApplicationComponentsPaginator
default ListApplicationComponentsPublisher listApplicationComponentsPaginator(Consumer<ListApplicationComponentsRequest.Builder> listApplicationComponentsRequest) 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 newSubscription
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 methodsoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListApplicationComponentsPublisher publisher = client.listApplicationComponentsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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) { //... }; });
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 viaListApplicationComponentsRequest.builder()
- Parameters:
listApplicationComponentsRequest
- AConsumer
that will call methods onListApplicationComponentsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ServiceLinkedRoleLockClientException Exception to indicate that the service-linked role (SLR) is locked.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCollectors
default CompletableFuture<ListCollectorsResponse> listCollectors(ListCollectorsRequest listCollectorsRequest) Retrieves a list of all the installed collectors.
- Parameters:
listCollectorsRequest
-- Returns:
- A Java Future containing the result of the ListCollectors operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCollectors
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 viaListCollectorsRequest.builder()
- Parameters:
listCollectorsRequest
- AConsumer
that will call methods onListCollectorsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListCollectors operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCollectorsPaginator
default ListCollectorsPublisher listCollectorsPaginator(ListCollectorsRequest listCollectorsRequest) 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 newSubscription
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 methodsoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListCollectorsPublisher publisher = client.listCollectorsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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) { //... }; });
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.- Parameters:
listCollectorsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCollectorsPaginator
default ListCollectorsPublisher listCollectorsPaginator(Consumer<ListCollectorsRequest.Builder> listCollectorsRequest) 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 newSubscription
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 methodsoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListCollectorsPublisher publisher = client.listCollectorsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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) { //... }; });
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 viaListCollectorsRequest.builder()
- Parameters:
listCollectorsRequest
- AConsumer
that will call methods onListCollectorsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listImportFileTask
default CompletableFuture<ListImportFileTaskResponse> listImportFileTask(ListImportFileTaskRequest listImportFileTaskRequest) Retrieves a list of all the imports performed.
- Parameters:
listImportFileTaskRequest
-- Returns:
- A Java Future containing the result of the ListImportFileTask operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listImportFileTask
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 viaListImportFileTaskRequest.builder()
- Parameters:
listImportFileTaskRequest
- AConsumer
that will call methods onListImportFileTaskRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListImportFileTask operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listImportFileTaskPaginator
default ListImportFileTaskPublisher listImportFileTaskPaginator(ListImportFileTaskRequest listImportFileTaskRequest) 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 newSubscription
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 methodsoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListImportFileTaskPublisher publisher = client.listImportFileTaskPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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) { //... }; });
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.- Parameters:
listImportFileTaskRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listImportFileTaskPaginator
default ListImportFileTaskPublisher listImportFileTaskPaginator(Consumer<ListImportFileTaskRequest.Builder> listImportFileTaskRequest) 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 newSubscription
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 methodsoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListImportFileTaskPublisher publisher = client.listImportFileTaskPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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) { //... }; });
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 viaListImportFileTaskRequest.builder()
- Parameters:
listImportFileTaskRequest
- AConsumer
that will call methods onListImportFileTaskRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listServers
Returns a list of all the servers.
- Parameters:
listServersRequest
-- Returns:
- A Java Future containing the result of the ListServers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listServers
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 viaListServersRequest.builder()
- Parameters:
listServersRequest
- AConsumer
that will call methods onListServersRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListServers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listServersPaginator
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 newSubscription
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 methodsoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListServersPublisher publisher = client.listServersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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) { //... }; });
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.- Parameters:
listServersRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listServersPaginator
default ListServersPublisher listServersPaginator(Consumer<ListServersRequest.Builder> listServersRequest) 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 newSubscription
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 methodsoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListServersPublisher publisher = client.listServersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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) { //... }; });
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 viaListServersRequest.builder()
- Parameters:
listServersRequest
- AConsumer
that will call methods onListServersRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putPortfolioPreferences
default CompletableFuture<PutPortfolioPreferencesResponse> putPortfolioPreferences(PutPortfolioPreferencesRequest putPortfolioPreferencesRequest) Saves the specified migration and modernization preferences.
- Parameters:
putPortfolioPreferencesRequest
-- Returns:
- A Java Future containing the result of the PutPortfolioPreferences operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- ConflictException Exception to indicate that there is an ongoing task when a new task is created. Return when once the existing tasks are complete.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putPortfolioPreferences
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 viaPutPortfolioPreferencesRequest.builder()
- Parameters:
putPortfolioPreferencesRequest
- AConsumer
that will call methods onPutPortfolioPreferencesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the PutPortfolioPreferences operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- ConflictException Exception to indicate that there is an ongoing task when a new task is created. Return when once the existing tasks are complete.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startAssessment
default CompletableFuture<StartAssessmentResponse> startAssessment(StartAssessmentRequest startAssessmentRequest) Starts the assessment of an on-premises environment.
- Parameters:
startAssessmentRequest
-- Returns:
- A Java Future containing the result of the StartAssessment operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ServiceQuotaExceededException The AWS account has reached its quota of imports. Contact AWS Support to increase the quota for this account.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startAssessment
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 viaStartAssessmentRequest.builder()
- Parameters:
startAssessmentRequest
- AConsumer
that will call methods onStartAssessmentRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the StartAssessment operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ServiceQuotaExceededException The AWS account has reached its quota of imports. Contact AWS Support to increase the quota for this account.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startImportFileTask
default CompletableFuture<StartImportFileTaskResponse> startImportFileTask(StartImportFileTaskRequest startImportFileTaskRequest) Starts a file import.
- Parameters:
startImportFileTaskRequest
-- Returns:
- A Java Future containing the result of the StartImportFileTask operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ServiceQuotaExceededException The AWS account has reached its quota of imports. Contact AWS Support to increase the quota for this account.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startImportFileTask
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 viaStartImportFileTaskRequest.builder()
- Parameters:
startImportFileTaskRequest
- AConsumer
that will call methods onStartImportFileTaskRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the StartImportFileTask operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ServiceQuotaExceededException The AWS account has reached its quota of imports. Contact AWS Support to increase the quota for this account.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startRecommendationReportGeneration
default CompletableFuture<StartRecommendationReportGenerationResponse> startRecommendationReportGeneration(StartRecommendationReportGenerationRequest startRecommendationReportGenerationRequest) Starts generating a recommendation report.
- Parameters:
startRecommendationReportGenerationRequest
-- Returns:
- A Java Future containing the result of the StartRecommendationReportGeneration operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- ConflictException Exception to indicate that there is an ongoing task when a new task is created. Return when once the existing tasks are complete.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startRecommendationReportGeneration
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 viaStartRecommendationReportGenerationRequest.builder()
- Parameters:
startRecommendationReportGenerationRequest
- AConsumer
that will call methods onStartRecommendationReportGenerationRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the StartRecommendationReportGeneration operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- ConflictException Exception to indicate that there is an ongoing task when a new task is created. Return when once the existing tasks are complete.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopAssessment
default CompletableFuture<StopAssessmentResponse> stopAssessment(StopAssessmentRequest stopAssessmentRequest) Stops the assessment of an on-premises environment.
- Parameters:
stopAssessmentRequest
-- Returns:
- A Java Future containing the result of the StopAssessment operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopAssessment
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 viaStopAssessmentRequest.builder()
- Parameters:
stopAssessmentRequest
- AConsumer
that will call methods onStopAssessmentRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the StopAssessment operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateApplicationComponentConfig
default CompletableFuture<UpdateApplicationComponentConfigResponse> updateApplicationComponentConfig(UpdateApplicationComponentConfigRequest updateApplicationComponentConfigRequest) Updates the configuration of an application component.
- Parameters:
updateApplicationComponentConfigRequest
-- Returns:
- A Java Future containing the result of the UpdateApplicationComponentConfig operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified ID in the request is not found.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateApplicationComponentConfig
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 viaUpdateApplicationComponentConfigRequest.builder()
- Parameters:
updateApplicationComponentConfigRequest
- AConsumer
that will call methods onUpdateApplicationComponentConfigRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateApplicationComponentConfig operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified ID in the request is not found.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateServerConfig
default CompletableFuture<UpdateServerConfigResponse> updateServerConfig(UpdateServerConfigRequest updateServerConfigRequest) Updates the configuration of the specified server.
- Parameters:
updateServerConfigRequest
-- Returns:
- A Java Future containing the result of the UpdateServerConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified ID in the request is not found.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateServerConfig
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 viaUpdateServerConfigRequest.builder()
- Parameters:
updateServerConfigRequest
- AConsumer
that will call methods onUpdateServerConfigRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateServerConfig operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified ID in the request is not found.
- ThrottlingException The request was denied due to request throttling.
- ValidationException The request body isn't valid.
- InternalServerException The server experienced an internal error. Try again.
- 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.
- MigrationHubStrategyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-
create
Create aMigrationHubStrategyAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aMigrationHubStrategyAsyncClient
.
-