Interface RestXmlDataPlaneAsyncClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.The asynchronous client performs non-blocking I/O when configured with any
SdkAsyncHttpClient supported in the SDK. However, full non-blocking is not guaranteed as the async client may
perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API
call.
null-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a builder that can be used to configure and create aRestXmlDataPlaneAsyncClient.default CompletableFuture<CopyObjectResponse> copyObject(Consumer<CopyObjectRequest.Builder> copyObjectRequest) Invokes the CopyObject operation asynchronously.default CompletableFuture<CopyObjectResponse> copyObject(CopyObjectRequest copyObjectRequest) Invokes the CopyObject operation asynchronously.static RestXmlDataPlaneAsyncClientcreate()Create aRestXmlDataPlaneAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CompletableFuture<GetMetricDataResponse> getMetricData(Consumer<GetMetricDataRequest.Builder> getMetricDataRequest) Invokes the GetMetricData operation asynchronously.default CompletableFuture<GetMetricDataResponse> getMetricData(GetMetricDataRequest getMetricDataRequest) Invokes the GetMetricData operation asynchronously.default CompletableFuture<GetObjectResponse> getObject(Consumer<GetObjectRequest.Builder> getObjectRequest) Invokes the GetObject operation asynchronously.default CompletableFuture<GetObjectResponse> getObject(GetObjectRequest getObjectRequest) Invokes the GetObject operation asynchronously.default CompletableFuture<HealthcheckResponse> healthcheck(Consumer<HealthcheckRequest.Builder> healthcheckRequest) Invokes the Healthcheck operation asynchronously.default CompletableFuture<HealthcheckResponse> healthcheck(HealthcheckRequest healthcheckRequest) Invokes the Healthcheck operation asynchronously.default CompletableFuture<PutMetricDataResponse> putMetricData(Consumer<PutMetricDataRequest.Builder> putMetricDataRequest) Invokes the PutMetricData operation asynchronously.default CompletableFuture<PutMetricDataResponse> putMetricData(PutMetricDataRequest putMetricDataRequest) Invokes the PutMetricData operation asynchronously.default CompletableFuture<PutObjectResponse> putObject(Consumer<PutObjectRequest.Builder> putObjectRequest) Invokes the PutObject operation asynchronously.default CompletableFuture<PutObjectResponse> putObject(PutObjectRequest putObjectRequest) Invokes the PutObject operation asynchronously.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
copyObject
Invokes the CopyObject operation asynchronously.- Parameters:
copyObjectRequest-- Returns:
- A Java Future containing the result of the CopyObject operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RestXmlDataPlaneException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
copyObject
default CompletableFuture<CopyObjectResponse> copyObject(Consumer<CopyObjectRequest.Builder> copyObjectRequest) Invokes the CopyObject operation asynchronously.
This is a convenience which creates an instance of the
CopyObjectRequest.Builderavoiding the need to create one manually viaCopyObjectRequest.builder()- Parameters:
copyObjectRequest- AConsumerthat will call methods onCopyObjectRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CopyObject operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RestXmlDataPlaneException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getMetricData
default CompletableFuture<GetMetricDataResponse> getMetricData(GetMetricDataRequest getMetricDataRequest) Invokes the GetMetricData operation asynchronously.- Parameters:
getMetricDataRequest-- Returns:
- A Java Future containing the result of the GetMetricData operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RestXmlDataPlaneException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getMetricData
default CompletableFuture<GetMetricDataResponse> getMetricData(Consumer<GetMetricDataRequest.Builder> getMetricDataRequest) Invokes the GetMetricData operation asynchronously.
This is a convenience which creates an instance of the
GetMetricDataRequest.Builderavoiding the need to create one manually viaGetMetricDataRequest.builder()- Parameters:
getMetricDataRequest- AConsumerthat will call methods onGetMetricDataRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetMetricData operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RestXmlDataPlaneException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getObject
Invokes the GetObject operation asynchronously.- Parameters:
getObjectRequest-- Returns:
- A Java Future containing the result of the GetObject operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RestXmlDataPlaneException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getObject
default CompletableFuture<GetObjectResponse> getObject(Consumer<GetObjectRequest.Builder> getObjectRequest) Invokes the GetObject operation asynchronously.
This is a convenience which creates an instance of the
GetObjectRequest.Builderavoiding the need to create one manually viaGetObjectRequest.builder()- Parameters:
getObjectRequest- AConsumerthat will call methods onGetObjectRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetObject operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RestXmlDataPlaneException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
healthcheck
Invokes the Healthcheck operation asynchronously.- Parameters:
healthcheckRequest-- Returns:
- A Java Future containing the result of the Healthcheck operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RestXmlDataPlaneException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
healthcheck
default CompletableFuture<HealthcheckResponse> healthcheck(Consumer<HealthcheckRequest.Builder> healthcheckRequest) Invokes the Healthcheck operation asynchronously.
This is a convenience which creates an instance of the
HealthcheckRequest.Builderavoiding the need to create one manually viaHealthcheckRequest.builder()- Parameters:
healthcheckRequest- AConsumerthat will call methods onHealthcheckRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the Healthcheck operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RestXmlDataPlaneException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putMetricData
default CompletableFuture<PutMetricDataResponse> putMetricData(PutMetricDataRequest putMetricDataRequest) Invokes the PutMetricData operation asynchronously.- Parameters:
putMetricDataRequest-- Returns:
- A Java Future containing the result of the PutMetricData operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RestXmlDataPlaneException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putMetricData
default CompletableFuture<PutMetricDataResponse> putMetricData(Consumer<PutMetricDataRequest.Builder> putMetricDataRequest) Invokes the PutMetricData operation asynchronously.
This is a convenience which creates an instance of the
PutMetricDataRequest.Builderavoiding the need to create one manually viaPutMetricDataRequest.builder()- Parameters:
putMetricDataRequest- AConsumerthat will call methods onPutMetricDataRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the PutMetricData operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RestXmlDataPlaneException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putObject
Invokes the PutObject operation asynchronously.- Parameters:
putObjectRequest-- Returns:
- A Java Future containing the result of the PutObject operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RestXmlDataPlaneException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putObject
default CompletableFuture<PutObjectResponse> putObject(Consumer<PutObjectRequest.Builder> putObjectRequest) Invokes the PutObject operation asynchronously.
This is a convenience which creates an instance of the
PutObjectRequest.Builderavoiding the need to create one manually viaPutObjectRequest.builder()- Parameters:
putObjectRequest- AConsumerthat will call methods onPutObjectRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the PutObject operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- RestXmlDataPlaneException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-
create
Create aRestXmlDataPlaneAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aRestXmlDataPlaneAsyncClient.
-