@SdkInternalApi
    final CreateHomeRegionControlResult executeCreateHomeRegionControl(CreateHomeRegionControlRequest createHomeRegionControlRequest) {

        ExecutionContext executionContext = createExecutionContext(createHomeRegionControlRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<CreateHomeRegionControlRequest> request = null;
        Response<CreateHomeRegionControlResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new CreateHomeRegionControlRequestProtocolMarshaller(protocolFactory).marshall(super
                        .beforeMarshalling(createHomeRegionControlRequest));
                // 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, "MigrationHub Config");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateHomeRegionControl");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

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

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

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
This API sets up the home region for the calling account only.
</p>

@param createHomeRegionControlRequest
@return Result of the CreateHomeRegionControl operation returned by the service.
@throws InternalServerErrorException
        Exception raised when an internal, configuration, or dependency error is encountered.
@throws ServiceUnavailableException
        Exception raised when a request fails due to temporary unavailability of 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 DryRunOperationException
        Exception raised to indicate that authorization of an action was successful, when the <code>DryRun</code>
        flag is set to true.
@throws InvalidInputException
        Exception raised when the provided input violates a policy constraint or is entered in the wrong format
        or data type.
@sample AWSMigrationHubConfig.CreateHomeRegionControl
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/CreateHomeRegionControl"
     target="_top">AWS API Documentation</a>
aws-java-sdk-migrationhubconfig/src/main/java/com/amazonaws/services/migrationhubconfig/AWSMigrationHubConfigClient.java