public final class AwsServiceClientImpl extends Object implements AwsServiceClient
factory
Constructor and Description |
---|
AwsServiceClientImpl(CoreAwsServiceClient client) |
Modifier and Type | Method and Description |
---|---|
void |
execute(AwsRequest request)
Executes the AWS request.
|
<ResultT> ResultT |
execute(AwsRequest request,
Class<ResultT> resultClass)
Executes the AWS request, and decodes the result into an instance of the
specified type.
|
<ResultT> 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> ResultT |
execute(AwsRequest request,
Decoder<ResultT> resultDecoder)
Executes the AWS request, and decodes the result into an instance of the
specified type.
|
void |
execute(AwsRequest request,
Long requestTimeout)
Executes the AWS request.
|
<ResultT> 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> 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> 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.
|
public AwsServiceClientImpl(CoreAwsServiceClient client)
public void execute(AwsRequest request)
execute
in interface AwsServiceClient
request
- the AWS request to execute.public <ResultT> ResultT execute(AwsRequest request, Decoder<ResultT> resultDecoder)
execute
in interface AwsServiceClient
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.public <ResultT> ResultT execute(AwsRequest request, Class<ResultT> resultClass)
execute
in interface AwsServiceClient
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.public <ResultT> ResultT execute(AwsRequest request, Class<ResultT> resultClass, CodecRegistry codecRegistry)
execute
in interface AwsServiceClient
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.public void execute(AwsRequest request, Long requestTimeout)
execute
in interface AwsServiceClient
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.public <ResultT> ResultT execute(AwsRequest request, Long requestTimeout, Decoder<ResultT> resultDecoder)
execute
in interface AwsServiceClient
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.public <ResultT> ResultT execute(AwsRequest request, Long requestTimeout, Class<ResultT> resultClass)
execute
in interface AwsServiceClient
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.public <ResultT> ResultT execute(AwsRequest request, Long requestTimeout, Class<ResultT> resultClass, CodecRegistry codecRegistry)
execute
in interface AwsServiceClient
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.public CodecRegistry getCodecRegistry()
getCodecRegistry
in interface AwsServiceClient
CodecRegistry
public AwsServiceClient withCodecRegistry(CodecRegistry codecRegistry)
withCodecRegistry
in interface AwsServiceClient
codecRegistry
- the new CodecRegistry
for the client.