@SdkInternalApi
    final SendEventResult executeSendEvent(SendEventRequest sendEventRequest) {

        ExecutionContext executionContext = createExecutionContext(sendEventRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<SendEventRequest> request = null;
        Response<SendEventResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new SendEventRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(sendEventRequest));
                // 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, "ConnectParticipant");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SendEvent");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

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

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

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<note>
<p>
The <code>application/vnd.amazonaws.connect.event.connection.acknowledged</code> ContentType will no longer be
supported starting December 31, 2024. This event has been migrated to the <a
href="https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_CreateParticipantConnection.html"
>CreateParticipantConnection</a> API using the <code>ConnectParticipant</code> field.
</p>
</note>
<p>
Sends an event. Message receipts are not supported when there are more than two active participants in the chat.
Using the SendEvent API for message receipts when a supervisor is barged-in will result in a conflict exception.
</p>
<note>
<p>
<code>ConnectionToken</code> is used for invoking this API instead of <code>ParticipantToken</code>.
</p>
</note>
<p>
The Amazon Connect Participant Service APIs do not use <a
href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4
authentication</a>.
</p>

@param sendEventRequest
@return Result of the SendEvent operation returned by the service.
@throws AccessDeniedException
        You do not have sufficient access to perform this action.
@throws InternalServerException
        This exception occurs when there is an internal failure in the Amazon Connect service.
@throws ThrottlingException
        The request was denied due to request throttling.
@throws ValidationException
        The input fails to satisfy the constraints specified by Amazon Connect.
@throws ConflictException
        The requested operation conflicts with the current state of a service resource associated with the
        request.
@sample AmazonConnectParticipant.SendEvent
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/connectparticipant-2018-09-07/SendEvent" target="_top">AWS
     API Documentation</a>
aws-java-sdk-connectparticipant/src/main/java/com/amazonaws/services/connectparticipant/AmazonConnectParticipantClient.java