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
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionstatic SavingsplansClientBuilderbuilder()Create a builder that can be used to configure and create aSavingsplansClient.static SavingsplansClientcreate()Create aSavingsplansClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateSavingsPlanResponsecreateSavingsPlan(Consumer<CreateSavingsPlanRequest.Builder> createSavingsPlanRequest) Creates a Savings Plan.default CreateSavingsPlanResponsecreateSavingsPlan(CreateSavingsPlanRequest createSavingsPlanRequest) Creates a Savings Plan.default DeleteQueuedSavingsPlanResponsedeleteQueuedSavingsPlan(Consumer<DeleteQueuedSavingsPlanRequest.Builder> deleteQueuedSavingsPlanRequest) Deletes the queued purchase for the specified Savings Plan.default DeleteQueuedSavingsPlanResponsedeleteQueuedSavingsPlan(DeleteQueuedSavingsPlanRequest deleteQueuedSavingsPlanRequest) Deletes the queued purchase for the specified Savings Plan.default DescribeSavingsPlanRatesResponsedescribeSavingsPlanRates(Consumer<DescribeSavingsPlanRatesRequest.Builder> describeSavingsPlanRatesRequest) Describes the rates for the specified Savings Plan.default DescribeSavingsPlanRatesResponsedescribeSavingsPlanRates(DescribeSavingsPlanRatesRequest describeSavingsPlanRatesRequest) Describes the rates for the specified Savings Plan.default DescribeSavingsPlansResponsedescribeSavingsPlans(Consumer<DescribeSavingsPlansRequest.Builder> describeSavingsPlansRequest) Describes the specified Savings Plans.default DescribeSavingsPlansResponsedescribeSavingsPlans(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 ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags for the specified resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags for the specified resource.default ReturnSavingsPlanResponsereturnSavingsPlan(Consumer<ReturnSavingsPlanRequest.Builder> returnSavingsPlanRequest) Returns the specified Savings Plan.default ReturnSavingsPlanResponsereturnSavingsPlan(ReturnSavingsPlanRequest returnSavingsPlanRequest) Returns the specified Savings Plan.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds the specified tags to the specified resource.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Adds the specified tags to the specified resource.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes the specified tags from the specified resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes the specified tags from the specified resource.Methods 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
-
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.Builderavoiding the need to create one manually viaCreateSavingsPlanRequest.builder()- Parameters:
createSavingsPlanRequest- AConsumerthat will call methods onCreateSavingsPlanRequest.Builderto 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.Builderavoiding the need to create one manually viaDeleteQueuedSavingsPlanRequest.builder()- Parameters:
deleteQueuedSavingsPlanRequest- AConsumerthat will call methods onDeleteQueuedSavingsPlanRequest.Builderto 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.Builderavoiding the need to create one manually viaDescribeSavingsPlanRatesRequest.builder()- Parameters:
describeSavingsPlanRatesRequest- AConsumerthat will call methods onDescribeSavingsPlanRatesRequest.Builderto 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.Builderavoiding the need to create one manually viaDescribeSavingsPlansRequest.builder()- Parameters:
describeSavingsPlansRequest- AConsumerthat will call methods onDescribeSavingsPlansRequest.Builderto 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.Builderavoiding the need to create one manually viaDescribeSavingsPlansOfferingRatesRequest.builder()- Parameters:
describeSavingsPlansOfferingRatesRequest- AConsumerthat will call methods onDescribeSavingsPlansOfferingRatesRequest.Builderto 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.Builderavoiding the need to create one manually viaDescribeSavingsPlansOfferingsRequest.builder()- Parameters:
describeSavingsPlansOfferingsRequest- AConsumerthat will call methods onDescribeSavingsPlansOfferingsRequest.Builderto 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.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto 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.Builderavoiding the need to create one manually viaReturnSavingsPlanRequest.builder()- Parameters:
returnSavingsPlanRequest- AConsumerthat will call methods onReturnSavingsPlanRequest.Builderto 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.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto 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.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
create
Create aSavingsplansClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aSavingsplansClient. -
serviceMetadata
-
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
-