/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.migrationhubstrategyrecommendations; import org.w3c.dom.*; import java.net.*; import java.util.*; import javax.annotation.Generated; import org.apache.commons.logging.*; import com.amazonaws.*; import com.amazonaws.annotation.SdkInternalApi; import com.amazonaws.auth.*; import com.amazonaws.handlers.*; import com.amazonaws.http.*; import com.amazonaws.internal.*; import com.amazonaws.internal.auth.*; import com.amazonaws.metrics.*; import com.amazonaws.regions.*; import com.amazonaws.transform.*; import com.amazonaws.util.*; import com.amazonaws.protocol.json.*; import com.amazonaws.util.AWSRequestMetrics.Field; import com.amazonaws.annotation.ThreadSafe; import com.amazonaws.client.AwsSyncClientParams; import com.amazonaws.client.builder.AdvancedConfig; import com.amazonaws.services.migrationhubstrategyrecommendations.AWSMigrationHubStrategyRecommendationsClientBuilder; import com.amazonaws.AmazonServiceException; import com.amazonaws.services.migrationhubstrategyrecommendations.model.*; import com.amazonaws.services.migrationhubstrategyrecommendations.model.transform.*; /** * Client for accessing Migration Hub Strategy Recommendations. All service calls made using this client are blocking, * and will not return until the service call completes. *
*
*
* 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. *
* */ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AWSMigrationHubStrategyRecommendationsClient extends AmazonWebServiceClient implements AWSMigrationHubStrategyRecommendations { /** Provider for AWS credentials. */ private final AWSCredentialsProvider awsCredentialsProvider; private static final Log log = LogFactory.getLog(AWSMigrationHubStrategyRecommendations.class); /** Default signing name for the service. */ private static final String DEFAULT_SIGNING_NAME = "migrationhub-strategy"; /** Client configuration factory providing ClientConfigurations tailored to this client */ protected static final ClientConfigurationFactory configFactory = new ClientConfigurationFactory(); private final AdvancedConfig advancedConfig; private static final com.amazonaws.protocol.json.SdkJsonProtocolFactory protocolFactory = new com.amazonaws.protocol.json.SdkJsonProtocolFactory( new JsonClientMetadata() .withProtocolVersion("1.1") .withSupportsCbor(false) .withSupportsIon(false) .withContentTypeOverride("application/json") .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ThrottlingException").withExceptionUnmarshaller( com.amazonaws.services.migrationhubstrategyrecommendations.model.transform.ThrottlingExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ServiceQuotaExceededException").withExceptionUnmarshaller( com.amazonaws.services.migrationhubstrategyrecommendations.model.transform.ServiceQuotaExceededExceptionUnmarshaller .getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("InternalServerException").withExceptionUnmarshaller( com.amazonaws.services.migrationhubstrategyrecommendations.model.transform.InternalServerExceptionUnmarshaller .getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("AccessDeniedException").withExceptionUnmarshaller( com.amazonaws.services.migrationhubstrategyrecommendations.model.transform.AccessDeniedExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ConflictException").withExceptionUnmarshaller( com.amazonaws.services.migrationhubstrategyrecommendations.model.transform.ConflictExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ResourceNotFoundException").withExceptionUnmarshaller( com.amazonaws.services.migrationhubstrategyrecommendations.model.transform.ResourceNotFoundExceptionUnmarshaller .getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("DependencyException").withExceptionUnmarshaller( com.amazonaws.services.migrationhubstrategyrecommendations.model.transform.DependencyExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ValidationException").withExceptionUnmarshaller( com.amazonaws.services.migrationhubstrategyrecommendations.model.transform.ValidationExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ServiceLinkedRoleLockClientException").withExceptionUnmarshaller( com.amazonaws.services.migrationhubstrategyrecommendations.model.transform.ServiceLinkedRoleLockClientExceptionUnmarshaller .getInstance())) .withBaseServiceExceptionClass( com.amazonaws.services.migrationhubstrategyrecommendations.model.AWSMigrationHubStrategyRecommendationsException.class)); public static AWSMigrationHubStrategyRecommendationsClientBuilder builder() { return AWSMigrationHubStrategyRecommendationsClientBuilder.standard(); } /** * Constructs a new client to invoke service methods on Migration Hub Strategy Recommendations using the specified * parameters. * ** All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param clientParams * Object providing client parameters. */ AWSMigrationHubStrategyRecommendationsClient(AwsSyncClientParams clientParams) { this(clientParams, false); } /** * Constructs a new client to invoke service methods on Migration Hub Strategy Recommendations using the specified * parameters. * *
* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param clientParams * Object providing client parameters. */ AWSMigrationHubStrategyRecommendationsClient(AwsSyncClientParams clientParams, boolean endpointDiscoveryEnabled) { super(clientParams); this.awsCredentialsProvider = clientParams.getCredentialsProvider(); this.advancedConfig = clientParams.getAdvancedConfig(); init(); } private void init() { setServiceNameIntern(DEFAULT_SIGNING_NAME); setEndpointPrefix(ENDPOINT_PREFIX); // calling this.setEndPoint(...) will also modify the signer accordingly setEndpoint("migrationhub-strategy.us-east-1.amazonaws.com"); HandlerChainFactory chainFactory = new HandlerChainFactory(); requestHandler2s.addAll(chainFactory.newRequestHandlerChain("/com/amazonaws/services/migrationhubstrategyrecommendations/request.handlers")); requestHandler2s.addAll(chainFactory.newRequestHandler2Chain("/com/amazonaws/services/migrationhubstrategyrecommendations/request.handler2s")); requestHandler2s.addAll(chainFactory.getGlobalHandlers()); } /** *
* Retrieves details about an application component. *
* * @param getApplicationComponentDetailsRequest * @return Result of the GetApplicationComponentDetails operation returned by the service. * @throws ResourceNotFoundException * The specified ID in the request is not found. * @throws ThrottlingException * The request was denied due to request throttling. * @throws InternalServerException * The server experienced an internal error. Try again. * @sample AWSMigrationHubStrategyRecommendations.GetApplicationComponentDetails * @see AWS API Documentation */ @Override public GetApplicationComponentDetailsResult getApplicationComponentDetails(GetApplicationComponentDetailsRequest request) { request = beforeClientExecution(request); return executeGetApplicationComponentDetails(request); } @SdkInternalApi final GetApplicationComponentDetailsResult executeGetApplicationComponentDetails(GetApplicationComponentDetailsRequest getApplicationComponentDetailsRequest) { ExecutionContext executionContext = createExecutionContext(getApplicationComponentDetailsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieves a list of all the recommended strategies and tools for an application component running on a server. *
* * @param getApplicationComponentStrategiesRequest * @return Result of the GetApplicationComponentStrategies operation returned by the service. * @throws ResourceNotFoundException * The specified ID in the request is not found. * @throws ThrottlingException * The request was denied due to request throttling. * @throws InternalServerException * The server experienced an internal error. Try again. * @sample AWSMigrationHubStrategyRecommendations.GetApplicationComponentStrategies * @see AWS API Documentation */ @Override public GetApplicationComponentStrategiesResult getApplicationComponentStrategies(GetApplicationComponentStrategiesRequest request) { request = beforeClientExecution(request); return executeGetApplicationComponentStrategies(request); } @SdkInternalApi final GetApplicationComponentStrategiesResult executeGetApplicationComponentStrategies( GetApplicationComponentStrategiesRequest getApplicationComponentStrategiesRequest) { ExecutionContext executionContext = createExecutionContext(getApplicationComponentStrategiesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieves the status of an on-going assessment. *
* * @param getAssessmentRequest * @return Result of the GetAssessment operation returned by the service. * @throws ResourceNotFoundException * The specified ID in the request is not found. * @throws AccessDeniedException * The user does not have permission to perform the action. Check the AWS Identity and Access Management * (IAM) policy associated with this user. * @throws ThrottlingException * The request was denied due to request throttling. * @throws InternalServerException * The server experienced an internal error. Try again. * @sample AWSMigrationHubStrategyRecommendations.GetAssessment * @see AWS API Documentation */ @Override public GetAssessmentResult getAssessment(GetAssessmentRequest request) { request = beforeClientExecution(request); return executeGetAssessment(request); } @SdkInternalApi final GetAssessmentResult executeGetAssessment(GetAssessmentRequest getAssessmentRequest) { ExecutionContext executionContext = createExecutionContext(getAssessmentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieves the details about a specific import task. *
* * @param getImportFileTaskRequest * @return Result of the GetImportFileTask operation returned by the service. * @throws ResourceNotFoundException * The specified ID in the request is not found. * @throws AccessDeniedException * The user does not have permission to perform the action. Check the AWS Identity and Access Management * (IAM) policy associated with this user. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The request body isn't valid. * @throws InternalServerException * The server experienced an internal error. Try again. * @sample AWSMigrationHubStrategyRecommendations.GetImportFileTask * @see AWS API Documentation */ @Override public GetImportFileTaskResult getImportFileTask(GetImportFileTaskRequest request) { request = beforeClientExecution(request); return executeGetImportFileTask(request); } @SdkInternalApi final GetImportFileTaskResult executeGetImportFileTask(GetImportFileTaskRequest getImportFileTaskRequest) { ExecutionContext executionContext = createExecutionContext(getImportFileTaskRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieve the latest ID of a specific assessment task. *
* * @param getLatestAssessmentIdRequest * @return Result of the GetLatestAssessmentId operation returned by the service. * @throws DependencyException * Dependency encountered an error. * @throws AccessDeniedException * The user does not have permission to perform the action. Check the AWS Identity and Access Management * (IAM) policy associated with this user. * @throws ValidationException * The request body isn't valid. * @throws InternalServerException * The server experienced an internal error. Try again. * @sample AWSMigrationHubStrategyRecommendations.GetLatestAssessmentId * @see AWS API Documentation */ @Override public GetLatestAssessmentIdResult getLatestAssessmentId(GetLatestAssessmentIdRequest request) { request = beforeClientExecution(request); return executeGetLatestAssessmentId(request); } @SdkInternalApi final GetLatestAssessmentIdResult executeGetLatestAssessmentId(GetLatestAssessmentIdRequest getLatestAssessmentIdRequest) { ExecutionContext executionContext = createExecutionContext(getLatestAssessmentIdRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieves your migration and modernization preferences. *
* * @param getPortfolioPreferencesRequest * @return Result of the GetPortfolioPreferences operation returned by the service. * @throws ResourceNotFoundException * The specified ID in the request is not found. * @throws AccessDeniedException * The user does not have permission to perform the action. Check the AWS Identity and Access Management * (IAM) policy associated with this user. * @throws ThrottlingException * The request was denied due to request throttling. * @throws InternalServerException * The server experienced an internal error. Try again. * @sample AWSMigrationHubStrategyRecommendations.GetPortfolioPreferences * @see AWS API Documentation */ @Override public GetPortfolioPreferencesResult getPortfolioPreferences(GetPortfolioPreferencesRequest request) { request = beforeClientExecution(request); return executeGetPortfolioPreferences(request); } @SdkInternalApi final GetPortfolioPreferencesResult executeGetPortfolioPreferences(GetPortfolioPreferencesRequest getPortfolioPreferencesRequest) { ExecutionContext executionContext = createExecutionContext(getPortfolioPreferencesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieves overall summary including the number of servers to rehost and the overall number of anti-patterns. *
* * @param getPortfolioSummaryRequest * @return Result of the GetPortfolioSummary operation returned by the service. * @throws AccessDeniedException * The user does not have permission to perform the action. Check the AWS Identity and Access Management * (IAM) policy associated with this user. * @throws ThrottlingException * The request was denied due to request throttling. * @throws InternalServerException * The server experienced an internal error. Try again. * @sample AWSMigrationHubStrategyRecommendations.GetPortfolioSummary * @see AWS API Documentation */ @Override public GetPortfolioSummaryResult getPortfolioSummary(GetPortfolioSummaryRequest request) { request = beforeClientExecution(request); return executeGetPortfolioSummary(request); } @SdkInternalApi final GetPortfolioSummaryResult executeGetPortfolioSummary(GetPortfolioSummaryRequest getPortfolioSummaryRequest) { ExecutionContext executionContext = createExecutionContext(getPortfolioSummaryRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieves detailed information about the specified recommendation report. *
* * @param getRecommendationReportDetailsRequest * @return Result of the GetRecommendationReportDetails operation returned by the service. * @throws ResourceNotFoundException * The specified ID in the request is not found. * @throws AccessDeniedException * The user does not have permission to perform the action. Check the AWS Identity and Access Management * (IAM) policy associated with this user. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The request body isn't valid. * @throws InternalServerException * The server experienced an internal error. Try again. * @sample AWSMigrationHubStrategyRecommendations.GetRecommendationReportDetails * @see AWS API Documentation */ @Override public GetRecommendationReportDetailsResult getRecommendationReportDetails(GetRecommendationReportDetailsRequest request) { request = beforeClientExecution(request); return executeGetRecommendationReportDetails(request); } @SdkInternalApi final GetRecommendationReportDetailsResult executeGetRecommendationReportDetails(GetRecommendationReportDetailsRequest getRecommendationReportDetailsRequest) { ExecutionContext executionContext = createExecutionContext(getRecommendationReportDetailsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieves detailed information about a specified server. *
* * @param getServerDetailsRequest * @return Result of the GetServerDetails operation returned by the service. * @throws ResourceNotFoundException * The specified ID in the request is not found. * @throws AccessDeniedException * The user does not have permission to perform the action. Check the AWS Identity and Access Management * (IAM) policy associated with this user. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The request body isn't valid. * @throws InternalServerException * The server experienced an internal error. Try again. * @sample AWSMigrationHubStrategyRecommendations.GetServerDetails * @see AWS API Documentation */ @Override public GetServerDetailsResult getServerDetails(GetServerDetailsRequest request) { request = beforeClientExecution(request); return executeGetServerDetails(request); } @SdkInternalApi final GetServerDetailsResult executeGetServerDetails(GetServerDetailsRequest getServerDetailsRequest) { ExecutionContext executionContext = createExecutionContext(getServerDetailsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieves recommended strategies and tools for the specified server. *
* * @param getServerStrategiesRequest * @return Result of the GetServerStrategies operation returned by the service. * @throws ResourceNotFoundException * The specified ID in the request is not found. * @throws AccessDeniedException * The user does not have permission to perform the action. Check the AWS Identity and Access Management * (IAM) policy associated with this user. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The request body isn't valid. * @throws InternalServerException * The server experienced an internal error. Try again. * @sample AWSMigrationHubStrategyRecommendations.GetServerStrategies * @see AWS API Documentation */ @Override public GetServerStrategiesResult getServerStrategies(GetServerStrategiesRequest request) { request = beforeClientExecution(request); return executeGetServerStrategies(request); } @SdkInternalApi final GetServerStrategiesResult executeGetServerStrategies(GetServerStrategiesRequest getServerStrategiesRequest) { ExecutionContext executionContext = createExecutionContext(getServerStrategiesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieves a list of all the application components (processes). *
* * @param listApplicationComponentsRequest * @return Result of the ListApplicationComponents operation returned by the service. * @throws AccessDeniedException * The user does not have permission to perform the action. Check the AWS Identity and Access Management * (IAM) policy associated with this user. * @throws ServiceLinkedRoleLockClientException * Exception to indicate that the service-linked role (SLR) is locked. * @throws ValidationException * The request body isn't valid. * @throws InternalServerException * The server experienced an internal error. Try again. * @sample AWSMigrationHubStrategyRecommendations.ListApplicationComponents * @see AWS API Documentation */ @Override public ListApplicationComponentsResult listApplicationComponents(ListApplicationComponentsRequest request) { request = beforeClientExecution(request); return executeListApplicationComponents(request); } @SdkInternalApi final ListApplicationComponentsResult executeListApplicationComponents(ListApplicationComponentsRequest listApplicationComponentsRequest) { ExecutionContext executionContext = createExecutionContext(listApplicationComponentsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieves a list of all the installed collectors. *
* * @param listCollectorsRequest * @return Result of the ListCollectors operation returned by the service. * @throws AccessDeniedException * The user does not have permission to perform the action. Check the AWS Identity and Access Management * (IAM) policy associated with this user. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The request body isn't valid. * @throws InternalServerException * The server experienced an internal error. Try again. * @sample AWSMigrationHubStrategyRecommendations.ListCollectors * @see AWS API Documentation */ @Override public ListCollectorsResult listCollectors(ListCollectorsRequest request) { request = beforeClientExecution(request); return executeListCollectors(request); } @SdkInternalApi final ListCollectorsResult executeListCollectors(ListCollectorsRequest listCollectorsRequest) { ExecutionContext executionContext = createExecutionContext(listCollectorsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieves a list of all the imports performed. *
* * @param listImportFileTaskRequest * @return Result of the ListImportFileTask operation returned by the service. * @throws AccessDeniedException * The user does not have permission to perform the action. Check the AWS Identity and Access Management * (IAM) policy associated with this user. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The request body isn't valid. * @throws InternalServerException * The server experienced an internal error. Try again. * @sample AWSMigrationHubStrategyRecommendations.ListImportFileTask * @see AWS API Documentation */ @Override public ListImportFileTaskResult listImportFileTask(ListImportFileTaskRequest request) { request = beforeClientExecution(request); return executeListImportFileTask(request); } @SdkInternalApi final ListImportFileTaskResult executeListImportFileTask(ListImportFileTaskRequest listImportFileTaskRequest) { ExecutionContext executionContext = createExecutionContext(listImportFileTaskRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Returns a list of all the servers. *
* * @param listServersRequest * @return Result of the ListServers operation returned by the service. * @throws AccessDeniedException * The user does not have permission to perform the action. Check the AWS Identity and Access Management * (IAM) policy associated with this user. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The request body isn't valid. * @throws InternalServerException * The server experienced an internal error. Try again. * @sample AWSMigrationHubStrategyRecommendations.ListServers * @see AWS API Documentation */ @Override public ListServersResult listServers(ListServersRequest request) { request = beforeClientExecution(request); return executeListServers(request); } @SdkInternalApi final ListServersResult executeListServers(ListServersRequest listServersRequest) { ExecutionContext executionContext = createExecutionContext(listServersRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Saves the specified migration and modernization preferences. *
* * @param putPortfolioPreferencesRequest * @return Result of the PutPortfolioPreferences operation returned by the service. * @throws AccessDeniedException * The user does not have permission to perform the action. Check the AWS Identity and Access Management * (IAM) policy associated with this user. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The request body isn't valid. * @throws ConflictException * Exception to indicate that there is an ongoing task when a new task is created. Return when once the * existing tasks are complete. * @throws InternalServerException * The server experienced an internal error. Try again. * @sample AWSMigrationHubStrategyRecommendations.PutPortfolioPreferences * @see AWS API Documentation */ @Override public PutPortfolioPreferencesResult putPortfolioPreferences(PutPortfolioPreferencesRequest request) { request = beforeClientExecution(request); return executePutPortfolioPreferences(request); } @SdkInternalApi final PutPortfolioPreferencesResult executePutPortfolioPreferences(PutPortfolioPreferencesRequest putPortfolioPreferencesRequest) { ExecutionContext executionContext = createExecutionContext(putPortfolioPreferencesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Starts the assessment of an on-premises environment. *
* * @param startAssessmentRequest * @return Result of the StartAssessment operation returned by the service. * @throws AccessDeniedException * The user does not have permission to perform the action. Check the AWS Identity and Access Management * (IAM) policy associated with this user. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The AWS account has reached its quota of imports. Contact AWS Support to increase the quota for this * account. * @throws InternalServerException * The server experienced an internal error. Try again. * @sample AWSMigrationHubStrategyRecommendations.StartAssessment * @see AWS API Documentation */ @Override public StartAssessmentResult startAssessment(StartAssessmentRequest request) { request = beforeClientExecution(request); return executeStartAssessment(request); } @SdkInternalApi final StartAssessmentResult executeStartAssessment(StartAssessmentRequest startAssessmentRequest) { ExecutionContext executionContext = createExecutionContext(startAssessmentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Starts a file import. *
* * @param startImportFileTaskRequest * @return Result of the StartImportFileTask operation returned by the service. * @throws AccessDeniedException * The user does not have permission to perform the action. Check the AWS Identity and Access Management * (IAM) policy associated with this user. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ServiceQuotaExceededException * The AWS account has reached its quota of imports. Contact AWS Support to increase the quota for this * account. * @throws ValidationException * The request body isn't valid. * @throws InternalServerException * The server experienced an internal error. Try again. * @sample AWSMigrationHubStrategyRecommendations.StartImportFileTask * @see AWS API Documentation */ @Override public StartImportFileTaskResult startImportFileTask(StartImportFileTaskRequest request) { request = beforeClientExecution(request); return executeStartImportFileTask(request); } @SdkInternalApi final StartImportFileTaskResult executeStartImportFileTask(StartImportFileTaskRequest startImportFileTaskRequest) { ExecutionContext executionContext = createExecutionContext(startImportFileTaskRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Starts generating a recommendation report. *
* * @param startRecommendationReportGenerationRequest * @return Result of the StartRecommendationReportGeneration operation returned by the service. * @throws AccessDeniedException * The user does not have permission to perform the action. Check the AWS Identity and Access Management * (IAM) policy associated with this user. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The request body isn't valid. * @throws ConflictException * Exception to indicate that there is an ongoing task when a new task is created. Return when once the * existing tasks are complete. * @throws InternalServerException * The server experienced an internal error. Try again. * @sample AWSMigrationHubStrategyRecommendations.StartRecommendationReportGeneration * @see AWS API Documentation */ @Override public StartRecommendationReportGenerationResult startRecommendationReportGeneration(StartRecommendationReportGenerationRequest request) { request = beforeClientExecution(request); return executeStartRecommendationReportGeneration(request); } @SdkInternalApi final StartRecommendationReportGenerationResult executeStartRecommendationReportGeneration( StartRecommendationReportGenerationRequest startRecommendationReportGenerationRequest) { ExecutionContext executionContext = createExecutionContext(startRecommendationReportGenerationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Stops the assessment of an on-premises environment. *
* * @param stopAssessmentRequest * @return Result of the StopAssessment operation returned by the service. * @throws AccessDeniedException * The user does not have permission to perform the action. Check the AWS Identity and Access Management * (IAM) policy associated with this user. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The request body isn't valid. * @throws InternalServerException * The server experienced an internal error. Try again. * @sample AWSMigrationHubStrategyRecommendations.StopAssessment * @see AWS API Documentation */ @Override public StopAssessmentResult stopAssessment(StopAssessmentRequest request) { request = beforeClientExecution(request); return executeStopAssessment(request); } @SdkInternalApi final StopAssessmentResult executeStopAssessment(StopAssessmentRequest stopAssessmentRequest) { ExecutionContext executionContext = createExecutionContext(stopAssessmentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Updates the configuration of an application component. *
* * @param updateApplicationComponentConfigRequest * @return Result of the UpdateApplicationComponentConfig operation returned by the service. * @throws ResourceNotFoundException * The specified ID in the request is not found. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The request body isn't valid. * @throws InternalServerException * The server experienced an internal error. Try again. * @sample AWSMigrationHubStrategyRecommendations.UpdateApplicationComponentConfig * @see AWS API Documentation */ @Override public UpdateApplicationComponentConfigResult updateApplicationComponentConfig(UpdateApplicationComponentConfigRequest request) { request = beforeClientExecution(request); return executeUpdateApplicationComponentConfig(request); } @SdkInternalApi final UpdateApplicationComponentConfigResult executeUpdateApplicationComponentConfig( UpdateApplicationComponentConfigRequest updateApplicationComponentConfigRequest) { ExecutionContext executionContext = createExecutionContext(updateApplicationComponentConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Updates the configuration of the specified server. *
* * @param updateServerConfigRequest * @return Result of the UpdateServerConfig operation returned by the service. * @throws ResourceNotFoundException * The specified ID in the request is not found. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The request body isn't valid. * @throws InternalServerException * The server experienced an internal error. Try again. * @sample AWSMigrationHubStrategyRecommendations.UpdateServerConfig * @see AWS API Documentation */ @Override public UpdateServerConfigResult updateServerConfig(UpdateServerConfigRequest request) { request = beforeClientExecution(request); return executeUpdateServerConfig(request); } @SdkInternalApi final UpdateServerConfigResult executeUpdateServerConfig(UpdateServerConfigRequest updateServerConfigRequest) { ExecutionContext executionContext = createExecutionContext(updateServerConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request
* Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic
* information for an executed request, you should use this method to retrieve it as soon as possible after
* executing the request.
*
* @param request
* The originally executed request
*
* @return The response metadata for the specified request, or null if none is available.
*/
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
return client.getResponseMetadataForRequest(request);
}
/**
* Normal invoke with authentication. Credentials are required and may be overriden at the request level.
**/
private