All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.applicationdiscovery.DefaultApplicationDiscoveryAsyncClient Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Application Discovery Service module holds the client classes that are used for communicating with AWS Application Discovery Service.

There is a newer version: 2.28.6
Show newest version
/*
 * Copyright 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 software.amazon.awssdk.services.applicationdiscovery;

import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkInternalApi;
import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
import software.amazon.awssdk.awscore.client.handler.AwsAsyncClientHandler;
import software.amazon.awssdk.awscore.exception.AwsServiceException;
import software.amazon.awssdk.core.ApiName;
import software.amazon.awssdk.core.client.config.SdkClientConfiguration;
import software.amazon.awssdk.core.client.handler.AsyncClientHandler;
import software.amazon.awssdk.core.client.handler.ClientExecutionParams;
import software.amazon.awssdk.core.http.HttpResponseHandler;
import software.amazon.awssdk.core.util.VersionInfo;
import software.amazon.awssdk.protocols.core.ExceptionMetadata;
import software.amazon.awssdk.protocols.json.AwsJsonProtocol;
import software.amazon.awssdk.protocols.json.AwsJsonProtocolFactory;
import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
import software.amazon.awssdk.protocols.json.JsonOperationMetadata;
import software.amazon.awssdk.services.applicationdiscovery.model.ApplicationDiscoveryException;
import software.amazon.awssdk.services.applicationdiscovery.model.ApplicationDiscoveryRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.AssociateConfigurationItemsToApplicationRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.AssociateConfigurationItemsToApplicationResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.AuthorizationErrorException;
import software.amazon.awssdk.services.applicationdiscovery.model.BatchDeleteImportDataRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.BatchDeleteImportDataResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.ConflictErrorException;
import software.amazon.awssdk.services.applicationdiscovery.model.CreateApplicationRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.CreateApplicationResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.CreateTagsRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.CreateTagsResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.DeleteApplicationsRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.DeleteApplicationsResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.DeleteTagsRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.DeleteTagsResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeAgentsRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeAgentsResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeConfigurationsRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeConfigurationsResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeContinuousExportsRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeContinuousExportsResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeExportTasksRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeExportTasksResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeImportTasksRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeImportTasksResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeTagsRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.DescribeTagsResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.DisassociateConfigurationItemsFromApplicationRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.DisassociateConfigurationItemsFromApplicationResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.GetDiscoverySummaryRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.GetDiscoverySummaryResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.HomeRegionNotSetException;
import software.amazon.awssdk.services.applicationdiscovery.model.InvalidParameterException;
import software.amazon.awssdk.services.applicationdiscovery.model.InvalidParameterValueException;
import software.amazon.awssdk.services.applicationdiscovery.model.ListConfigurationsRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.ListConfigurationsResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.ListServerNeighborsRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.ListServerNeighborsResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.OperationNotPermittedException;
import software.amazon.awssdk.services.applicationdiscovery.model.ResourceInUseException;
import software.amazon.awssdk.services.applicationdiscovery.model.ResourceNotFoundException;
import software.amazon.awssdk.services.applicationdiscovery.model.ServerInternalErrorException;
import software.amazon.awssdk.services.applicationdiscovery.model.StartContinuousExportRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.StartContinuousExportResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.StartDataCollectionByAgentIdsRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.StartDataCollectionByAgentIdsResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.StartExportTaskRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.StartExportTaskResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.StartImportTaskRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.StartImportTaskResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.StopContinuousExportRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.StopContinuousExportResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.StopDataCollectionByAgentIdsRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.StopDataCollectionByAgentIdsResponse;
import software.amazon.awssdk.services.applicationdiscovery.model.UpdateApplicationRequest;
import software.amazon.awssdk.services.applicationdiscovery.model.UpdateApplicationResponse;
import software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeContinuousExportsPublisher;
import software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeImportTasksPublisher;
import software.amazon.awssdk.services.applicationdiscovery.transform.AssociateConfigurationItemsToApplicationRequestMarshaller;
import software.amazon.awssdk.services.applicationdiscovery.transform.BatchDeleteImportDataRequestMarshaller;
import software.amazon.awssdk.services.applicationdiscovery.transform.CreateApplicationRequestMarshaller;
import software.amazon.awssdk.services.applicationdiscovery.transform.CreateTagsRequestMarshaller;
import software.amazon.awssdk.services.applicationdiscovery.transform.DeleteApplicationsRequestMarshaller;
import software.amazon.awssdk.services.applicationdiscovery.transform.DeleteTagsRequestMarshaller;
import software.amazon.awssdk.services.applicationdiscovery.transform.DescribeAgentsRequestMarshaller;
import software.amazon.awssdk.services.applicationdiscovery.transform.DescribeConfigurationsRequestMarshaller;
import software.amazon.awssdk.services.applicationdiscovery.transform.DescribeContinuousExportsRequestMarshaller;
import software.amazon.awssdk.services.applicationdiscovery.transform.DescribeExportTasksRequestMarshaller;
import software.amazon.awssdk.services.applicationdiscovery.transform.DescribeImportTasksRequestMarshaller;
import software.amazon.awssdk.services.applicationdiscovery.transform.DescribeTagsRequestMarshaller;
import software.amazon.awssdk.services.applicationdiscovery.transform.DisassociateConfigurationItemsFromApplicationRequestMarshaller;
import software.amazon.awssdk.services.applicationdiscovery.transform.GetDiscoverySummaryRequestMarshaller;
import software.amazon.awssdk.services.applicationdiscovery.transform.ListConfigurationsRequestMarshaller;
import software.amazon.awssdk.services.applicationdiscovery.transform.ListServerNeighborsRequestMarshaller;
import software.amazon.awssdk.services.applicationdiscovery.transform.StartContinuousExportRequestMarshaller;
import software.amazon.awssdk.services.applicationdiscovery.transform.StartDataCollectionByAgentIdsRequestMarshaller;
import software.amazon.awssdk.services.applicationdiscovery.transform.StartExportTaskRequestMarshaller;
import software.amazon.awssdk.services.applicationdiscovery.transform.StartImportTaskRequestMarshaller;
import software.amazon.awssdk.services.applicationdiscovery.transform.StopContinuousExportRequestMarshaller;
import software.amazon.awssdk.services.applicationdiscovery.transform.StopDataCollectionByAgentIdsRequestMarshaller;
import software.amazon.awssdk.services.applicationdiscovery.transform.UpdateApplicationRequestMarshaller;
import software.amazon.awssdk.utils.CompletableFutureUtils;

/**
 * Internal implementation of {@link ApplicationDiscoveryAsyncClient}.
 *
 * @see ApplicationDiscoveryAsyncClient#builder()
 */
@Generated("software.amazon.awssdk:codegen")
@SdkInternalApi
final class DefaultApplicationDiscoveryAsyncClient implements ApplicationDiscoveryAsyncClient {
    private static final Logger log = LoggerFactory.getLogger(DefaultApplicationDiscoveryAsyncClient.class);

    private final AsyncClientHandler clientHandler;

    private final AwsJsonProtocolFactory protocolFactory;

    private final SdkClientConfiguration clientConfiguration;

    protected DefaultApplicationDiscoveryAsyncClient(SdkClientConfiguration clientConfiguration) {
        this.clientHandler = new AwsAsyncClientHandler(clientConfiguration);
        this.clientConfiguration = clientConfiguration;
        this.protocolFactory = init(AwsJsonProtocolFactory.builder()).build();
    }

    @Override
    public final String serviceName() {
        return SERVICE_NAME;
    }

    /**
     * 

* Associates one or more configuration items with an application. *

* * @param associateConfigurationItemsToApplicationRequest * @return A Java Future containing the result of the AssociateConfigurationItemsToApplication operation returned by * the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AuthorizationErrorException The AWS user account does not have permission to perform the action. * Check the IAM policy associated with this account.
  • *
  • InvalidParameterException One or more parameters are not valid. Verify the parameters and try again.
  • *
  • InvalidParameterValueException The value of one or more parameters are either invalid or out of * range. Verify the parameter values and try again.
  • *
  • ServerInternalErrorException The server experienced an internal error. Try again.
  • *
  • HomeRegionNotSetException The home region is not set. Set the home region to continue.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ApplicationDiscoveryException Base class for all service exceptions. Unknown exceptions will be * thrown as an instance of this type.
  • *
* @sample ApplicationDiscoveryAsyncClient.AssociateConfigurationItemsToApplication */ @Override public CompletableFuture associateConfigurationItemsToApplication( AssociateConfigurationItemsToApplicationRequest associateConfigurationItemsToApplicationRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory .createResponseHandler(operationMetadata, AssociateConfigurationItemsToApplicationResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("AssociateConfigurationItemsToApplication") .withMarshaller(new AssociateConfigurationItemsToApplicationRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(associateConfigurationItemsToApplicationRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Deletes one or more import tasks, each identified by their import ID. Each import task has a number of records * that can identify servers or applications. *

*

* AWS Application Discovery Service has built-in matching logic that will identify when discovered servers match * existing entries that you've previously discovered, the information for the already-existing discovered server is * updated. When you delete an import task that contains records that were used to match, the information in those * matched records that comes from the deleted records will also be deleted. *

* * @param batchDeleteImportDataRequest * @return A Java Future containing the result of the BatchDeleteImportData operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AuthorizationErrorException The AWS user account does not have permission to perform the action. * Check the IAM policy associated with this account.
  • *
  • InvalidParameterException One or more parameters are not valid. Verify the parameters and try again.
  • *
  • InvalidParameterValueException The value of one or more parameters are either invalid or out of * range. Verify the parameter values and try again.
  • *
  • ServerInternalErrorException The server experienced an internal error. Try again.
  • *
  • HomeRegionNotSetException The home region is not set. Set the home region to continue.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ApplicationDiscoveryException Base class for all service exceptions. Unknown exceptions will be * thrown as an instance of this type.
  • *
* @sample ApplicationDiscoveryAsyncClient.BatchDeleteImportData */ @Override public CompletableFuture batchDeleteImportData( BatchDeleteImportDataRequest batchDeleteImportDataRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, BatchDeleteImportDataResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("BatchDeleteImportData") .withMarshaller(new BatchDeleteImportDataRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(batchDeleteImportDataRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Creates an application with the given name and description. *

* * @param createApplicationRequest * @return A Java Future containing the result of the CreateApplication operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AuthorizationErrorException The AWS user account does not have permission to perform the action. * Check the IAM policy associated with this account.
  • *
  • InvalidParameterException One or more parameters are not valid. Verify the parameters and try again.
  • *
  • InvalidParameterValueException The value of one or more parameters are either invalid or out of * range. Verify the parameter values and try again.
  • *
  • ServerInternalErrorException The server experienced an internal error. Try again.
  • *
  • HomeRegionNotSetException The home region is not set. Set the home region to continue.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ApplicationDiscoveryException Base class for all service exceptions. Unknown exceptions will be * thrown as an instance of this type.
  • *
* @sample ApplicationDiscoveryAsyncClient.CreateApplication */ @Override public CompletableFuture createApplication(CreateApplicationRequest createApplicationRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, CreateApplicationResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("CreateApplication") .withMarshaller(new CreateApplicationRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(createApplicationRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Creates one or more tags for configuration items. Tags are metadata that help you categorize IT assets. This API * accepts a list of multiple configuration items. *

* * @param createTagsRequest * @return A Java Future containing the result of the CreateTags operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AuthorizationErrorException The AWS user account does not have permission to perform the action. * Check the IAM policy associated with this account.
  • *
  • ResourceNotFoundException The specified configuration ID was not located. Verify the configuration ID * and try again.
  • *
  • InvalidParameterException One or more parameters are not valid. Verify the parameters and try again.
  • *
  • InvalidParameterValueException The value of one or more parameters are either invalid or out of * range. Verify the parameter values and try again.
  • *
  • ServerInternalErrorException The server experienced an internal error. Try again.
  • *
  • HomeRegionNotSetException The home region is not set. Set the home region to continue.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ApplicationDiscoveryException Base class for all service exceptions. Unknown exceptions will be * thrown as an instance of this type.
  • *
* @sample ApplicationDiscoveryAsyncClient.CreateTags */ @Override public CompletableFuture createTags(CreateTagsRequest createTagsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, CreateTagsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams().withOperationName("CreateTags") .withMarshaller(new CreateTagsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(createTagsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Deletes a list of applications and their associations with configuration items. *

* * @param deleteApplicationsRequest * @return A Java Future containing the result of the DeleteApplications operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AuthorizationErrorException The AWS user account does not have permission to perform the action. * Check the IAM policy associated with this account.
  • *
  • InvalidParameterException One or more parameters are not valid. Verify the parameters and try again.
  • *
  • InvalidParameterValueException The value of one or more parameters are either invalid or out of * range. Verify the parameter values and try again.
  • *
  • ServerInternalErrorException The server experienced an internal error. Try again.
  • *
  • HomeRegionNotSetException The home region is not set. Set the home region to continue.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ApplicationDiscoveryException Base class for all service exceptions. Unknown exceptions will be * thrown as an instance of this type.
  • *
* @sample ApplicationDiscoveryAsyncClient.DeleteApplications */ @Override public CompletableFuture deleteApplications(DeleteApplicationsRequest deleteApplicationsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DeleteApplicationsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("DeleteApplications") .withMarshaller(new DeleteApplicationsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(deleteApplicationsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Deletes the association between configuration items and one or more tags. This API accepts a list of multiple * configuration items. *

* * @param deleteTagsRequest * @return A Java Future containing the result of the DeleteTags operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AuthorizationErrorException The AWS user account does not have permission to perform the action. * Check the IAM policy associated with this account.
  • *
  • ResourceNotFoundException The specified configuration ID was not located. Verify the configuration ID * and try again.
  • *
  • InvalidParameterException One or more parameters are not valid. Verify the parameters and try again.
  • *
  • InvalidParameterValueException The value of one or more parameters are either invalid or out of * range. Verify the parameter values and try again.
  • *
  • ServerInternalErrorException The server experienced an internal error. Try again.
  • *
  • HomeRegionNotSetException The home region is not set. Set the home region to continue.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ApplicationDiscoveryException Base class for all service exceptions. Unknown exceptions will be * thrown as an instance of this type.
  • *
* @sample ApplicationDiscoveryAsyncClient.DeleteTags */ @Override public CompletableFuture deleteTags(DeleteTagsRequest deleteTagsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, DeleteTagsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams().withOperationName("DeleteTags") .withMarshaller(new DeleteTagsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(deleteTagsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Lists agents or connectors as specified by ID or other filters. All agents/connectors associated with your user * account can be listed if you call DescribeAgents as is without passing any parameters. *

* * @param describeAgentsRequest * @return A Java Future containing the result of the DescribeAgents operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AuthorizationErrorException The AWS user account does not have permission to perform the action. * Check the IAM policy associated with this account.
  • *
  • InvalidParameterException One or more parameters are not valid. Verify the parameters and try again.
  • *
  • InvalidParameterValueException The value of one or more parameters are either invalid or out of * range. Verify the parameter values and try again.
  • *
  • ServerInternalErrorException The server experienced an internal error. Try again.
  • *
  • HomeRegionNotSetException The home region is not set. Set the home region to continue.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ApplicationDiscoveryException Base class for all service exceptions. Unknown exceptions will be * thrown as an instance of this type.
  • *
* @sample ApplicationDiscoveryAsyncClient.DescribeAgents */ @Override public CompletableFuture describeAgents(DescribeAgentsRequest describeAgentsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DescribeAgentsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("DescribeAgents") .withMarshaller(new DescribeAgentsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(describeAgentsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves attributes for a list of configuration item IDs. *

* *

* All of the supplied IDs must be for the same asset type from one of the following: *

*
    *
  • *

    * server *

    *
  • *
  • *

    * application *

    *
  • *
  • *

    * process *

    *
  • *
  • *

    * connection *

    *
  • *
*

* Output fields are specific to the asset type specified. For example, the output for a server configuration * item includes a list of attributes about the server, such as host name, operating system, number of network * cards, etc. *

*

* For a complete list of outputs for each asset type, see Using the DescribeConfigurations Action in the AWS Application Discovery Service User Guide. *

*
* * @param describeConfigurationsRequest * @return A Java Future containing the result of the DescribeConfigurations operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AuthorizationErrorException The AWS user account does not have permission to perform the action. * Check the IAM policy associated with this account.
  • *
  • InvalidParameterException One or more parameters are not valid. Verify the parameters and try again.
  • *
  • InvalidParameterValueException The value of one or more parameters are either invalid or out of * range. Verify the parameter values and try again.
  • *
  • ServerInternalErrorException The server experienced an internal error. Try again.
  • *
  • HomeRegionNotSetException The home region is not set. Set the home region to continue.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ApplicationDiscoveryException Base class for all service exceptions. Unknown exceptions will be * thrown as an instance of this type.
  • *
* @sample ApplicationDiscoveryAsyncClient.DescribeConfigurations */ @Override public CompletableFuture describeConfigurations( DescribeConfigurationsRequest describeConfigurationsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DescribeConfigurationsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("DescribeConfigurations") .withMarshaller(new DescribeConfigurationsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(describeConfigurationsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Lists exports as specified by ID. All continuous exports associated with your user account can be listed if you * call DescribeContinuousExports as is without passing any parameters. *

* * @param describeContinuousExportsRequest * @return A Java Future containing the result of the DescribeContinuousExports operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AuthorizationErrorException The AWS user account does not have permission to perform the action. * Check the IAM policy associated with this account.
  • *
  • InvalidParameterException One or more parameters are not valid. Verify the parameters and try again.
  • *
  • InvalidParameterValueException The value of one or more parameters are either invalid or out of * range. Verify the parameter values and try again.
  • *
  • ServerInternalErrorException The server experienced an internal error. Try again.
  • *
  • OperationNotPermittedException This operation is not permitted.
  • *
  • ResourceNotFoundException The specified configuration ID was not located. Verify the configuration ID * and try again.
  • *
  • HomeRegionNotSetException The home region is not set. Set the home region to continue.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ApplicationDiscoveryException Base class for all service exceptions. Unknown exceptions will be * thrown as an instance of this type.
  • *
* @sample ApplicationDiscoveryAsyncClient.DescribeContinuousExports */ @Override public CompletableFuture describeContinuousExports( DescribeContinuousExportsRequest describeContinuousExportsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DescribeContinuousExportsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("DescribeContinuousExports") .withMarshaller(new DescribeContinuousExportsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(describeContinuousExportsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Lists exports as specified by ID. All continuous exports associated with your user account can be listed if you * call DescribeContinuousExports as is without passing any parameters. *

*
*

* This is a variant of * {@link #describeContinuousExports(software.amazon.awssdk.services.applicationdiscovery.model.DescribeContinuousExportsRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeContinuousExportsPublisher publisher = client.describeContinuousExportsPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeContinuousExportsPublisher publisher = client.describeContinuousExportsPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.applicationdiscovery.model.DescribeContinuousExportsResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #describeContinuousExports(software.amazon.awssdk.services.applicationdiscovery.model.DescribeContinuousExportsRequest)} * operation. *

* * @param describeContinuousExportsRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AuthorizationErrorException The AWS user account does not have permission to perform the action. * Check the IAM policy associated with this account.
  • *
  • InvalidParameterException One or more parameters are not valid. Verify the parameters and try again.
  • *
  • InvalidParameterValueException The value of one or more parameters are either invalid or out of * range. Verify the parameter values and try again.
  • *
  • ServerInternalErrorException The server experienced an internal error. Try again.
  • *
  • OperationNotPermittedException This operation is not permitted.
  • *
  • ResourceNotFoundException The specified configuration ID was not located. Verify the configuration ID * and try again.
  • *
  • HomeRegionNotSetException The home region is not set. Set the home region to continue.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ApplicationDiscoveryException Base class for all service exceptions. Unknown exceptions will be * thrown as an instance of this type.
  • *
* @sample ApplicationDiscoveryAsyncClient.DescribeContinuousExports */ public DescribeContinuousExportsPublisher describeContinuousExportsPaginator( DescribeContinuousExportsRequest describeContinuousExportsRequest) { return new DescribeContinuousExportsPublisher(this, applyPaginatorUserAgent(describeContinuousExportsRequest)); } /** *

* Retrieve status of one or more export tasks. You can retrieve the status of up to 100 export tasks. *

* * @param describeExportTasksRequest * @return A Java Future containing the result of the DescribeExportTasks operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AuthorizationErrorException The AWS user account does not have permission to perform the action. * Check the IAM policy associated with this account.
  • *
  • InvalidParameterException One or more parameters are not valid. Verify the parameters and try again.
  • *
  • InvalidParameterValueException The value of one or more parameters are either invalid or out of * range. Verify the parameter values and try again.
  • *
  • ServerInternalErrorException The server experienced an internal error. Try again.
  • *
  • HomeRegionNotSetException The home region is not set. Set the home region to continue.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ApplicationDiscoveryException Base class for all service exceptions. Unknown exceptions will be * thrown as an instance of this type.
  • *
* @sample ApplicationDiscoveryAsyncClient.DescribeExportTasks */ @Override public CompletableFuture describeExportTasks( DescribeExportTasksRequest describeExportTasksRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DescribeExportTasksResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("DescribeExportTasks") .withMarshaller(new DescribeExportTasksRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(describeExportTasksRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Returns an array of import tasks for your account, including status information, times, IDs, the Amazon S3 Object * URL for the import file, and more. *

* * @param describeImportTasksRequest * @return A Java Future containing the result of the DescribeImportTasks operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AuthorizationErrorException The AWS user account does not have permission to perform the action. * Check the IAM policy associated with this account.
  • *
  • InvalidParameterException One or more parameters are not valid. Verify the parameters and try again.
  • *
  • InvalidParameterValueException The value of one or more parameters are either invalid or out of * range. Verify the parameter values and try again.
  • *
  • ServerInternalErrorException The server experienced an internal error. Try again.
  • *
  • HomeRegionNotSetException The home region is not set. Set the home region to continue.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ApplicationDiscoveryException Base class for all service exceptions. Unknown exceptions will be * thrown as an instance of this type.
  • *
* @sample ApplicationDiscoveryAsyncClient.DescribeImportTasks */ @Override public CompletableFuture describeImportTasks( DescribeImportTasksRequest describeImportTasksRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DescribeImportTasksResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("DescribeImportTasks") .withMarshaller(new DescribeImportTasksRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(describeImportTasksRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Returns an array of import tasks for your account, including status information, times, IDs, the Amazon S3 Object * URL for the import file, and more. *

*
*

* This is a variant of * {@link #describeImportTasks(software.amazon.awssdk.services.applicationdiscovery.model.DescribeImportTasksRequest)} * operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. * SDK will internally handle making service calls for you. *

*

* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet * and so there is no guarantee that the request is valid. If there are errors in your request, you will see the * failures only after you start streaming the data. The subscribe method should be called as a request to start * streaming data. For more info, see * {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe * method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the * starting request. *

* *

* The following are few ways to use the response class: *

* 1) Using the subscribe helper method * *
     * {@code
     * software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeImportTasksPublisher publisher = client.describeImportTasksPaginator(request);
     * CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
     * future.get();
     * }
     * 
* * 2) Using a custom subscriber * *
     * {@code
     * software.amazon.awssdk.services.applicationdiscovery.paginators.DescribeImportTasksPublisher publisher = client.describeImportTasksPaginator(request);
     * publisher.subscribe(new Subscriber() {
     * 
     * public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
     * 
     * 
     * public void onNext(software.amazon.awssdk.services.applicationdiscovery.model.DescribeImportTasksResponse response) { //... };
     * });}
     * 
* * As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2. *

* Note: If you prefer to have control on service calls, use the * {@link #describeImportTasks(software.amazon.awssdk.services.applicationdiscovery.model.DescribeImportTasksRequest)} * operation. *

* * @param describeImportTasksRequest * @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AuthorizationErrorException The AWS user account does not have permission to perform the action. * Check the IAM policy associated with this account.
  • *
  • InvalidParameterException One or more parameters are not valid. Verify the parameters and try again.
  • *
  • InvalidParameterValueException The value of one or more parameters are either invalid or out of * range. Verify the parameter values and try again.
  • *
  • ServerInternalErrorException The server experienced an internal error. Try again.
  • *
  • HomeRegionNotSetException The home region is not set. Set the home region to continue.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ApplicationDiscoveryException Base class for all service exceptions. Unknown exceptions will be * thrown as an instance of this type.
  • *
* @sample ApplicationDiscoveryAsyncClient.DescribeImportTasks */ public DescribeImportTasksPublisher describeImportTasksPaginator(DescribeImportTasksRequest describeImportTasksRequest) { return new DescribeImportTasksPublisher(this, applyPaginatorUserAgent(describeImportTasksRequest)); } /** *

* Retrieves a list of configuration items that have tags as specified by the key-value pairs, name and value, * passed to the optional parameter filters. *

*

* There are three valid tag filter names: *

*
    *
  • *

    * tagKey *

    *
  • *
  • *

    * tagValue *

    *
  • *
  • *

    * configurationId *

    *
  • *
*

* Also, all configuration items associated with your user account that have tags can be listed if you call * DescribeTags as is without passing any parameters. *

* * @param describeTagsRequest * @return A Java Future containing the result of the DescribeTags operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AuthorizationErrorException The AWS user account does not have permission to perform the action. * Check the IAM policy associated with this account.
  • *
  • ResourceNotFoundException The specified configuration ID was not located. Verify the configuration ID * and try again.
  • *
  • InvalidParameterException One or more parameters are not valid. Verify the parameters and try again.
  • *
  • InvalidParameterValueException The value of one or more parameters are either invalid or out of * range. Verify the parameter values and try again.
  • *
  • ServerInternalErrorException The server experienced an internal error. Try again.
  • *
  • HomeRegionNotSetException The home region is not set. Set the home region to continue.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ApplicationDiscoveryException Base class for all service exceptions. Unknown exceptions will be * thrown as an instance of this type.
  • *
* @sample ApplicationDiscoveryAsyncClient.DescribeTags */ @Override public CompletableFuture describeTags(DescribeTagsRequest describeTagsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, DescribeTagsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("DescribeTags").withMarshaller(new DescribeTagsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(describeTagsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Disassociates one or more configuration items from an application. *

* * @param disassociateConfigurationItemsFromApplicationRequest * @return A Java Future containing the result of the DisassociateConfigurationItemsFromApplication operation * returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AuthorizationErrorException The AWS user account does not have permission to perform the action. * Check the IAM policy associated with this account.
  • *
  • InvalidParameterException One or more parameters are not valid. Verify the parameters and try again.
  • *
  • InvalidParameterValueException The value of one or more parameters are either invalid or out of * range. Verify the parameter values and try again.
  • *
  • ServerInternalErrorException The server experienced an internal error. Try again.
  • *
  • HomeRegionNotSetException The home region is not set. Set the home region to continue.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ApplicationDiscoveryException Base class for all service exceptions. Unknown exceptions will be * thrown as an instance of this type.
  • *
* @sample ApplicationDiscoveryAsyncClient.DisassociateConfigurationItemsFromApplication */ @Override public CompletableFuture disassociateConfigurationItemsFromApplication( DisassociateConfigurationItemsFromApplicationRequest disassociateConfigurationItemsFromApplicationRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory .createResponseHandler(operationMetadata, DisassociateConfigurationItemsFromApplicationResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("DisassociateConfigurationItemsFromApplication") .withMarshaller(new DisassociateConfigurationItemsFromApplicationRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(disassociateConfigurationItemsFromApplicationRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves a short summary of discovered assets. *

*

* This API operation takes no request parameters and is called as is at the command prompt as shown in the example. *

* * @param getDiscoverySummaryRequest * @return A Java Future containing the result of the GetDiscoverySummary operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AuthorizationErrorException The AWS user account does not have permission to perform the action. * Check the IAM policy associated with this account.
  • *
  • InvalidParameterException One or more parameters are not valid. Verify the parameters and try again.
  • *
  • InvalidParameterValueException The value of one or more parameters are either invalid or out of * range. Verify the parameter values and try again.
  • *
  • ServerInternalErrorException The server experienced an internal error. Try again.
  • *
  • HomeRegionNotSetException The home region is not set. Set the home region to continue.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ApplicationDiscoveryException Base class for all service exceptions. Unknown exceptions will be * thrown as an instance of this type.
  • *
* @sample ApplicationDiscoveryAsyncClient.GetDiscoverySummary */ @Override public CompletableFuture getDiscoverySummary( GetDiscoverySummaryRequest getDiscoverySummaryRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, GetDiscoverySummaryResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("GetDiscoverySummary") .withMarshaller(new GetDiscoverySummaryRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(getDiscoverySummaryRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves a list of configuration items as specified by the value passed to the required parameter * configurationType. Optional filtering may be applied to refine search results. *

* * @param listConfigurationsRequest * @return A Java Future containing the result of the ListConfigurations operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AuthorizationErrorException The AWS user account does not have permission to perform the action. * Check the IAM policy associated with this account.
  • *
  • ResourceNotFoundException The specified configuration ID was not located. Verify the configuration ID * and try again.
  • *
  • InvalidParameterException One or more parameters are not valid. Verify the parameters and try again.
  • *
  • InvalidParameterValueException The value of one or more parameters are either invalid or out of * range. Verify the parameter values and try again.
  • *
  • ServerInternalErrorException The server experienced an internal error. Try again.
  • *
  • HomeRegionNotSetException The home region is not set. Set the home region to continue.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ApplicationDiscoveryException Base class for all service exceptions. Unknown exceptions will be * thrown as an instance of this type.
  • *
* @sample ApplicationDiscoveryAsyncClient.ListConfigurations */ @Override public CompletableFuture listConfigurations(ListConfigurationsRequest listConfigurationsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, ListConfigurationsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("ListConfigurations") .withMarshaller(new ListConfigurationsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(listConfigurationsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Retrieves a list of servers that are one network hop away from a specified server. *

* * @param listServerNeighborsRequest * @return A Java Future containing the result of the ListServerNeighbors operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AuthorizationErrorException The AWS user account does not have permission to perform the action. * Check the IAM policy associated with this account.
  • *
  • InvalidParameterException One or more parameters are not valid. Verify the parameters and try again.
  • *
  • InvalidParameterValueException The value of one or more parameters are either invalid or out of * range. Verify the parameter values and try again.
  • *
  • ServerInternalErrorException The server experienced an internal error. Try again.
  • *
  • HomeRegionNotSetException The home region is not set. Set the home region to continue.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ApplicationDiscoveryException Base class for all service exceptions. Unknown exceptions will be * thrown as an instance of this type.
  • *
* @sample ApplicationDiscoveryAsyncClient.ListServerNeighbors */ @Override public CompletableFuture listServerNeighbors( ListServerNeighborsRequest listServerNeighborsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, ListServerNeighborsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("ListServerNeighbors") .withMarshaller(new ListServerNeighborsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(listServerNeighborsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Start the continuous flow of agent's discovered data into Amazon Athena. *

* * @param startContinuousExportRequest * @return A Java Future containing the result of the StartContinuousExport operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ConflictErrorException
  • *
  • AuthorizationErrorException The AWS user account does not have permission to perform the action. * Check the IAM policy associated with this account.
  • *
  • InvalidParameterException One or more parameters are not valid. Verify the parameters and try again.
  • *
  • InvalidParameterValueException The value of one or more parameters are either invalid or out of * range. Verify the parameter values and try again.
  • *
  • ServerInternalErrorException The server experienced an internal error. Try again.
  • *
  • OperationNotPermittedException This operation is not permitted.
  • *
  • ResourceInUseException This issue occurs when the same clientRequestToken is used with * the StartImportTask action, but with different parameters. For example, you use the same * request token but have two different import URLs, you can encounter this issue. If the import tasks are * meant to be different, use a different clientRequestToken, and try again.
  • *
  • HomeRegionNotSetException The home region is not set. Set the home region to continue.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ApplicationDiscoveryException Base class for all service exceptions. Unknown exceptions will be * thrown as an instance of this type.
  • *
* @sample ApplicationDiscoveryAsyncClient.StartContinuousExport */ @Override public CompletableFuture startContinuousExport( StartContinuousExportRequest startContinuousExportRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, StartContinuousExportResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("StartContinuousExport") .withMarshaller(new StartContinuousExportRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(startContinuousExportRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Instructs the specified agents or connectors to start collecting data. *

* * @param startDataCollectionByAgentIdsRequest * @return A Java Future containing the result of the StartDataCollectionByAgentIds operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AuthorizationErrorException The AWS user account does not have permission to perform the action. * Check the IAM policy associated with this account.
  • *
  • InvalidParameterException One or more parameters are not valid. Verify the parameters and try again.
  • *
  • InvalidParameterValueException The value of one or more parameters are either invalid or out of * range. Verify the parameter values and try again.
  • *
  • ServerInternalErrorException The server experienced an internal error. Try again.
  • *
  • HomeRegionNotSetException The home region is not set. Set the home region to continue.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ApplicationDiscoveryException Base class for all service exceptions. Unknown exceptions will be * thrown as an instance of this type.
  • *
* @sample ApplicationDiscoveryAsyncClient.StartDataCollectionByAgentIds */ @Override public CompletableFuture startDataCollectionByAgentIds( StartDataCollectionByAgentIdsRequest startDataCollectionByAgentIdsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, StartDataCollectionByAgentIdsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("StartDataCollectionByAgentIds") .withMarshaller(new StartDataCollectionByAgentIdsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(startDataCollectionByAgentIdsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Begins the export of discovered data to an S3 bucket. *

*

* If you specify agentIds in a filter, the task exports up to 72 hours of detailed data collected by * the identified Application Discovery Agent, including network, process, and performance details. A time range for * exported agent data may be set by using startTime and endTime. Export of detailed agent * data is limited to five concurrently running exports. *

*

* If you do not include an agentIds filter, summary data is exported that includes both AWS Agentless * Discovery Connector data and summary data from AWS Discovery Agents. Export of summary data is limited to two * exports per day. *

* * @param startExportTaskRequest * @return A Java Future containing the result of the StartExportTask operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AuthorizationErrorException The AWS user account does not have permission to perform the action. * Check the IAM policy associated with this account.
  • *
  • InvalidParameterException One or more parameters are not valid. Verify the parameters and try again.
  • *
  • InvalidParameterValueException The value of one or more parameters are either invalid or out of * range. Verify the parameter values and try again.
  • *
  • ServerInternalErrorException The server experienced an internal error. Try again.
  • *
  • OperationNotPermittedException This operation is not permitted.
  • *
  • HomeRegionNotSetException The home region is not set. Set the home region to continue.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ApplicationDiscoveryException Base class for all service exceptions. Unknown exceptions will be * thrown as an instance of this type.
  • *
* @sample ApplicationDiscoveryAsyncClient.StartExportTask */ @Override public CompletableFuture startExportTask(StartExportTaskRequest startExportTaskRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, StartExportTaskResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("StartExportTask") .withMarshaller(new StartExportTaskRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(startExportTaskRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Starts an import task, which allows you to import details of your on-premises environment directly into AWS * Migration Hub without having to use the Application Discovery Service (ADS) tools such as the Discovery Connector * or Discovery Agent. This gives you the option to perform migration assessment and planning directly from your * imported data, including the ability to group your devices as applications and track their migration status. *

*

* To start an import request, do this: *

*
    *
  1. *

    * Download the specially formatted comma separated value (CSV) import template, which you can find here: https://s3-us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv. *

    *
  2. *
  3. *

    * Fill out the template with your server and application data. *

    *
  4. *
  5. *

    * Upload your import file to an Amazon S3 bucket, and make a note of it's Object URL. Your import file must be in * the CSV format. *

    *
  6. *
  7. *

    * Use the console or the StartImportTask command with the AWS CLI or one of the AWS SDKs to import the * records from your file. *

    *
  8. *
*

* For more information, including step-by-step procedures, see Migration Hub * Import in the AWS Application Discovery Service User Guide. *

* *

* There are limits to the number of import tasks you can create (and delete) in an AWS account. For more * information, see AWS Application * Discovery Service Limits in the AWS Application Discovery Service User Guide. *

*
* * @param startImportTaskRequest * @return A Java Future containing the result of the StartImportTask operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • ResourceInUseException This issue occurs when the same clientRequestToken is used with * the StartImportTask action, but with different parameters. For example, you use the same * request token but have two different import URLs, you can encounter this issue. If the import tasks are * meant to be different, use a different clientRequestToken, and try again.
  • *
  • AuthorizationErrorException The AWS user account does not have permission to perform the action. * Check the IAM policy associated with this account.
  • *
  • InvalidParameterException One or more parameters are not valid. Verify the parameters and try again.
  • *
  • InvalidParameterValueException The value of one or more parameters are either invalid or out of * range. Verify the parameter values and try again.
  • *
  • ServerInternalErrorException The server experienced an internal error. Try again.
  • *
  • HomeRegionNotSetException The home region is not set. Set the home region to continue.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ApplicationDiscoveryException Base class for all service exceptions. Unknown exceptions will be * thrown as an instance of this type.
  • *
* @sample ApplicationDiscoveryAsyncClient.StartImportTask */ @Override public CompletableFuture startImportTask(StartImportTaskRequest startImportTaskRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, StartImportTaskResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("StartImportTask") .withMarshaller(new StartImportTaskRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(startImportTaskRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Stop the continuous flow of agent's discovered data into Amazon Athena. *

* * @param stopContinuousExportRequest * @return A Java Future containing the result of the StopContinuousExport operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AuthorizationErrorException The AWS user account does not have permission to perform the action. * Check the IAM policy associated with this account.
  • *
  • InvalidParameterException One or more parameters are not valid. Verify the parameters and try again.
  • *
  • InvalidParameterValueException The value of one or more parameters are either invalid or out of * range. Verify the parameter values and try again.
  • *
  • ServerInternalErrorException The server experienced an internal error. Try again.
  • *
  • OperationNotPermittedException This operation is not permitted.
  • *
  • ResourceNotFoundException The specified configuration ID was not located. Verify the configuration ID * and try again.
  • *
  • ResourceInUseException This issue occurs when the same clientRequestToken is used with * the StartImportTask action, but with different parameters. For example, you use the same * request token but have two different import URLs, you can encounter this issue. If the import tasks are * meant to be different, use a different clientRequestToken, and try again.
  • *
  • HomeRegionNotSetException The home region is not set. Set the home region to continue.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ApplicationDiscoveryException Base class for all service exceptions. Unknown exceptions will be * thrown as an instance of this type.
  • *
* @sample ApplicationDiscoveryAsyncClient.StopContinuousExport */ @Override public CompletableFuture stopContinuousExport( StopContinuousExportRequest stopContinuousExportRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, StopContinuousExportResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("StopContinuousExport") .withMarshaller(new StopContinuousExportRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(stopContinuousExportRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Instructs the specified agents or connectors to stop collecting data. *

* * @param stopDataCollectionByAgentIdsRequest * @return A Java Future containing the result of the StopDataCollectionByAgentIds operation returned by the * service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AuthorizationErrorException The AWS user account does not have permission to perform the action. * Check the IAM policy associated with this account.
  • *
  • InvalidParameterException One or more parameters are not valid. Verify the parameters and try again.
  • *
  • InvalidParameterValueException The value of one or more parameters are either invalid or out of * range. Verify the parameter values and try again.
  • *
  • ServerInternalErrorException The server experienced an internal error. Try again.
  • *
  • HomeRegionNotSetException The home region is not set. Set the home region to continue.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ApplicationDiscoveryException Base class for all service exceptions. Unknown exceptions will be * thrown as an instance of this type.
  • *
* @sample ApplicationDiscoveryAsyncClient.StopDataCollectionByAgentIds */ @Override public CompletableFuture stopDataCollectionByAgentIds( StopDataCollectionByAgentIdsRequest stopDataCollectionByAgentIdsRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, StopDataCollectionByAgentIdsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("StopDataCollectionByAgentIds") .withMarshaller(new StopDataCollectionByAgentIdsRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(stopDataCollectionByAgentIdsRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } /** *

* Updates metadata about an application. *

* * @param updateApplicationRequest * @return A Java Future containing the result of the UpdateApplication operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. *
    *
  • AuthorizationErrorException The AWS user account does not have permission to perform the action. * Check the IAM policy associated with this account.
  • *
  • InvalidParameterException One or more parameters are not valid. Verify the parameters and try again.
  • *
  • InvalidParameterValueException The value of one or more parameters are either invalid or out of * range. Verify the parameter values and try again.
  • *
  • ServerInternalErrorException The server experienced an internal error. Try again.
  • *
  • HomeRegionNotSetException The home region is not set. Set the home region to continue.
  • *
  • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.
  • *
  • SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.
  • *
  • ApplicationDiscoveryException Base class for all service exceptions. Unknown exceptions will be * thrown as an instance of this type.
  • *
* @sample ApplicationDiscoveryAsyncClient.UpdateApplication */ @Override public CompletableFuture updateApplication(UpdateApplicationRequest updateApplicationRequest) { try { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, UpdateApplicationResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); CompletableFuture executeFuture = clientHandler .execute(new ClientExecutionParams() .withOperationName("UpdateApplication") .withMarshaller(new UpdateApplicationRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(updateApplicationRequest)); return executeFuture; } catch (Throwable t) { return CompletableFutureUtils.failedFuture(t); } } @Override public void close() { clientHandler.close(); } private > T init(T builder) { return builder .clientConfiguration(clientConfiguration) .defaultServiceExceptionSupplier(ApplicationDiscoveryException::builder) .protocol(AwsJsonProtocol.AWS_JSON) .protocolVersion("1.1") .registerModeledException( ExceptionMetadata.builder().errorCode("ServerInternalErrorException") .exceptionBuilderSupplier(ServerInternalErrorException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("InvalidParameterException") .exceptionBuilderSupplier(InvalidParameterException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("InvalidParameterValueException") .exceptionBuilderSupplier(InvalidParameterValueException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("ResourceInUseException") .exceptionBuilderSupplier(ResourceInUseException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("ResourceNotFoundException") .exceptionBuilderSupplier(ResourceNotFoundException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("ConflictErrorException") .exceptionBuilderSupplier(ConflictErrorException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("OperationNotPermittedException") .exceptionBuilderSupplier(OperationNotPermittedException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("HomeRegionNotSetException") .exceptionBuilderSupplier(HomeRegionNotSetException::builder).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("AuthorizationErrorException") .exceptionBuilderSupplier(AuthorizationErrorException::builder).build()); } private T applyPaginatorUserAgent(T request) { Consumer userAgentApplier = b -> b.addApiName(ApiName.builder() .version(VersionInfo.SDK_VERSION).name("PAGINATED").build()); AwsRequestOverrideConfiguration overrideConfiguration = request.overrideConfiguration() .map(c -> c.toBuilder().applyMutation(userAgentApplier).build()) .orElse((AwsRequestOverrideConfiguration.builder().applyMutation(userAgentApplier).build())); return (T) request.toBuilder().overrideConfiguration(overrideConfiguration).build(); } private HttpResponseHandler createErrorResponseHandler(BaseAwsJsonProtocolFactory protocolFactory, JsonOperationMetadata operationMetadata) { return protocolFactory.createErrorResponseHandler(operationMetadata); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy