@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_METRIC
ENDPOINT_PREFIX
builder, getCachedResponseMetadata, getRawMessageContent, putRawMessageContent
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCachedResponseMetadata, getRawMessageContent, putRawMessageContent
public static AmazonWorkMailMessageFlowAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<GetRawMessageContentResult> getRawMessageContentAsync(GetRawMessageContentRequest request)
AmazonWorkMailMessageFlowAsync
Retrieves the raw content of an in-transit email message, in MIME format.
getRawMessageContentAsync
in interface AmazonWorkMailMessageFlowAsync
public Future<GetRawMessageContentResult> getRawMessageContentAsync(GetRawMessageContentRequest request, AsyncHandler<GetRawMessageContentRequest,GetRawMessageContentResult> asyncHandler)
AmazonWorkMailMessageFlowAsync
Retrieves the raw content of an in-transit email message, in MIME format.
getRawMessageContentAsync
in interface AmazonWorkMailMessageFlowAsync
asyncHandler
- 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)
AmazonWorkMailMessageFlowAsync
Updates 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 AmazonWorkMailMessageFlowAsync
public Future<PutRawMessageContentResult> putRawMessageContentAsync(PutRawMessageContentRequest request, AsyncHandler<PutRawMessageContentRequest,PutRawMessageContentResult> asyncHandler)
AmazonWorkMailMessageFlowAsync
Updates 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 AmazonWorkMailMessageFlowAsync
asyncHandler
- 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 AmazonWorkMailMessageFlow
shutdown
in class AmazonWorkMailMessageFlowClient