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 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 aMigrationHubStrategyClient
.static MigrationHubStrategyClient
create()
Create aMigrationHubStrategyClient
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 GetAssessmentResponse
getAssessment
(Consumer<GetAssessmentRequest.Builder> getAssessmentRequest) Retrieves the status of an on-going assessment.default GetAssessmentResponse
getAssessment
(GetAssessmentRequest getAssessmentRequest) Retrieves the status of an on-going assessment.default GetImportFileTaskResponse
getImportFileTask
(Consumer<GetImportFileTaskRequest.Builder> getImportFileTaskRequest) Retrieves the details about a specific import task.default GetImportFileTaskResponse
getImportFileTask
(GetImportFileTaskRequest getImportFileTaskRequest) Retrieves the details about a specific import task.default GetLatestAssessmentIdResponse
getLatestAssessmentId
(Consumer<GetLatestAssessmentIdRequest.Builder> getLatestAssessmentIdRequest) Retrieve the latest ID of a specific assessment task.default GetLatestAssessmentIdResponse
getLatestAssessmentId
(GetLatestAssessmentIdRequest getLatestAssessmentIdRequest) Retrieve the latest ID of a specific assessment task.default GetPortfolioPreferencesResponse
getPortfolioPreferences
(Consumer<GetPortfolioPreferencesRequest.Builder> getPortfolioPreferencesRequest) Retrieves your migration and modernization preferences.default GetPortfolioPreferencesResponse
getPortfolioPreferences
(GetPortfolioPreferencesRequest getPortfolioPreferencesRequest) Retrieves your migration and modernization preferences.default GetPortfolioSummaryResponse
getPortfolioSummary
(Consumer<GetPortfolioSummaryRequest.Builder> getPortfolioSummaryRequest) Retrieves overall summary including the number of servers to rehost and the overall number of anti-patterns.default GetPortfolioSummaryResponse
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.default GetServerDetailsResponse
getServerDetails
(Consumer<GetServerDetailsRequest.Builder> getServerDetailsRequest) Retrieves detailed information about a specified server.default GetServerDetailsResponse
getServerDetails
(GetServerDetailsRequest getServerDetailsRequest) Retrieves detailed information about a specified server.default GetServerDetailsIterable
getServerDetailsPaginator
(Consumer<GetServerDetailsRequest.Builder> getServerDetailsRequest) This is a variant ofgetServerDetails(software.amazon.awssdk.services.migrationhubstrategy.model.GetServerDetailsRequest)
operation.default GetServerDetailsIterable
getServerDetailsPaginator
(GetServerDetailsRequest getServerDetailsRequest) This is a variant ofgetServerDetails(software.amazon.awssdk.services.migrationhubstrategy.model.GetServerDetailsRequest)
operation.default GetServerStrategiesResponse
getServerStrategies
(Consumer<GetServerStrategiesRequest.Builder> getServerStrategiesRequest) Retrieves recommended strategies and tools for the specified server.default GetServerStrategiesResponse
getServerStrategies
(GetServerStrategiesRequest getServerStrategiesRequest) Retrieves recommended strategies and tools for the specified server.default ListAnalyzableServersResponse
listAnalyzableServers
(Consumer<ListAnalyzableServersRequest.Builder> listAnalyzableServersRequest) Retrieves a list of all the servers fetched from customer vCenter using Strategy Recommendation Collector.default ListAnalyzableServersResponse
listAnalyzableServers
(ListAnalyzableServersRequest listAnalyzableServersRequest) Retrieves a list of all the servers fetched from customer vCenter using Strategy Recommendation Collector.default ListAnalyzableServersIterable
listAnalyzableServersPaginator
(Consumer<ListAnalyzableServersRequest.Builder> listAnalyzableServersRequest) This is a variant oflistAnalyzableServers(software.amazon.awssdk.services.migrationhubstrategy.model.ListAnalyzableServersRequest)
operation.default ListAnalyzableServersIterable
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 ListCollectorsResponse
listCollectors
(Consumer<ListCollectorsRequest.Builder> listCollectorsRequest) Retrieves a list of all the installed collectors.default ListCollectorsResponse
listCollectors
(ListCollectorsRequest listCollectorsRequest) Retrieves a list of all the installed collectors.default ListCollectorsIterable
listCollectorsPaginator
(Consumer<ListCollectorsRequest.Builder> listCollectorsRequest) This is a variant oflistCollectors(software.amazon.awssdk.services.migrationhubstrategy.model.ListCollectorsRequest)
operation.default ListCollectorsIterable
listCollectorsPaginator
(ListCollectorsRequest listCollectorsRequest) This is a variant oflistCollectors(software.amazon.awssdk.services.migrationhubstrategy.model.ListCollectorsRequest)
operation.default ListImportFileTaskResponse
listImportFileTask
(Consumer<ListImportFileTaskRequest.Builder> listImportFileTaskRequest) Retrieves a list of all the imports performed.default ListImportFileTaskResponse
listImportFileTask
(ListImportFileTaskRequest listImportFileTaskRequest) Retrieves a list of all the imports performed.default ListImportFileTaskIterable
listImportFileTaskPaginator
(Consumer<ListImportFileTaskRequest.Builder> listImportFileTaskRequest) This is a variant oflistImportFileTask(software.amazon.awssdk.services.migrationhubstrategy.model.ListImportFileTaskRequest)
operation.default ListImportFileTaskIterable
listImportFileTaskPaginator
(ListImportFileTaskRequest listImportFileTaskRequest) This is a variant oflistImportFileTask(software.amazon.awssdk.services.migrationhubstrategy.model.ListImportFileTaskRequest)
operation.default ListServersResponse
listServers
(Consumer<ListServersRequest.Builder> listServersRequest) Returns a list of all the servers.default ListServersResponse
listServers
(ListServersRequest listServersRequest) Returns a list of all the servers.default ListServersIterable
listServersPaginator
(Consumer<ListServersRequest.Builder> listServersRequest) This is a variant oflistServers(software.amazon.awssdk.services.migrationhubstrategy.model.ListServersRequest)
operation.default ListServersIterable
listServersPaginator
(ListServersRequest listServersRequest) This is a variant oflistServers(software.amazon.awssdk.services.migrationhubstrategy.model.ListServersRequest)
operation.default PutPortfolioPreferencesResponse
putPortfolioPreferences
(Consumer<PutPortfolioPreferencesRequest.Builder> putPortfolioPreferencesRequest) Saves the specified migration and modernization preferences.default PutPortfolioPreferencesResponse
putPortfolioPreferences
(PutPortfolioPreferencesRequest putPortfolioPreferencesRequest) Saves the specified migration and modernization preferences.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadata
default StartAssessmentResponse
startAssessment
(Consumer<StartAssessmentRequest.Builder> startAssessmentRequest) Starts the assessment of an on-premises environment.default StartAssessmentResponse
startAssessment
(StartAssessmentRequest startAssessmentRequest) Starts the assessment of an on-premises environment.default StartImportFileTaskResponse
startImportFileTask
(Consumer<StartImportFileTaskRequest.Builder> startImportFileTaskRequest) Starts a file import.default StartImportFileTaskResponse
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 StopAssessmentResponse
stopAssessment
(Consumer<StopAssessmentRequest.Builder> stopAssessmentRequest) Stops the assessment of an on-premises environment.default 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.default UpdateServerConfigResponse
updateServerConfig
(Consumer<UpdateServerConfigRequest.Builder> updateServerConfigRequest) Updates the configuration of the specified server.default UpdateServerConfigResponse
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 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.Builder
avoiding the need to create one manually viaGetApplicationComponentDetailsRequest.builder()
- Parameters:
getApplicationComponentDetailsRequest
- AConsumer
that will call methods onGetApplicationComponentDetailsRequest.Builder
to 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.Builder
avoiding the need to create one manually viaGetApplicationComponentStrategiesRequest.builder()
- Parameters:
getApplicationComponentStrategiesRequest
- AConsumer
that will call methods onGetApplicationComponentStrategiesRequest.Builder
to 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.Builder
avoiding the need to create one manually viaGetAssessmentRequest.builder()
- Parameters:
getAssessmentRequest
- AConsumer
that will call methods onGetAssessmentRequest.Builder
to 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.Builder
avoiding the need to create one manually viaGetImportFileTaskRequest.builder()
- Parameters:
getImportFileTaskRequest
- AConsumer
that will call methods onGetImportFileTaskRequest.Builder
to 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.Builder
avoiding the need to create one manually viaGetLatestAssessmentIdRequest.builder()
- Parameters:
getLatestAssessmentIdRequest
- AConsumer
that will call methods onGetLatestAssessmentIdRequest.Builder
to 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.Builder
avoiding the need to create one manually viaGetPortfolioPreferencesRequest.builder()
- Parameters:
getPortfolioPreferencesRequest
- AConsumer
that will call methods onGetPortfolioPreferencesRequest.Builder
to 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.Builder
avoiding the need to create one manually viaGetPortfolioSummaryRequest.builder()
- Parameters:
getPortfolioSummaryRequest
- AConsumer
that will call methods onGetPortfolioSummaryRequest.Builder
to 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.Builder
avoiding the need to create one manually viaGetRecommendationReportDetailsRequest.builder()
- Parameters:
getRecommendationReportDetailsRequest
- AConsumer
that will call methods onGetRecommendationReportDetailsRequest.Builder
to 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.Builder
avoiding the need to create one manually viaGetServerDetailsRequest.builder()
- Parameters:
getServerDetailsRequest
- AConsumer
that will call methods onGetServerDetailsRequest.Builder
to 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 Streamsoftware.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 Streamsoftware.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.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 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.Builder
avoiding the need to create one manually viaGetServerStrategiesRequest.builder()
- Parameters:
getServerStrategiesRequest
- AConsumer
that will call methods onGetServerStrategiesRequest.Builder
to 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.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:
- 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 Streamsoftware.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 Streamsoftware.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.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 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.Builder
avoiding the need to create one manually viaListApplicationComponentsRequest.builder()
- Parameters:
listApplicationComponentsRequest
- AConsumer
that will call methods onListApplicationComponentsRequest.Builder
to 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 Streamsoftware.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 Streamsoftware.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.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 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.Builder
avoiding the need to create one manually viaListCollectorsRequest.builder()
- Parameters:
listCollectorsRequest
- AConsumer
that will call methods onListCollectorsRequest.Builder
to 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 Streamsoftware.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 Streamsoftware.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.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 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.Builder
avoiding the need to create one manually viaListImportFileTaskRequest.builder()
- Parameters:
listImportFileTaskRequest
- AConsumer
that will call methods onListImportFileTaskRequest.Builder
to 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 Streamsoftware.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 Streamsoftware.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.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 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.Builder
avoiding the need to create one manually viaListServersRequest.builder()
- Parameters:
listServersRequest
- AConsumer
that will call methods onListServersRequest.Builder
to 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 Streamsoftware.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 Streamsoftware.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.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 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.Builder
avoiding the need to create one manually viaPutPortfolioPreferencesRequest.builder()
- Parameters:
putPortfolioPreferencesRequest
- AConsumer
that will call methods onPutPortfolioPreferencesRequest.Builder
to 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.Builder
avoiding the need to create one manually viaStartAssessmentRequest.builder()
- Parameters:
startAssessmentRequest
- AConsumer
that will call methods onStartAssessmentRequest.Builder
to 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.Builder
avoiding the need to create one manually viaStartImportFileTaskRequest.builder()
- Parameters:
startImportFileTaskRequest
- AConsumer
that will call methods onStartImportFileTaskRequest.Builder
to 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.Builder
avoiding the need to create one manually viaStartRecommendationReportGenerationRequest.builder()
- Parameters:
startRecommendationReportGenerationRequest
- AConsumer
that will call methods onStartRecommendationReportGenerationRequest.Builder
to 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.Builder
avoiding the need to create one manually viaStopAssessmentRequest.builder()
- Parameters:
stopAssessmentRequest
- AConsumer
that will call methods onStopAssessmentRequest.Builder
to 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.Builder
avoiding the need to create one manually viaUpdateApplicationComponentConfigRequest.builder()
- Parameters:
updateApplicationComponentConfigRequest
- AConsumer
that will call methods onUpdateApplicationComponentConfigRequest.Builder
to 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.Builder
avoiding the need to create one manually viaUpdateServerConfigRequest.builder()
- Parameters:
updateServerConfigRequest
- AConsumer
that will call methods onUpdateServerConfigRequest.Builder
to create a request.- Returns:
- Result of the UpdateServerConfig operation returned by the service.
- See Also:
-
create
Create aMigrationHubStrategyClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aMigrationHubStrategyClient
. -
serviceMetadata
-
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
-