@SdkInternalApi
    final UpdateRepositoryLinkResult executeUpdateRepositoryLink(UpdateRepositoryLinkRequest updateRepositoryLinkRequest) {

        ExecutionContext executionContext = createExecutionContext(updateRepositoryLinkRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<UpdateRepositoryLinkRequest> request = null;
        Response<UpdateRepositoryLinkResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new UpdateRepositoryLinkRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateRepositoryLinkRequest));
                // 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, "CodeStar connections");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateRepositoryLink");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

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

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

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Updates the association between your connection and a specified external Git repository. A repository link allows
Git sync to monitor and sync changes to files in a specified Git repository.
</p>

@param updateRepositoryLinkRequest
@return Result of the UpdateRepositoryLink operation returned by the service.
@throws AccessDeniedException
        You do not have sufficient access to perform this action.
@throws ConditionalCheckFailedException
        The conditional check failed. Try again later.
@throws InternalServerException
        Received an internal server exception. Try again later.
@throws InvalidInputException
        The input is not valid. Verify that the action is typed correctly.
@throws ResourceNotFoundException
        Resource not found. Verify the connection resource ARN and try again.
@throws ThrottlingException
        The request was denied due to request throttling.
@throws UpdateOutOfSyncException
        The update is out of sync. Try syncing again.
@sample AWSCodeStarconnections.UpdateRepositoryLink
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UpdateRepositoryLink"
     target="_top">AWS API Documentation</a>
aws-java-sdk-codestarconnections/src/main/java/com/amazonaws/services/codestarconnections/AWSCodeStarconnectionsClient.java