public interface AwsServiceClient
Modifier and Type | Field and Description |
---|---|
static NamedServiceClientFactory<AwsServiceClient> |
factory |
Modifier and Type | Method and Description |
---|---|
Task<Void> |
execute(AwsRequest request)
Executes the AWS request.
|
<ResultT> Task<ResultT> |
execute(AwsRequest request,
Class<ResultT> resultClass)
Executes the AWS request, and decodes the result into an instance of the
specified type.
|
<ResultT> Task<ResultT> |
execute(AwsRequest request,
Class<ResultT> resultClass,
CodecRegistry codecRegistry)
Executes the AWS request, and decodes the result into an instance of the
specified type.
|
<ResultT> Task<ResultT> |
execute(AwsRequest request,
Decoder<ResultT> resultDecoder)
Executes the AWS request, and decodes the result into an instance of the
specified type.
|
Task<Void> |
execute(AwsRequest request,
Long requestTimeout)
Executes the AWS request.
|
<ResultT> Task<ResultT> |
execute(AwsRequest request,
Long requestTimeout,
Class<ResultT> resultClass)
Executes the AWS request, and decodes the result into an instance of the
specified type.
|
<ResultT> Task<ResultT> |
execute(AwsRequest request,
Long requestTimeout,
Class<ResultT> resultClass,
CodecRegistry codecRegistry)
Executes the AWS request, and decodes the result into an instance of the
specified type.
|
<ResultT> Task<ResultT> |
execute(AwsRequest request,
Long requestTimeout,
Decoder<ResultT> resultDecoder)
Executes the AWS request, and decodes the result into an instance of the
specified type.
|
CodecRegistry |
getCodecRegistry()
Get the codec registry that will be used to decode responses when a codec registry.
|
AwsServiceClient |
withCodecRegistry(CodecRegistry codecRegistry)
Create a new AwsServiceClient instance with a different codec registry.
|
static final NamedServiceClientFactory<AwsServiceClient> factory
Task<Void> execute(@Nonnull AwsRequest request)
request
- the AWS request to execute.<ResultT> Task<ResultT> execute(@Nonnull AwsRequest request, @Nonnull Decoder<ResultT> resultDecoder)
ResultT
- the type into which the response will be decoded.request
- the AWS request to execute.resultDecoder
- the Decoder
to use to decode the result into a value.<ResultT> Task<ResultT> execute(@Nonnull AwsRequest request, @Nonnull Class<ResultT> resultClass)
ResultT
- the type into which the response will be decoded.request
- the AWS request to execute.resultClass
- the class that the result should be decoded as.<ResultT> Task<ResultT> execute(@Nonnull AwsRequest request, @Nonnull Class<ResultT> resultClass, @Nonnull CodecRegistry codecRegistry)
ResultT
- the type into which the response will be decoded.request
- the AWS request to execute.resultClass
- the class that the result should be decoded as.codecRegistry
- the codec registry used for de/serialization of the function call.Task<Void> execute(@Nonnull AwsRequest request, @Nonnull Long requestTimeout)
request
- the AWS request to execute.requestTimeout
- the number of milliseconds the client should wait for a response from the
server before failing with an error.<ResultT> Task<ResultT> execute(@Nonnull AwsRequest request, @Nonnull Long requestTimeout, @Nonnull Decoder<ResultT> resultDecoder)
ResultT
- the type into which the response will be decoded.request
- the AWS request to execute.requestTimeout
- the number of milliseconds the client should wait for a response from the
server before failing with an error.resultDecoder
- the Decoder
to use to decode the result into a value.<ResultT> Task<ResultT> execute(@Nonnull AwsRequest request, @Nonnull Long requestTimeout, @Nonnull Class<ResultT> resultClass)
ResultT
- the type into which the response will be decoded.request
- the AWS request to execute.requestTimeout
- the number of milliseconds the client should wait for a response from the
server before failing with an error.resultClass
- the class that the result should be decoded as.<ResultT> Task<ResultT> execute(@Nonnull AwsRequest request, @Nonnull Long requestTimeout, @Nonnull Class<ResultT> resultClass, @Nonnull CodecRegistry codecRegistry)
ResultT
- the type into which the response will be decoded.request
- the AWS request to execute.requestTimeout
- the number of milliseconds the client should wait for a response from the
server before failing with an error.resultClass
- the class that the result should be decoded as.codecRegistry
- the codec registry used for de/serialization of the function call.CodecRegistry getCodecRegistry()
CodecRegistry
AwsServiceClient withCodecRegistry(@Nonnull CodecRegistry codecRegistry)
codecRegistry
- the new CodecRegistry
for the client.