@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonWorkMailMessageFlowAsyncClient extends AmazonWorkMailMessageFlowClient implements AmazonWorkMailMessageFlowAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
The WorkMail Message Flow API provides access to email messages as they are being sent and received by a WorkMail organization.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIXbuilder, getCachedResponseMetadata, getRawMessageContent, putRawMessageContentaddRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCachedResponseMetadata, getRawMessageContent, putRawMessageContentpublic static AmazonWorkMailMessageFlowAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<GetRawMessageContentResult> getRawMessageContentAsync(GetRawMessageContentRequest request)
AmazonWorkMailMessageFlowAsyncRetrieves the raw content of an in-transit email message, in MIME format.
getRawMessageContentAsync in interface AmazonWorkMailMessageFlowAsyncpublic Future<GetRawMessageContentResult> getRawMessageContentAsync(GetRawMessageContentRequest request, AsyncHandler<GetRawMessageContentRequest,GetRawMessageContentResult> asyncHandler)
AmazonWorkMailMessageFlowAsyncRetrieves the raw content of an in-transit email message, in MIME format.
getRawMessageContentAsync in interface AmazonWorkMailMessageFlowAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<PutRawMessageContentResult> putRawMessageContentAsync(PutRawMessageContentRequest request)
AmazonWorkMailMessageFlowAsyncUpdates the raw content of an in-transit email message, in MIME format.
This example describes how to update in-transit email message. For more information and examples for using this API, see Updating message content with AWS Lambda.
Updates to an in-transit message only appear when you call PutRawMessageContent from an AWS Lambda
function configured with a synchronous Run Lambda rule.
If you call PutRawMessageContent on a delivered or sent message, the message remains unchanged, even
though GetRawMessageContent returns an updated message.
putRawMessageContentAsync in interface AmazonWorkMailMessageFlowAsyncpublic Future<PutRawMessageContentResult> putRawMessageContentAsync(PutRawMessageContentRequest request, AsyncHandler<PutRawMessageContentRequest,PutRawMessageContentResult> asyncHandler)
AmazonWorkMailMessageFlowAsyncUpdates the raw content of an in-transit email message, in MIME format.
This example describes how to update in-transit email message. For more information and examples for using this API, see Updating message content with AWS Lambda.
Updates to an in-transit message only appear when you call PutRawMessageContent from an AWS Lambda
function configured with a synchronous Run Lambda rule.
If you call PutRawMessageContent on a delivered or sent message, the message remains unchanged, even
though GetRawMessageContent returns an updated message.
putRawMessageContentAsync in interface AmazonWorkMailMessageFlowAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to
calling this method.shutdown in interface AmazonWorkMailMessageFlowshutdown in class AmazonWorkMailMessageFlowClient