Package com.courier.services.async
Class MessageServiceAsyncImpl
-
- All Implemented Interfaces:
-
com.courier.services.async.MessageServiceAsync
public final class MessageServiceAsyncImpl implements MessageServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMessageServiceAsyncImpl.WithRawResponseImpl
-
Method Summary
Modifier and Type Method Description MessageServiceAsync.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. MessageServiceAsyncwithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. CompletableFuture<MessageRetrieveResponse>retrieve(MessageRetrieveParams params, RequestOptions requestOptions)CompletableFuture<MessageListResponse>list(MessageListParams params, RequestOptions requestOptions)CompletableFuture<MessageDetails>cancel(MessageCancelParams params, RequestOptions requestOptions)CompletableFuture<MessageContentResponse>content(MessageContentParams params, RequestOptions requestOptions)CompletableFuture<MessageHistoryResponse>history(MessageHistoryParams params, RequestOptions requestOptions)-
Methods inherited from class com.courier.services.async.MessageServiceAsync
cancel, cancel, cancel, cancel, cancel, content, content, content, content, content, history, history, history, history, history, list, list, list, retrieve, retrieve, retrieve, retrieve, retrieve -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
withRawResponse
MessageServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
MessageServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
retrieve
CompletableFuture<MessageRetrieveResponse> retrieve(MessageRetrieveParams params, RequestOptions requestOptions)
-
list
CompletableFuture<MessageListResponse> list(MessageListParams params, RequestOptions requestOptions)
-
cancel
CompletableFuture<MessageDetails> cancel(MessageCancelParams params, RequestOptions requestOptions)
-
content
CompletableFuture<MessageContentResponse> content(MessageContentParams params, RequestOptions requestOptions)
-
history
CompletableFuture<MessageHistoryResponse> history(MessageHistoryParams params, RequestOptions requestOptions)
-
-
-
-