@SdkInternalApi
    final ImportPublicKeyResult executeImportPublicKey(ImportPublicKeyRequest importPublicKeyRequest) {

        ExecutionContext executionContext = createExecutionContext(importPublicKeyRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<ImportPublicKeyRequest> request = null;
        Response<ImportPublicKeyResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new ImportPublicKeyRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(importPublicKeyRequest));
                // 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, "IVS RealTime");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ImportPublicKey");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

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

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

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Import a public key to be used for signing stage participant tokens.
</p>

@param importPublicKeyRequest
@return Result of the ImportPublicKey operation returned by the service.
@throws ValidationException
@throws AccessDeniedException
@throws ServiceQuotaExceededException
@throws ConflictException
@throws PendingVerificationException
@sample AmazonIVSRealTime.ImportPublicKey
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/ivs-realtime-2020-07-14/ImportPublicKey" target="_top">AWS
     API Documentation</a>
aws-java-sdk-ivsrealtime/src/main/java/com/amazonaws/services/ivsrealtime/AmazonIVSRealTimeClient.java