Interface SavingsplansClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.
Savings Plans are a pricing model that offer significant savings on Amazon Web Services usage (for example, on Amazon EC2 instances). You commit to a consistent amount of usage per hour, in the specified currency, for a term of one or three years, and receive a lower price for that usage. For more information, see the Amazon Web Services Savings Plans User Guide.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionstatic SavingsplansClientBuilder
builder()
Create a builder that can be used to configure and create aSavingsplansClient
.static SavingsplansClient
create()
Create aSavingsplansClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default CreateSavingsPlanResponse
createSavingsPlan
(Consumer<CreateSavingsPlanRequest.Builder> createSavingsPlanRequest) Creates a Savings Plan.default CreateSavingsPlanResponse
createSavingsPlan
(CreateSavingsPlanRequest createSavingsPlanRequest) Creates a Savings Plan.default DeleteQueuedSavingsPlanResponse
deleteQueuedSavingsPlan
(Consumer<DeleteQueuedSavingsPlanRequest.Builder> deleteQueuedSavingsPlanRequest) Deletes the queued purchase for the specified Savings Plan.default DeleteQueuedSavingsPlanResponse
deleteQueuedSavingsPlan
(DeleteQueuedSavingsPlanRequest deleteQueuedSavingsPlanRequest) Deletes the queued purchase for the specified Savings Plan.default DescribeSavingsPlanRatesResponse
describeSavingsPlanRates
(Consumer<DescribeSavingsPlanRatesRequest.Builder> describeSavingsPlanRatesRequest) Describes the rates for the specified Savings Plan.default DescribeSavingsPlanRatesResponse
describeSavingsPlanRates
(DescribeSavingsPlanRatesRequest describeSavingsPlanRatesRequest) Describes the rates for the specified Savings Plan.default DescribeSavingsPlansResponse
describeSavingsPlans
(Consumer<DescribeSavingsPlansRequest.Builder> describeSavingsPlansRequest) Describes the specified Savings Plans.default DescribeSavingsPlansResponse
describeSavingsPlans
(DescribeSavingsPlansRequest describeSavingsPlansRequest) Describes the specified Savings Plans.describeSavingsPlansOfferingRates
(Consumer<DescribeSavingsPlansOfferingRatesRequest.Builder> describeSavingsPlansOfferingRatesRequest) Describes the offering rates for the specified Savings Plans.describeSavingsPlansOfferingRates
(DescribeSavingsPlansOfferingRatesRequest describeSavingsPlansOfferingRatesRequest) Describes the offering rates for the specified Savings Plans.describeSavingsPlansOfferings
(Consumer<DescribeSavingsPlansOfferingsRequest.Builder> describeSavingsPlansOfferingsRequest) Describes the offerings for the specified Savings Plans.describeSavingsPlansOfferings
(DescribeSavingsPlansOfferingsRequest describeSavingsPlansOfferingsRequest) Describes the offerings for the specified Savings Plans.default ListTagsForResourceResponse
listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags for the specified resource.default ListTagsForResourceResponse
listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags for the specified resource.default ReturnSavingsPlanResponse
returnSavingsPlan
(Consumer<ReturnSavingsPlanRequest.Builder> returnSavingsPlanRequest) Returns the specified Savings Plan.default ReturnSavingsPlanResponse
returnSavingsPlan
(ReturnSavingsPlanRequest returnSavingsPlanRequest) Returns the specified Savings Plan.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadata
default TagResourceResponse
tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds the specified tags to the specified resource.default TagResourceResponse
tagResource
(TagResourceRequest tagResourceRequest) Adds the specified tags to the specified resource.default UntagResourceResponse
untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes the specified tags from the specified resource.default 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 CreateSavingsPlanResponse createSavingsPlan(CreateSavingsPlanRequest createSavingsPlanRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, SavingsplansException Creates a Savings Plan.
- Parameters:
createSavingsPlanRequest
-- Returns:
- Result of the CreateSavingsPlan operation returned by the service.
- See Also:
-
createSavingsPlan
default CreateSavingsPlanResponse createSavingsPlan(Consumer<CreateSavingsPlanRequest.Builder> createSavingsPlanRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, SavingsplansException 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:
- Result of the CreateSavingsPlan operation returned by the service.
- See Also:
-
deleteQueuedSavingsPlan
default DeleteQueuedSavingsPlanResponse deleteQueuedSavingsPlan(DeleteQueuedSavingsPlanRequest deleteQueuedSavingsPlanRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, SavingsplansException Deletes the queued purchase for the specified Savings Plan.
- Parameters:
deleteQueuedSavingsPlanRequest
-- Returns:
- Result of the DeleteQueuedSavingsPlan operation returned by the service.
- See Also:
-
deleteQueuedSavingsPlan
default DeleteQueuedSavingsPlanResponse deleteQueuedSavingsPlan(Consumer<DeleteQueuedSavingsPlanRequest.Builder> deleteQueuedSavingsPlanRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, SavingsplansException 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:
- Result of the DeleteQueuedSavingsPlan operation returned by the service.
- See Also:
-
describeSavingsPlanRates
default DescribeSavingsPlanRatesResponse describeSavingsPlanRates(DescribeSavingsPlanRatesRequest describeSavingsPlanRatesRequest) throws ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, SavingsplansException Describes the rates for the specified Savings Plan.
- Parameters:
describeSavingsPlanRatesRequest
-- Returns:
- Result of the DescribeSavingsPlanRates operation returned by the service.
- See Also:
-
describeSavingsPlanRates
default DescribeSavingsPlanRatesResponse describeSavingsPlanRates(Consumer<DescribeSavingsPlanRatesRequest.Builder> describeSavingsPlanRatesRequest) throws ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, SavingsplansException Describes the rates for the specified Savings Plan.
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:
- Result of the DescribeSavingsPlanRates operation returned by the service.
- See Also:
-
describeSavingsPlans
default DescribeSavingsPlansResponse describeSavingsPlans(DescribeSavingsPlansRequest describeSavingsPlansRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, SavingsplansException Describes the specified Savings Plans.
- Parameters:
describeSavingsPlansRequest
-- Returns:
- Result of the DescribeSavingsPlans operation returned by the service.
- See Also:
-
describeSavingsPlans
default DescribeSavingsPlansResponse describeSavingsPlans(Consumer<DescribeSavingsPlansRequest.Builder> describeSavingsPlansRequest) throws InternalServerException, ValidationException, AwsServiceException, SdkClientException, SavingsplansException 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:
- Result of the DescribeSavingsPlans operation returned by the service.
- See Also:
-
describeSavingsPlansOfferingRates
default DescribeSavingsPlansOfferingRatesResponse describeSavingsPlansOfferingRates(DescribeSavingsPlansOfferingRatesRequest describeSavingsPlansOfferingRatesRequest) throws ValidationException, InternalServerException, AwsServiceException, SdkClientException, SavingsplansException Describes the offering rates for the specified Savings Plans.
- Parameters:
describeSavingsPlansOfferingRatesRequest
-- Returns:
- Result of the DescribeSavingsPlansOfferingRates operation returned by the service.
- See Also:
-
describeSavingsPlansOfferingRates
default DescribeSavingsPlansOfferingRatesResponse describeSavingsPlansOfferingRates(Consumer<DescribeSavingsPlansOfferingRatesRequest.Builder> describeSavingsPlansOfferingRatesRequest) throws ValidationException, InternalServerException, AwsServiceException, SdkClientException, SavingsplansException Describes the offering rates for the specified Savings Plans.
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:
- Result of the DescribeSavingsPlansOfferingRates operation returned by the service.
- See Also:
-
describeSavingsPlansOfferings
default DescribeSavingsPlansOfferingsResponse describeSavingsPlansOfferings(DescribeSavingsPlansOfferingsRequest describeSavingsPlansOfferingsRequest) throws ValidationException, InternalServerException, AwsServiceException, SdkClientException, SavingsplansException Describes the offerings for the specified Savings Plans.
- Parameters:
describeSavingsPlansOfferingsRequest
-- Returns:
- Result of the DescribeSavingsPlansOfferings operation returned by the service.
- See Also:
-
describeSavingsPlansOfferings
default DescribeSavingsPlansOfferingsResponse describeSavingsPlansOfferings(Consumer<DescribeSavingsPlansOfferingsRequest.Builder> describeSavingsPlansOfferingsRequest) throws ValidationException, InternalServerException, AwsServiceException, SdkClientException, SavingsplansException Describes the offerings for the specified Savings Plans.
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:
- Result of the DescribeSavingsPlansOfferings operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, SavingsplansException Lists the tags for the specified resource.
- Parameters:
listTagsForResourceRequest
-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, SavingsplansException 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:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
returnSavingsPlan
default ReturnSavingsPlanResponse returnSavingsPlan(ReturnSavingsPlanRequest returnSavingsPlanRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, SavingsplansException Returns the specified Savings Plan.
- Parameters:
returnSavingsPlanRequest
-- Returns:
- Result of the ReturnSavingsPlan operation returned by the service.
- See Also:
-
returnSavingsPlan
default ReturnSavingsPlanResponse returnSavingsPlan(Consumer<ReturnSavingsPlanRequest.Builder> returnSavingsPlanRequest) throws ValidationException, ResourceNotFoundException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, SavingsplansException Returns the specified Savings Plan.
This is a convenience which creates an instance of the
ReturnSavingsPlanRequest.Builder
avoiding the need to create one manually viaReturnSavingsPlanRequest.builder()
- Parameters:
returnSavingsPlanRequest
- AConsumer
that will call methods onReturnSavingsPlanRequest.Builder
to create a request.- Returns:
- Result of the ReturnSavingsPlan operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, SavingsplansException Adds the specified tags to the specified resource.
- Parameters:
tagResourceRequest
-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, SavingsplansException 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:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, SavingsplansException Removes the specified tags from the specified resource.
- Parameters:
untagResourceRequest
-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, SavingsplansException 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:
- Result of the UntagResource operation returned by the service.
- See Also:
-
create
Create aSavingsplansClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aSavingsplansClient
. -
serviceMetadata
-
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
-