@SdkInternalApi
    final ListMigrationTasksResult executeListMigrationTasks(ListMigrationTasksRequest listMigrationTasksRequest) {

        ExecutionContext executionContext = createExecutionContext(listMigrationTasksRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<ListMigrationTasksRequest> request = null;
        Response<ListMigrationTasksResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new ListMigrationTasksRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listMigrationTasksRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
                request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
                request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
                request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
                request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Migration Hub");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListMigrationTasks");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

            } finally {
                awsRequestMetrics.endEvent(Field.RequestMarshallTime);
            }

            HttpResponseHandler<AmazonWebServiceResponse<ListMigrationTasksResult>> responseHandler = protocolFactory.createResponseHandler(
                    new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListMigrationTasksResultJsonUnmarshaller());
            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Lists all, or filtered by resource name, migration tasks associated with the user account making this call. This
API has the following traits:
</p>
<ul>
<li>
<p>
Can show a summary list of the most recent migration tasks.
</p>
</li>
<li>
<p>
Can show a summary list of migration tasks associated with a given discovered resource.
</p>
</li>
<li>
<p>
Lists migration tasks in a paginated interface.
</p>
</li>
</ul>

@param listMigrationTasksRequest
@return Result of the ListMigrationTasks operation returned by the service.
@throws AccessDeniedException
        You do not have sufficient access to perform this action.
@throws ThrottlingException
        The request was denied due to request throttling.
@throws InternalServerErrorException
        Exception raised when an internal, configuration, or dependency error is encountered.
@throws ServiceUnavailableException
        Exception raised when there is an internal, configuration, or dependency error encountered.
@throws InvalidInputException
        Exception raised when the provided input violates a policy constraint or is entered in the wrong format
        or data type.
@throws PolicyErrorException
        Exception raised when there are problems accessing Application Discovery Service (Application Discovery
        Service); most likely due to a misconfigured policy or the <code>migrationhub-discovery</code> role is
        missing or not configured correctly.
@throws ResourceNotFoundException
        Exception raised when the request references a resource (Application Discovery Service configuration,
        update stream, migration task, etc.) that does not exist in Application Discovery Service (Application
        Discovery Service) or in Migration Hub's repository.
@throws HomeRegionNotSetException
        The home region is not set. Set the home region to continue.
@sample AWSMigrationHub.ListMigrationTasks
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ListMigrationTasks"
     target="_top">AWS API Documentation</a>
aws-java-sdk-migrationhub/src/main/java/com/amazonaws/services/migrationhub/AWSMigrationHubClient.java