Interface MigrationHubStrategyClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
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
FieldsModifier and TypeFieldDescriptionstatic final StringValue 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 aMigrationHubStrategyClient.static MigrationHubStrategyClientcreate()Create aMigrationHubStrategyClientwith the region loaded from theDefaultAwsRegionProviderChainand 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 GetAssessmentResponsegetAssessment(Consumer<GetAssessmentRequest.Builder> getAssessmentRequest) Retrieves the status of an on-going assessment.default GetAssessmentResponsegetAssessment(GetAssessmentRequest getAssessmentRequest) Retrieves the status of an on-going assessment.default GetImportFileTaskResponsegetImportFileTask(Consumer<GetImportFileTaskRequest.Builder> getImportFileTaskRequest) Retrieves the details about a specific import task.default GetImportFileTaskResponsegetImportFileTask(GetImportFileTaskRequest getImportFileTaskRequest) Retrieves the details about a specific import task.default GetLatestAssessmentIdResponsegetLatestAssessmentId(Consumer<GetLatestAssessmentIdRequest.Builder> getLatestAssessmentIdRequest) Retrieve the latest ID of a specific assessment task.default GetLatestAssessmentIdResponsegetLatestAssessmentId(GetLatestAssessmentIdRequest getLatestAssessmentIdRequest) Retrieve the latest ID of a specific assessment task.default GetPortfolioPreferencesResponsegetPortfolioPreferences(Consumer<GetPortfolioPreferencesRequest.Builder> getPortfolioPreferencesRequest) Retrieves your migration and modernization preferences.default GetPortfolioPreferencesResponsegetPortfolioPreferences(GetPortfolioPreferencesRequest getPortfolioPreferencesRequest) Retrieves your migration and modernization preferences.default GetPortfolioSummaryResponsegetPortfolioSummary(Consumer<GetPortfolioSummaryRequest.Builder> getPortfolioSummaryRequest) Retrieves overall summary including the number of servers to rehost and the overall number of anti-patterns.default GetPortfolioSummaryResponsegetPortfolioSummary(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.default GetServerDetailsResponsegetServerDetails(Consumer<GetServerDetailsRequest.Builder> getServerDetailsRequest) Retrieves detailed information about a specified server.default GetServerDetailsResponsegetServerDetails(GetServerDetailsRequest getServerDetailsRequest) Retrieves detailed information about a specified server.default GetServerDetailsIterablegetServerDetailsPaginator(Consumer<GetServerDetailsRequest.Builder> getServerDetailsRequest) This is a variant ofgetServerDetails(software.amazon.awssdk.services.migrationhubstrategy.model.GetServerDetailsRequest)operation.default GetServerDetailsIterablegetServerDetailsPaginator(GetServerDetailsRequest getServerDetailsRequest) This is a variant ofgetServerDetails(software.amazon.awssdk.services.migrationhubstrategy.model.GetServerDetailsRequest)operation.default GetServerStrategiesResponsegetServerStrategies(Consumer<GetServerStrategiesRequest.Builder> getServerStrategiesRequest) Retrieves recommended strategies and tools for the specified server.default GetServerStrategiesResponsegetServerStrategies(GetServerStrategiesRequest getServerStrategiesRequest) Retrieves recommended strategies and tools for the specified server.default ListAnalyzableServersResponselistAnalyzableServers(Consumer<ListAnalyzableServersRequest.Builder> listAnalyzableServersRequest) Retrieves a list of all the servers fetched from customer vCenter using Strategy Recommendation Collector.default ListAnalyzableServersResponselistAnalyzableServers(ListAnalyzableServersRequest listAnalyzableServersRequest) Retrieves a list of all the servers fetched from customer vCenter using Strategy Recommendation Collector.default ListAnalyzableServersIterablelistAnalyzableServersPaginator(Consumer<ListAnalyzableServersRequest.Builder> listAnalyzableServersRequest) This is a variant oflistAnalyzableServers(software.amazon.awssdk.services.migrationhubstrategy.model.ListAnalyzableServersRequest)operation.default ListAnalyzableServersIterablelistAnalyzableServersPaginator(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 ListCollectorsResponselistCollectors(Consumer<ListCollectorsRequest.Builder> listCollectorsRequest) Retrieves a list of all the installed collectors.default ListCollectorsResponselistCollectors(ListCollectorsRequest listCollectorsRequest) Retrieves a list of all the installed collectors.default ListCollectorsIterablelistCollectorsPaginator(Consumer<ListCollectorsRequest.Builder> listCollectorsRequest) This is a variant oflistCollectors(software.amazon.awssdk.services.migrationhubstrategy.model.ListCollectorsRequest)operation.default ListCollectorsIterablelistCollectorsPaginator(ListCollectorsRequest listCollectorsRequest) This is a variant oflistCollectors(software.amazon.awssdk.services.migrationhubstrategy.model.ListCollectorsRequest)operation.default ListImportFileTaskResponselistImportFileTask(Consumer<ListImportFileTaskRequest.Builder> listImportFileTaskRequest) Retrieves a list of all the imports performed.default ListImportFileTaskResponselistImportFileTask(ListImportFileTaskRequest listImportFileTaskRequest) Retrieves a list of all the imports performed.default ListImportFileTaskIterablelistImportFileTaskPaginator(Consumer<ListImportFileTaskRequest.Builder> listImportFileTaskRequest) This is a variant oflistImportFileTask(software.amazon.awssdk.services.migrationhubstrategy.model.ListImportFileTaskRequest)operation.default ListImportFileTaskIterablelistImportFileTaskPaginator(ListImportFileTaskRequest listImportFileTaskRequest) This is a variant oflistImportFileTask(software.amazon.awssdk.services.migrationhubstrategy.model.ListImportFileTaskRequest)operation.default ListServersResponselistServers(Consumer<ListServersRequest.Builder> listServersRequest) Returns a list of all the servers.default ListServersResponselistServers(ListServersRequest listServersRequest) Returns a list of all the servers.default ListServersIterablelistServersPaginator(Consumer<ListServersRequest.Builder> listServersRequest) This is a variant oflistServers(software.amazon.awssdk.services.migrationhubstrategy.model.ListServersRequest)operation.default ListServersIterablelistServersPaginator(ListServersRequest listServersRequest) This is a variant oflistServers(software.amazon.awssdk.services.migrationhubstrategy.model.ListServersRequest)operation.default PutPortfolioPreferencesResponseputPortfolioPreferences(Consumer<PutPortfolioPreferencesRequest.Builder> putPortfolioPreferencesRequest) Saves the specified migration and modernization preferences.default PutPortfolioPreferencesResponseputPortfolioPreferences(PutPortfolioPreferencesRequest putPortfolioPreferencesRequest) Saves the specified migration and modernization preferences.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault StartAssessmentResponsestartAssessment(Consumer<StartAssessmentRequest.Builder> startAssessmentRequest) Starts the assessment of an on-premises environment.default StartAssessmentResponsestartAssessment(StartAssessmentRequest startAssessmentRequest) Starts the assessment of an on-premises environment.default StartImportFileTaskResponsestartImportFileTask(Consumer<StartImportFileTaskRequest.Builder> startImportFileTaskRequest) Starts a file import.default StartImportFileTaskResponsestartImportFileTask(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 StopAssessmentResponsestopAssessment(Consumer<StopAssessmentRequest.Builder> stopAssessmentRequest) Stops the assessment of an on-premises environment.default StopAssessmentResponsestopAssessment(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.default UpdateServerConfigResponseupdateServerConfig(Consumer<UpdateServerConfigRequest.Builder> updateServerConfigRequest) Updates the configuration of the specified server.default UpdateServerConfigResponseupdateServerConfig(UpdateServerConfigRequest updateServerConfigRequest) Updates the configuration of the specified server.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods 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 GetApplicationComponentDetailsResponse getApplicationComponentDetails(GetApplicationComponentDetailsRequest getApplicationComponentDetailsRequest) throws ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Retrieves details about an application component.
- Parameters:
getApplicationComponentDetailsRequest-- Returns:
- Result of the GetApplicationComponentDetails operation returned by the service.
- See Also:
-
getApplicationComponentDetails
default GetApplicationComponentDetailsResponse getApplicationComponentDetails(Consumer<GetApplicationComponentDetailsRequest.Builder> getApplicationComponentDetailsRequest) throws ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Retrieves details about an application component.
This is a convenience which creates an instance of the
GetApplicationComponentDetailsRequest.Builderavoiding the need to create one manually viaGetApplicationComponentDetailsRequest.builder()- Parameters:
getApplicationComponentDetailsRequest- AConsumerthat will call methods onGetApplicationComponentDetailsRequest.Builderto create a request.- Returns:
- Result of the GetApplicationComponentDetails operation returned by the service.
- See Also:
-
getApplicationComponentStrategies
default GetApplicationComponentStrategiesResponse getApplicationComponentStrategies(GetApplicationComponentStrategiesRequest getApplicationComponentStrategiesRequest) throws ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Retrieves a list of all the recommended strategies and tools for an application component running on a server.
- Parameters:
getApplicationComponentStrategiesRequest-- Returns:
- Result of the GetApplicationComponentStrategies operation returned by the service.
- See Also:
-
getApplicationComponentStrategies
default GetApplicationComponentStrategiesResponse getApplicationComponentStrategies(Consumer<GetApplicationComponentStrategiesRequest.Builder> getApplicationComponentStrategiesRequest) throws ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException 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.Builderavoiding the need to create one manually viaGetApplicationComponentStrategiesRequest.builder()- Parameters:
getApplicationComponentStrategiesRequest- AConsumerthat will call methods onGetApplicationComponentStrategiesRequest.Builderto create a request.- Returns:
- Result of the GetApplicationComponentStrategies operation returned by the service.
- See Also:
-
getAssessment
default GetAssessmentResponse getAssessment(GetAssessmentRequest getAssessmentRequest) throws ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Retrieves the status of an on-going assessment.
- Parameters:
getAssessmentRequest-- Returns:
- Result of the GetAssessment operation returned by the service.
- See Also:
-
getAssessment
default GetAssessmentResponse getAssessment(Consumer<GetAssessmentRequest.Builder> getAssessmentRequest) throws ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Retrieves the status of an on-going assessment.
This is a convenience which creates an instance of the
GetAssessmentRequest.Builderavoiding the need to create one manually viaGetAssessmentRequest.builder()- Parameters:
getAssessmentRequest- AConsumerthat will call methods onGetAssessmentRequest.Builderto create a request.- Returns:
- Result of the GetAssessment operation returned by the service.
- See Also:
-
getImportFileTask
default GetImportFileTaskResponse getImportFileTask(GetImportFileTaskRequest getImportFileTaskRequest) throws ResourceNotFoundException, AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Retrieves the details about a specific import task.
- Parameters:
getImportFileTaskRequest-- Returns:
- Result of the GetImportFileTask operation returned by the service.
- See Also:
-
getImportFileTask
default GetImportFileTaskResponse getImportFileTask(Consumer<GetImportFileTaskRequest.Builder> getImportFileTaskRequest) throws ResourceNotFoundException, AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Retrieves the details about a specific import task.
This is a convenience which creates an instance of the
GetImportFileTaskRequest.Builderavoiding the need to create one manually viaGetImportFileTaskRequest.builder()- Parameters:
getImportFileTaskRequest- AConsumerthat will call methods onGetImportFileTaskRequest.Builderto create a request.- Returns:
- Result of the GetImportFileTask operation returned by the service.
- See Also:
-
getLatestAssessmentId
default GetLatestAssessmentIdResponse getLatestAssessmentId(GetLatestAssessmentIdRequest getLatestAssessmentIdRequest) throws DependencyException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Retrieve the latest ID of a specific assessment task.
- Parameters:
getLatestAssessmentIdRequest-- Returns:
- Result of the GetLatestAssessmentId operation returned by the service.
- See Also:
-
getLatestAssessmentId
default GetLatestAssessmentIdResponse getLatestAssessmentId(Consumer<GetLatestAssessmentIdRequest.Builder> getLatestAssessmentIdRequest) throws DependencyException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Retrieve the latest ID of a specific assessment task.
This is a convenience which creates an instance of the
GetLatestAssessmentIdRequest.Builderavoiding the need to create one manually viaGetLatestAssessmentIdRequest.builder()- Parameters:
getLatestAssessmentIdRequest- AConsumerthat will call methods onGetLatestAssessmentIdRequest.Builderto create a request.- Returns:
- Result of the GetLatestAssessmentId operation returned by the service.
- See Also:
-
getPortfolioPreferences
default GetPortfolioPreferencesResponse getPortfolioPreferences(GetPortfolioPreferencesRequest getPortfolioPreferencesRequest) throws ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Retrieves your migration and modernization preferences.
- Parameters:
getPortfolioPreferencesRequest-- Returns:
- Result of the GetPortfolioPreferences operation returned by the service.
- See Also:
-
getPortfolioPreferences
default GetPortfolioPreferencesResponse getPortfolioPreferences(Consumer<GetPortfolioPreferencesRequest.Builder> getPortfolioPreferencesRequest) throws ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Retrieves your migration and modernization preferences.
This is a convenience which creates an instance of the
GetPortfolioPreferencesRequest.Builderavoiding the need to create one manually viaGetPortfolioPreferencesRequest.builder()- Parameters:
getPortfolioPreferencesRequest- AConsumerthat will call methods onGetPortfolioPreferencesRequest.Builderto create a request.- Returns:
- Result of the GetPortfolioPreferences operation returned by the service.
- See Also:
-
getPortfolioSummary
default GetPortfolioSummaryResponse getPortfolioSummary(GetPortfolioSummaryRequest getPortfolioSummaryRequest) throws AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Retrieves overall summary including the number of servers to rehost and the overall number of anti-patterns.
- Parameters:
getPortfolioSummaryRequest-- Returns:
- Result of the GetPortfolioSummary operation returned by the service.
- See Also:
-
getPortfolioSummary
default GetPortfolioSummaryResponse getPortfolioSummary(Consumer<GetPortfolioSummaryRequest.Builder> getPortfolioSummaryRequest) throws AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException 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.Builderavoiding the need to create one manually viaGetPortfolioSummaryRequest.builder()- Parameters:
getPortfolioSummaryRequest- AConsumerthat will call methods onGetPortfolioSummaryRequest.Builderto create a request.- Returns:
- Result of the GetPortfolioSummary operation returned by the service.
- See Also:
-
getRecommendationReportDetails
default GetRecommendationReportDetailsResponse getRecommendationReportDetails(GetRecommendationReportDetailsRequest getRecommendationReportDetailsRequest) throws ResourceNotFoundException, AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Retrieves detailed information about the specified recommendation report.
- Parameters:
getRecommendationReportDetailsRequest-- Returns:
- Result of the GetRecommendationReportDetails operation returned by the service.
- See Also:
-
getRecommendationReportDetails
default GetRecommendationReportDetailsResponse getRecommendationReportDetails(Consumer<GetRecommendationReportDetailsRequest.Builder> getRecommendationReportDetailsRequest) throws ResourceNotFoundException, AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Retrieves detailed information about the specified recommendation report.
This is a convenience which creates an instance of the
GetRecommendationReportDetailsRequest.Builderavoiding the need to create one manually viaGetRecommendationReportDetailsRequest.builder()- Parameters:
getRecommendationReportDetailsRequest- AConsumerthat will call methods onGetRecommendationReportDetailsRequest.Builderto create a request.- Returns:
- Result of the GetRecommendationReportDetails operation returned by the service.
- See Also:
-
getServerDetails
default GetServerDetailsResponse getServerDetails(GetServerDetailsRequest getServerDetailsRequest) throws ResourceNotFoundException, AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Retrieves detailed information about a specified server.
- Parameters:
getServerDetailsRequest-- Returns:
- Result of the GetServerDetails operation returned by the service.
- See Also:
-
getServerDetails
default GetServerDetailsResponse getServerDetails(Consumer<GetServerDetailsRequest.Builder> getServerDetailsRequest) throws ResourceNotFoundException, AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Retrieves detailed information about a specified server.
This is a convenience which creates an instance of the
GetServerDetailsRequest.Builderavoiding the need to create one manually viaGetServerDetailsRequest.builder()- Parameters:
getServerDetailsRequest- AConsumerthat will call methods onGetServerDetailsRequest.Builderto create a request.- Returns:
- Result of the GetServerDetails operation returned by the service.
- See Also:
-
getServerDetailsPaginator
default GetServerDetailsIterable getServerDetailsPaginator(GetServerDetailsRequest getServerDetailsRequest) throws ResourceNotFoundException, AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException This is a variant of
getServerDetails(software.amazon.awssdk.services.migrationhubstrategy.model.GetServerDetailsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.migrationhubstrategy.paginators.GetServerDetailsIterable responses = client.getServerDetailsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.migrationhubstrategy.paginators.GetServerDetailsIterable responses = client .getServerDetailsPaginator(request); for (software.amazon.awssdk.services.migrationhubstrategy.model.GetServerDetailsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.migrationhubstrategy.paginators.GetServerDetailsIterable responses = client.getServerDetailsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
getServerDetailsPaginator
default GetServerDetailsIterable getServerDetailsPaginator(Consumer<GetServerDetailsRequest.Builder> getServerDetailsRequest) throws ResourceNotFoundException, AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException This is a variant of
getServerDetails(software.amazon.awssdk.services.migrationhubstrategy.model.GetServerDetailsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.migrationhubstrategy.paginators.GetServerDetailsIterable responses = client.getServerDetailsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.migrationhubstrategy.paginators.GetServerDetailsIterable responses = client .getServerDetailsPaginator(request); for (software.amazon.awssdk.services.migrationhubstrategy.model.GetServerDetailsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.migrationhubstrategy.paginators.GetServerDetailsIterable responses = client.getServerDetailsPaginator(request); responses.iterator().forEachRemaining(....);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.Builderavoiding the need to create one manually viaGetServerDetailsRequest.builder()- Parameters:
getServerDetailsRequest- AConsumerthat will call methods onGetServerDetailsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getServerStrategies
default GetServerStrategiesResponse getServerStrategies(GetServerStrategiesRequest getServerStrategiesRequest) throws ResourceNotFoundException, AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Retrieves recommended strategies and tools for the specified server.
- Parameters:
getServerStrategiesRequest-- Returns:
- Result of the GetServerStrategies operation returned by the service.
- See Also:
-
getServerStrategies
default GetServerStrategiesResponse getServerStrategies(Consumer<GetServerStrategiesRequest.Builder> getServerStrategiesRequest) throws ResourceNotFoundException, AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Retrieves recommended strategies and tools for the specified server.
This is a convenience which creates an instance of the
GetServerStrategiesRequest.Builderavoiding the need to create one manually viaGetServerStrategiesRequest.builder()- Parameters:
getServerStrategiesRequest- AConsumerthat will call methods onGetServerStrategiesRequest.Builderto create a request.- Returns:
- Result of the GetServerStrategies operation returned by the service.
- See Also:
-
listAnalyzableServers
default ListAnalyzableServersResponse listAnalyzableServers(ListAnalyzableServersRequest listAnalyzableServersRequest) throws AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Retrieves a list of all the servers fetched from customer vCenter using Strategy Recommendation Collector.
- Parameters:
listAnalyzableServersRequest- Represents input for ListAnalyzableServers operation.- Returns:
- Result of the ListAnalyzableServers operation returned by the service.
- See Also:
-
listAnalyzableServers
default ListAnalyzableServersResponse listAnalyzableServers(Consumer<ListAnalyzableServersRequest.Builder> listAnalyzableServersRequest) throws AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException 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.Builderavoiding the need to create one manually viaListAnalyzableServersRequest.builder()- Parameters:
listAnalyzableServersRequest- AConsumerthat will call methods onListAnalyzableServersRequest.Builderto create a request. Represents input for ListAnalyzableServers operation.- Returns:
- Result of the ListAnalyzableServers operation returned by the service.
- See Also:
-
listAnalyzableServersPaginator
default ListAnalyzableServersIterable listAnalyzableServersPaginator(ListAnalyzableServersRequest listAnalyzableServersRequest) throws AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException This is a variant of
listAnalyzableServers(software.amazon.awssdk.services.migrationhubstrategy.model.ListAnalyzableServersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListAnalyzableServersIterable responses = client.listAnalyzableServersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.migrationhubstrategy.paginators.ListAnalyzableServersIterable responses = client .listAnalyzableServersPaginator(request); for (software.amazon.awssdk.services.migrationhubstrategy.model.ListAnalyzableServersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListAnalyzableServersIterable responses = client.listAnalyzableServersPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listAnalyzableServersPaginator
default ListAnalyzableServersIterable listAnalyzableServersPaginator(Consumer<ListAnalyzableServersRequest.Builder> listAnalyzableServersRequest) throws AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException This is a variant of
listAnalyzableServers(software.amazon.awssdk.services.migrationhubstrategy.model.ListAnalyzableServersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListAnalyzableServersIterable responses = client.listAnalyzableServersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.migrationhubstrategy.paginators.ListAnalyzableServersIterable responses = client .listAnalyzableServersPaginator(request); for (software.amazon.awssdk.services.migrationhubstrategy.model.ListAnalyzableServersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListAnalyzableServersIterable responses = client.listAnalyzableServersPaginator(request); responses.iterator().forEachRemaining(....);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.Builderavoiding the need to create one manually viaListAnalyzableServersRequest.builder()- Parameters:
listAnalyzableServersRequest- AConsumerthat will call methods onListAnalyzableServersRequest.Builderto create a request. Represents input for ListAnalyzableServers operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listApplicationComponents
default ListApplicationComponentsResponse listApplicationComponents(ListApplicationComponentsRequest listApplicationComponentsRequest) throws AccessDeniedException, ServiceLinkedRoleLockClientException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Retrieves a list of all the application components (processes).
- Parameters:
listApplicationComponentsRequest-- Returns:
- Result of the ListApplicationComponents operation returned by the service.
- See Also:
-
listApplicationComponents
default ListApplicationComponentsResponse listApplicationComponents(Consumer<ListApplicationComponentsRequest.Builder> listApplicationComponentsRequest) throws AccessDeniedException, ServiceLinkedRoleLockClientException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Retrieves a list of all the application components (processes).
This is a convenience which creates an instance of the
ListApplicationComponentsRequest.Builderavoiding the need to create one manually viaListApplicationComponentsRequest.builder()- Parameters:
listApplicationComponentsRequest- AConsumerthat will call methods onListApplicationComponentsRequest.Builderto create a request.- Returns:
- Result of the ListApplicationComponents operation returned by the service.
- See Also:
-
listApplicationComponentsPaginator
default ListApplicationComponentsIterable listApplicationComponentsPaginator(ListApplicationComponentsRequest listApplicationComponentsRequest) throws AccessDeniedException, ServiceLinkedRoleLockClientException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException This is a variant of
listApplicationComponents(software.amazon.awssdk.services.migrationhubstrategy.model.ListApplicationComponentsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListApplicationComponentsIterable responses = client.listApplicationComponentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.migrationhubstrategy.paginators.ListApplicationComponentsIterable responses = client .listApplicationComponentsPaginator(request); for (software.amazon.awssdk.services.migrationhubstrategy.model.ListApplicationComponentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListApplicationComponentsIterable responses = client.listApplicationComponentsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listApplicationComponentsPaginator
default ListApplicationComponentsIterable listApplicationComponentsPaginator(Consumer<ListApplicationComponentsRequest.Builder> listApplicationComponentsRequest) throws AccessDeniedException, ServiceLinkedRoleLockClientException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException This is a variant of
listApplicationComponents(software.amazon.awssdk.services.migrationhubstrategy.model.ListApplicationComponentsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListApplicationComponentsIterable responses = client.listApplicationComponentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.migrationhubstrategy.paginators.ListApplicationComponentsIterable responses = client .listApplicationComponentsPaginator(request); for (software.amazon.awssdk.services.migrationhubstrategy.model.ListApplicationComponentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListApplicationComponentsIterable responses = client.listApplicationComponentsPaginator(request); responses.iterator().forEachRemaining(....);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.Builderavoiding the need to create one manually viaListApplicationComponentsRequest.builder()- Parameters:
listApplicationComponentsRequest- AConsumerthat will call methods onListApplicationComponentsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listCollectors
default ListCollectorsResponse listCollectors(ListCollectorsRequest listCollectorsRequest) throws AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Retrieves a list of all the installed collectors.
- Parameters:
listCollectorsRequest-- Returns:
- Result of the ListCollectors operation returned by the service.
- See Also:
-
listCollectors
default ListCollectorsResponse listCollectors(Consumer<ListCollectorsRequest.Builder> listCollectorsRequest) throws AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Retrieves a list of all the installed collectors.
This is a convenience which creates an instance of the
ListCollectorsRequest.Builderavoiding the need to create one manually viaListCollectorsRequest.builder()- Parameters:
listCollectorsRequest- AConsumerthat will call methods onListCollectorsRequest.Builderto create a request.- Returns:
- Result of the ListCollectors operation returned by the service.
- See Also:
-
listCollectorsPaginator
default ListCollectorsIterable listCollectorsPaginator(ListCollectorsRequest listCollectorsRequest) throws AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException This is a variant of
listCollectors(software.amazon.awssdk.services.migrationhubstrategy.model.ListCollectorsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListCollectorsIterable responses = client.listCollectorsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.migrationhubstrategy.paginators.ListCollectorsIterable responses = client .listCollectorsPaginator(request); for (software.amazon.awssdk.services.migrationhubstrategy.model.ListCollectorsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListCollectorsIterable responses = client.listCollectorsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listCollectorsPaginator
default ListCollectorsIterable listCollectorsPaginator(Consumer<ListCollectorsRequest.Builder> listCollectorsRequest) throws AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException This is a variant of
listCollectors(software.amazon.awssdk.services.migrationhubstrategy.model.ListCollectorsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListCollectorsIterable responses = client.listCollectorsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.migrationhubstrategy.paginators.ListCollectorsIterable responses = client .listCollectorsPaginator(request); for (software.amazon.awssdk.services.migrationhubstrategy.model.ListCollectorsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListCollectorsIterable responses = client.listCollectorsPaginator(request); responses.iterator().forEachRemaining(....);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.Builderavoiding the need to create one manually viaListCollectorsRequest.builder()- Parameters:
listCollectorsRequest- AConsumerthat will call methods onListCollectorsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listImportFileTask
default ListImportFileTaskResponse listImportFileTask(ListImportFileTaskRequest listImportFileTaskRequest) throws AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Retrieves a list of all the imports performed.
- Parameters:
listImportFileTaskRequest-- Returns:
- Result of the ListImportFileTask operation returned by the service.
- See Also:
-
listImportFileTask
default ListImportFileTaskResponse listImportFileTask(Consumer<ListImportFileTaskRequest.Builder> listImportFileTaskRequest) throws AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Retrieves a list of all the imports performed.
This is a convenience which creates an instance of the
ListImportFileTaskRequest.Builderavoiding the need to create one manually viaListImportFileTaskRequest.builder()- Parameters:
listImportFileTaskRequest- AConsumerthat will call methods onListImportFileTaskRequest.Builderto create a request.- Returns:
- Result of the ListImportFileTask operation returned by the service.
- See Also:
-
listImportFileTaskPaginator
default ListImportFileTaskIterable listImportFileTaskPaginator(ListImportFileTaskRequest listImportFileTaskRequest) throws AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException This is a variant of
listImportFileTask(software.amazon.awssdk.services.migrationhubstrategy.model.ListImportFileTaskRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListImportFileTaskIterable responses = client.listImportFileTaskPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.migrationhubstrategy.paginators.ListImportFileTaskIterable responses = client .listImportFileTaskPaginator(request); for (software.amazon.awssdk.services.migrationhubstrategy.model.ListImportFileTaskResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListImportFileTaskIterable responses = client.listImportFileTaskPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listImportFileTaskPaginator
default ListImportFileTaskIterable listImportFileTaskPaginator(Consumer<ListImportFileTaskRequest.Builder> listImportFileTaskRequest) throws AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException This is a variant of
listImportFileTask(software.amazon.awssdk.services.migrationhubstrategy.model.ListImportFileTaskRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListImportFileTaskIterable responses = client.listImportFileTaskPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.migrationhubstrategy.paginators.ListImportFileTaskIterable responses = client .listImportFileTaskPaginator(request); for (software.amazon.awssdk.services.migrationhubstrategy.model.ListImportFileTaskResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListImportFileTaskIterable responses = client.listImportFileTaskPaginator(request); responses.iterator().forEachRemaining(....);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.Builderavoiding the need to create one manually viaListImportFileTaskRequest.builder()- Parameters:
listImportFileTaskRequest- AConsumerthat will call methods onListImportFileTaskRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listServers
default ListServersResponse listServers(ListServersRequest listServersRequest) throws AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Returns a list of all the servers.
- Parameters:
listServersRequest-- Returns:
- Result of the ListServers operation returned by the service.
- See Also:
-
listServers
default ListServersResponse listServers(Consumer<ListServersRequest.Builder> listServersRequest) throws AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Returns a list of all the servers.
This is a convenience which creates an instance of the
ListServersRequest.Builderavoiding the need to create one manually viaListServersRequest.builder()- Parameters:
listServersRequest- AConsumerthat will call methods onListServersRequest.Builderto create a request.- Returns:
- Result of the ListServers operation returned by the service.
- See Also:
-
listServersPaginator
default ListServersIterable listServersPaginator(ListServersRequest listServersRequest) throws AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException This is a variant of
listServers(software.amazon.awssdk.services.migrationhubstrategy.model.ListServersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListServersIterable responses = client.listServersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.migrationhubstrategy.paginators.ListServersIterable responses = client .listServersPaginator(request); for (software.amazon.awssdk.services.migrationhubstrategy.model.ListServersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListServersIterable responses = client.listServersPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listServersPaginator
default ListServersIterable listServersPaginator(Consumer<ListServersRequest.Builder> listServersRequest) throws AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException This is a variant of
listServers(software.amazon.awssdk.services.migrationhubstrategy.model.ListServersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListServersIterable responses = client.listServersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.migrationhubstrategy.paginators.ListServersIterable responses = client .listServersPaginator(request); for (software.amazon.awssdk.services.migrationhubstrategy.model.ListServersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.migrationhubstrategy.paginators.ListServersIterable responses = client.listServersPaginator(request); responses.iterator().forEachRemaining(....);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.Builderavoiding the need to create one manually viaListServersRequest.builder()- Parameters:
listServersRequest- AConsumerthat will call methods onListServersRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
putPortfolioPreferences
default PutPortfolioPreferencesResponse putPortfolioPreferences(PutPortfolioPreferencesRequest putPortfolioPreferencesRequest) throws AccessDeniedException, ThrottlingException, ValidationException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Saves the specified migration and modernization preferences.
- Parameters:
putPortfolioPreferencesRequest-- Returns:
- Result of the PutPortfolioPreferences operation returned by the service.
- See Also:
-
putPortfolioPreferences
default PutPortfolioPreferencesResponse putPortfolioPreferences(Consumer<PutPortfolioPreferencesRequest.Builder> putPortfolioPreferencesRequest) throws AccessDeniedException, ThrottlingException, ValidationException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Saves the specified migration and modernization preferences.
This is a convenience which creates an instance of the
PutPortfolioPreferencesRequest.Builderavoiding the need to create one manually viaPutPortfolioPreferencesRequest.builder()- Parameters:
putPortfolioPreferencesRequest- AConsumerthat will call methods onPutPortfolioPreferencesRequest.Builderto create a request.- Returns:
- Result of the PutPortfolioPreferences operation returned by the service.
- See Also:
-
startAssessment
default StartAssessmentResponse startAssessment(StartAssessmentRequest startAssessmentRequest) throws AccessDeniedException, ThrottlingException, ServiceQuotaExceededException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Starts the assessment of an on-premises environment.
- Parameters:
startAssessmentRequest-- Returns:
- Result of the StartAssessment operation returned by the service.
- See Also:
-
startAssessment
default StartAssessmentResponse startAssessment(Consumer<StartAssessmentRequest.Builder> startAssessmentRequest) throws AccessDeniedException, ThrottlingException, ServiceQuotaExceededException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Starts the assessment of an on-premises environment.
This is a convenience which creates an instance of the
StartAssessmentRequest.Builderavoiding the need to create one manually viaStartAssessmentRequest.builder()- Parameters:
startAssessmentRequest- AConsumerthat will call methods onStartAssessmentRequest.Builderto create a request.- Returns:
- Result of the StartAssessment operation returned by the service.
- See Also:
-
startImportFileTask
default StartImportFileTaskResponse startImportFileTask(StartImportFileTaskRequest startImportFileTaskRequest) throws AccessDeniedException, ThrottlingException, ServiceQuotaExceededException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Starts a file import.
- Parameters:
startImportFileTaskRequest-- Returns:
- Result of the StartImportFileTask operation returned by the service.
- See Also:
-
startImportFileTask
default StartImportFileTaskResponse startImportFileTask(Consumer<StartImportFileTaskRequest.Builder> startImportFileTaskRequest) throws AccessDeniedException, ThrottlingException, ServiceQuotaExceededException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Starts a file import.
This is a convenience which creates an instance of the
StartImportFileTaskRequest.Builderavoiding the need to create one manually viaStartImportFileTaskRequest.builder()- Parameters:
startImportFileTaskRequest- AConsumerthat will call methods onStartImportFileTaskRequest.Builderto create a request.- Returns:
- Result of the StartImportFileTask operation returned by the service.
- See Also:
-
startRecommendationReportGeneration
default StartRecommendationReportGenerationResponse startRecommendationReportGeneration(StartRecommendationReportGenerationRequest startRecommendationReportGenerationRequest) throws AccessDeniedException, ThrottlingException, ValidationException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Starts generating a recommendation report.
- Parameters:
startRecommendationReportGenerationRequest-- Returns:
- Result of the StartRecommendationReportGeneration operation returned by the service.
- See Also:
-
startRecommendationReportGeneration
default StartRecommendationReportGenerationResponse startRecommendationReportGeneration(Consumer<StartRecommendationReportGenerationRequest.Builder> startRecommendationReportGenerationRequest) throws AccessDeniedException, ThrottlingException, ValidationException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Starts generating a recommendation report.
This is a convenience which creates an instance of the
StartRecommendationReportGenerationRequest.Builderavoiding the need to create one manually viaStartRecommendationReportGenerationRequest.builder()- Parameters:
startRecommendationReportGenerationRequest- AConsumerthat will call methods onStartRecommendationReportGenerationRequest.Builderto create a request.- Returns:
- Result of the StartRecommendationReportGeneration operation returned by the service.
- See Also:
-
stopAssessment
default StopAssessmentResponse stopAssessment(StopAssessmentRequest stopAssessmentRequest) throws AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Stops the assessment of an on-premises environment.
- Parameters:
stopAssessmentRequest-- Returns:
- Result of the StopAssessment operation returned by the service.
- See Also:
-
stopAssessment
default StopAssessmentResponse stopAssessment(Consumer<StopAssessmentRequest.Builder> stopAssessmentRequest) throws AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Stops the assessment of an on-premises environment.
This is a convenience which creates an instance of the
StopAssessmentRequest.Builderavoiding the need to create one manually viaStopAssessmentRequest.builder()- Parameters:
stopAssessmentRequest- AConsumerthat will call methods onStopAssessmentRequest.Builderto create a request.- Returns:
- Result of the StopAssessment operation returned by the service.
- See Also:
-
updateApplicationComponentConfig
default UpdateApplicationComponentConfigResponse updateApplicationComponentConfig(UpdateApplicationComponentConfigRequest updateApplicationComponentConfigRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Updates the configuration of an application component.
- Parameters:
updateApplicationComponentConfigRequest-- Returns:
- Result of the UpdateApplicationComponentConfig operation returned by the service.
- See Also:
-
updateApplicationComponentConfig
default UpdateApplicationComponentConfigResponse updateApplicationComponentConfig(Consumer<UpdateApplicationComponentConfigRequest.Builder> updateApplicationComponentConfigRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Updates the configuration of an application component.
This is a convenience which creates an instance of the
UpdateApplicationComponentConfigRequest.Builderavoiding the need to create one manually viaUpdateApplicationComponentConfigRequest.builder()- Parameters:
updateApplicationComponentConfigRequest- AConsumerthat will call methods onUpdateApplicationComponentConfigRequest.Builderto create a request.- Returns:
- Result of the UpdateApplicationComponentConfig operation returned by the service.
- See Also:
-
updateServerConfig
default UpdateServerConfigResponse updateServerConfig(UpdateServerConfigRequest updateServerConfigRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Updates the configuration of the specified server.
- Parameters:
updateServerConfigRequest-- Returns:
- Result of the UpdateServerConfig operation returned by the service.
- See Also:
-
updateServerConfig
default UpdateServerConfigResponse updateServerConfig(Consumer<UpdateServerConfigRequest.Builder> updateServerConfigRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MigrationHubStrategyException Updates the configuration of the specified server.
This is a convenience which creates an instance of the
UpdateServerConfigRequest.Builderavoiding the need to create one manually viaUpdateServerConfigRequest.builder()- Parameters:
updateServerConfigRequest- AConsumerthat will call methods onUpdateServerConfigRequest.Builderto create a request.- Returns:
- Result of the UpdateServerConfig operation returned by the service.
- See Also:
-
create
Create aMigrationHubStrategyClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aMigrationHubStrategyClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-