@Generated(value="software.amazon.awssdk:codegen") public interface SavingsplansAsyncClient extends 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.
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider . |
static String |
SERVICE_NAME |
serviceName
close
static final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider
.static SavingsplansAsyncClient create()
SavingsplansAsyncClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from the
DefaultCredentialsProvider
.static SavingsplansAsyncClientBuilder builder()
SavingsplansAsyncClient
.default CompletableFuture<CreateSavingsPlanResponse> createSavingsPlan(CreateSavingsPlanRequest createSavingsPlanRequest)
Creates a Savings Plan.
createSavingsPlanRequest
- 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 via CreateSavingsPlanRequest.builder()
createSavingsPlanRequest
- A Consumer
that will call methods on CreateSavingsPlanRequest.Builder
to create a request.default CompletableFuture<DeleteQueuedSavingsPlanResponse> deleteQueuedSavingsPlan(DeleteQueuedSavingsPlanRequest deleteQueuedSavingsPlanRequest)
Deletes the queued purchase for the specified Savings Plan.
deleteQueuedSavingsPlanRequest
- 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 via DeleteQueuedSavingsPlanRequest.builder()
deleteQueuedSavingsPlanRequest
- A Consumer
that will call methods on DeleteQueuedSavingsPlanRequest.Builder
to create a
request.default CompletableFuture<DescribeSavingsPlanRatesResponse> describeSavingsPlanRates(DescribeSavingsPlanRatesRequest describeSavingsPlanRatesRequest)
Describes the specified Savings Plans rates.
describeSavingsPlanRatesRequest
- 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 via DescribeSavingsPlanRatesRequest.builder()
describeSavingsPlanRatesRequest
- A Consumer
that will call methods on DescribeSavingsPlanRatesRequest.Builder
to create a
request.default CompletableFuture<DescribeSavingsPlansResponse> describeSavingsPlans(DescribeSavingsPlansRequest describeSavingsPlansRequest)
Describes the specified Savings Plans.
describeSavingsPlansRequest
- 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 via DescribeSavingsPlansRequest.builder()
describeSavingsPlansRequest
- A Consumer
that will call methods on DescribeSavingsPlansRequest.Builder
to create a
request.default CompletableFuture<DescribeSavingsPlansOfferingRatesResponse> describeSavingsPlansOfferingRates(DescribeSavingsPlansOfferingRatesRequest describeSavingsPlansOfferingRatesRequest)
Describes the specified Savings Plans offering rates.
describeSavingsPlansOfferingRatesRequest
- 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 via DescribeSavingsPlansOfferingRatesRequest.builder()
describeSavingsPlansOfferingRatesRequest
- A Consumer
that will call methods on DescribeSavingsPlansOfferingRatesRequest.Builder
to
create a request.default CompletableFuture<DescribeSavingsPlansOfferingsResponse> describeSavingsPlansOfferings(DescribeSavingsPlansOfferingsRequest describeSavingsPlansOfferingsRequest)
Describes the specified Savings Plans offerings.
describeSavingsPlansOfferingsRequest
- 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 via DescribeSavingsPlansOfferingsRequest.builder()
describeSavingsPlansOfferingsRequest
- A Consumer
that will call methods on DescribeSavingsPlansOfferingsRequest.Builder
to
create a request.default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Lists the tags for the specified resource.
listTagsForResourceRequest
- 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 via ListTagsForResourceRequest.builder()
listTagsForResourceRequest
- A Consumer
that will call methods on ListTagsForResourceRequest.Builder
to create a
request.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)
Adds the specified tags to the specified resource.
tagResourceRequest
- 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 via TagResourceRequest.builder()
tagResourceRequest
- A Consumer
that will call methods on TagResourceRequest.Builder
to create a request.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)
Removes the specified tags from the specified resource.
untagResourceRequest
- 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 via UntagResourceRequest.builder()
untagResourceRequest
- A Consumer
that will call methods on UntagResourceRequest.Builder
to create a request.