Interface SavingsplansAsyncClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.
Savings Plans are a pricing model that offer significant savings on AWS usage (for example, on Amazon EC2 instances). You commit to a consistent amount of usage, in USD per hour, for a term of 1 or 3 years, and receive a lower price for that usage. For more information, see the AWS Savings Plans User Guide.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Value 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 aSavingsplansAsyncClient
.static SavingsplansAsyncClient
create()
Create aSavingsplansAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.createSavingsPlan
(Consumer<CreateSavingsPlanRequest.Builder> createSavingsPlanRequest) Creates a Savings Plan.createSavingsPlan
(CreateSavingsPlanRequest createSavingsPlanRequest) Creates a Savings Plan.deleteQueuedSavingsPlan
(Consumer<DeleteQueuedSavingsPlanRequest.Builder> deleteQueuedSavingsPlanRequest) Deletes the queued purchase for the specified Savings Plan.deleteQueuedSavingsPlan
(DeleteQueuedSavingsPlanRequest deleteQueuedSavingsPlanRequest) Deletes the queued purchase for the specified Savings Plan.describeSavingsPlanRates
(Consumer<DescribeSavingsPlanRatesRequest.Builder> describeSavingsPlanRatesRequest) Describes the specified Savings Plans rates.describeSavingsPlanRates
(DescribeSavingsPlanRatesRequest describeSavingsPlanRatesRequest) Describes the specified Savings Plans rates.describeSavingsPlans
(Consumer<DescribeSavingsPlansRequest.Builder> describeSavingsPlansRequest) Describes the specified Savings Plans.describeSavingsPlans
(DescribeSavingsPlansRequest describeSavingsPlansRequest) Describes the specified Savings Plans.describeSavingsPlansOfferingRates
(Consumer<DescribeSavingsPlansOfferingRatesRequest.Builder> describeSavingsPlansOfferingRatesRequest) Describes the specified Savings Plans offering rates.describeSavingsPlansOfferingRates
(DescribeSavingsPlansOfferingRatesRequest describeSavingsPlansOfferingRatesRequest) Describes the specified Savings Plans offering rates.describeSavingsPlansOfferings
(Consumer<DescribeSavingsPlansOfferingsRequest.Builder> describeSavingsPlansOfferingsRequest) Describes the specified Savings Plans offerings.describeSavingsPlansOfferings
(DescribeSavingsPlansOfferingsRequest describeSavingsPlansOfferingsRequest) Describes the specified Savings Plans offerings.listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags for the specified resource.listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags for the specified resource.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationdefault CompletableFuture
<TagResourceResponse> tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds the specified tags to the specified resource.default CompletableFuture
<TagResourceResponse> tagResource
(TagResourceRequest tagResourceRequest) Adds the specified tags to the specified resource.default CompletableFuture
<UntagResourceResponse> untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes the specified tags from the specified resource.default CompletableFuture
<UntagResourceResponse> untagResource
(UntagResourceRequest untagResourceRequest) Removes the specified tags from the specified resource.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods 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
-
createSavingsPlan
default CompletableFuture<CreateSavingsPlanResponse> createSavingsPlan(CreateSavingsPlanRequest createSavingsPlanRequest) Creates a Savings Plan.
- Parameters:
createSavingsPlanRequest
-- Returns:
- A Java Future containing the result of the CreateSavingsPlan operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The specified resource was not found.
- ValidationException One of the input parameters is not valid.
- InternalServerException An unexpected error occurred.
- ServiceQuotaExceededException A service quota has been exceeded.
- 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.
- SavingsplansException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createSavingsPlan
default CompletableFuture<CreateSavingsPlanResponse> createSavingsPlan(Consumer<CreateSavingsPlanRequest.Builder> createSavingsPlanRequest) Creates a Savings Plan.
This is a convenience which creates an instance of the
CreateSavingsPlanRequest.Builder
avoiding the need to create one manually viaCreateSavingsPlanRequest.builder()
- Parameters:
createSavingsPlanRequest
- AConsumer
that will call methods onCreateSavingsPlanRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateSavingsPlan operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The specified resource was not found.
- ValidationException One of the input parameters is not valid.
- InternalServerException An unexpected error occurred.
- ServiceQuotaExceededException A service quota has been exceeded.
- 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.
- SavingsplansException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteQueuedSavingsPlan
default CompletableFuture<DeleteQueuedSavingsPlanResponse> deleteQueuedSavingsPlan(DeleteQueuedSavingsPlanRequest deleteQueuedSavingsPlanRequest) Deletes the queued purchase for the specified Savings Plan.
- Parameters:
deleteQueuedSavingsPlanRequest
-- Returns:
- A Java Future containing the result of the DeleteQueuedSavingsPlan operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ValidationException One of the input parameters is not valid.
- ResourceNotFoundException The specified resource was not found.
- InternalServerException An unexpected error occurred.
- ServiceQuotaExceededException A service quota has been exceeded.
- 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.
- SavingsplansException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteQueuedSavingsPlan
default CompletableFuture<DeleteQueuedSavingsPlanResponse> deleteQueuedSavingsPlan(Consumer<DeleteQueuedSavingsPlanRequest.Builder> deleteQueuedSavingsPlanRequest) Deletes the queued purchase for the specified Savings Plan.
This is a convenience which creates an instance of the
DeleteQueuedSavingsPlanRequest.Builder
avoiding the need to create one manually viaDeleteQueuedSavingsPlanRequest.builder()
- Parameters:
deleteQueuedSavingsPlanRequest
- AConsumer
that will call methods onDeleteQueuedSavingsPlanRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteQueuedSavingsPlan operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ValidationException One of the input parameters is not valid.
- ResourceNotFoundException The specified resource was not found.
- InternalServerException An unexpected error occurred.
- ServiceQuotaExceededException A service quota has been exceeded.
- 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.
- SavingsplansException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeSavingsPlanRates
default CompletableFuture<DescribeSavingsPlanRatesResponse> describeSavingsPlanRates(DescribeSavingsPlanRatesRequest describeSavingsPlanRatesRequest) Describes the specified Savings Plans rates.
- Parameters:
describeSavingsPlanRatesRequest
-- Returns:
- A Java Future containing the result of the DescribeSavingsPlanRates operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The specified resource was not found.
- ValidationException One of the input parameters is not valid.
- 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.
- SavingsplansException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeSavingsPlanRates
default CompletableFuture<DescribeSavingsPlanRatesResponse> describeSavingsPlanRates(Consumer<DescribeSavingsPlanRatesRequest.Builder> describeSavingsPlanRatesRequest) Describes the specified Savings Plans rates.
This is a convenience which creates an instance of the
DescribeSavingsPlanRatesRequest.Builder
avoiding the need to create one manually viaDescribeSavingsPlanRatesRequest.builder()
- Parameters:
describeSavingsPlanRatesRequest
- AConsumer
that will call methods onDescribeSavingsPlanRatesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DescribeSavingsPlanRates operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The specified resource was not found.
- ValidationException One of the input parameters is not valid.
- 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.
- SavingsplansException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeSavingsPlans
default CompletableFuture<DescribeSavingsPlansResponse> describeSavingsPlans(DescribeSavingsPlansRequest describeSavingsPlansRequest) Describes the specified Savings Plans.
- Parameters:
describeSavingsPlansRequest
-- Returns:
- A Java Future containing the result of the DescribeSavingsPlans operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalServerException An unexpected error occurred.
- ValidationException One of the input parameters is not valid.
- 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.
- SavingsplansException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeSavingsPlans
default CompletableFuture<DescribeSavingsPlansResponse> describeSavingsPlans(Consumer<DescribeSavingsPlansRequest.Builder> describeSavingsPlansRequest) Describes the specified Savings Plans.
This is a convenience which creates an instance of the
DescribeSavingsPlansRequest.Builder
avoiding the need to create one manually viaDescribeSavingsPlansRequest.builder()
- Parameters:
describeSavingsPlansRequest
- AConsumer
that will call methods onDescribeSavingsPlansRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DescribeSavingsPlans operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalServerException An unexpected error occurred.
- ValidationException One of the input parameters is not valid.
- 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.
- SavingsplansException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeSavingsPlansOfferingRates
default CompletableFuture<DescribeSavingsPlansOfferingRatesResponse> describeSavingsPlansOfferingRates(DescribeSavingsPlansOfferingRatesRequest describeSavingsPlansOfferingRatesRequest) Describes the specified Savings Plans offering rates.
- Parameters:
describeSavingsPlansOfferingRatesRequest
-- Returns:
- A Java Future containing the result of the DescribeSavingsPlansOfferingRates operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ValidationException One of the input parameters is not valid.
- InternalServerException An unexpected error occurred.
- 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.
- SavingsplansException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeSavingsPlansOfferingRates
default CompletableFuture<DescribeSavingsPlansOfferingRatesResponse> describeSavingsPlansOfferingRates(Consumer<DescribeSavingsPlansOfferingRatesRequest.Builder> describeSavingsPlansOfferingRatesRequest) Describes the specified Savings Plans offering rates.
This is a convenience which creates an instance of the
DescribeSavingsPlansOfferingRatesRequest.Builder
avoiding the need to create one manually viaDescribeSavingsPlansOfferingRatesRequest.builder()
- Parameters:
describeSavingsPlansOfferingRatesRequest
- AConsumer
that will call methods onDescribeSavingsPlansOfferingRatesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DescribeSavingsPlansOfferingRates operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ValidationException One of the input parameters is not valid.
- InternalServerException An unexpected error occurred.
- 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.
- SavingsplansException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeSavingsPlansOfferings
default CompletableFuture<DescribeSavingsPlansOfferingsResponse> describeSavingsPlansOfferings(DescribeSavingsPlansOfferingsRequest describeSavingsPlansOfferingsRequest) Describes the specified Savings Plans offerings.
- Parameters:
describeSavingsPlansOfferingsRequest
-- Returns:
- A Java Future containing the result of the DescribeSavingsPlansOfferings operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ValidationException One of the input parameters is not valid.
- InternalServerException An unexpected error occurred.
- 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.
- SavingsplansException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeSavingsPlansOfferings
default CompletableFuture<DescribeSavingsPlansOfferingsResponse> describeSavingsPlansOfferings(Consumer<DescribeSavingsPlansOfferingsRequest.Builder> describeSavingsPlansOfferingsRequest) Describes the specified Savings Plans offerings.
This is a convenience which creates an instance of the
DescribeSavingsPlansOfferingsRequest.Builder
avoiding the need to create one manually viaDescribeSavingsPlansOfferingsRequest.builder()
- Parameters:
describeSavingsPlansOfferingsRequest
- AConsumer
that will call methods onDescribeSavingsPlansOfferingsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DescribeSavingsPlansOfferings operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ValidationException One of the input parameters is not valid.
- InternalServerException An unexpected error occurred.
- 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.
- SavingsplansException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags for the specified resource.
- Parameters:
listTagsForResourceRequest
-- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The specified resource was not found.
- ValidationException One of the input parameters is not valid.
- InternalServerException An unexpected error occurred.
- 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.
- SavingsplansException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags for the specified resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builder
avoiding the need to create one manually viaListTagsForResourceRequest.builder()
- Parameters:
listTagsForResourceRequest
- AConsumer
that will call methods onListTagsForResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The specified resource was not found.
- ValidationException One of the input parameters is not valid.
- InternalServerException An unexpected error occurred.
- 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.
- SavingsplansException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
Adds the specified tags to the specified resource.
- Parameters:
tagResourceRequest
-- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The specified resource was not found.
- ServiceQuotaExceededException A service quota has been exceeded.
- ValidationException One of the input parameters is not valid.
- InternalServerException An unexpected error occurred.
- 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.
- SavingsplansException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds the specified tags to the specified resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builder
avoiding the need to create one manually viaTagResourceRequest.builder()
- Parameters:
tagResourceRequest
- AConsumer
that will call methods onTagResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The specified resource was not found.
- ServiceQuotaExceededException A service quota has been exceeded.
- ValidationException One of the input parameters is not valid.
- InternalServerException An unexpected error occurred.
- 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.
- SavingsplansException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes the specified tags from the specified resource.
- Parameters:
untagResourceRequest
-- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The specified resource was not found.
- ValidationException One of the input parameters is not valid.
- InternalServerException An unexpected error occurred.
- 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.
- SavingsplansException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes the specified tags from the specified resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builder
avoiding the need to create one manually viaUntagResourceRequest.builder()
- Parameters:
untagResourceRequest
- AConsumer
that will call methods onUntagResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The specified resource was not found.
- ValidationException One of the input parameters is not valid.
- InternalServerException An unexpected error occurred.
- 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.
- SavingsplansException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-
create
Create aSavingsplansAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aSavingsplansAsyncClient
.
-