@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSSavingsPlansAsyncClient extends AWSSavingsPlansClient implements AWSSavingsPlansAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
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.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIXbuilder, createSavingsPlan, deleteQueuedSavingsPlan, describeSavingsPlanRates, describeSavingsPlans, describeSavingsPlansOfferingRates, describeSavingsPlansOfferings, getCachedResponseMetadata, listTagsForResource, returnSavingsPlan, tagResource, untagResourceaddRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateSavingsPlan, deleteQueuedSavingsPlan, describeSavingsPlanRates, describeSavingsPlans, describeSavingsPlansOfferingRates, describeSavingsPlansOfferings, getCachedResponseMetadata, listTagsForResource, returnSavingsPlan, tagResource, untagResourcepublic static AWSSavingsPlansAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CreateSavingsPlanResult> createSavingsPlanAsync(CreateSavingsPlanRequest request)
AWSSavingsPlansAsyncCreates a Savings Plan.
createSavingsPlanAsync in interface AWSSavingsPlansAsyncpublic Future<CreateSavingsPlanResult> createSavingsPlanAsync(CreateSavingsPlanRequest request, AsyncHandler<CreateSavingsPlanRequest,CreateSavingsPlanResult> asyncHandler)
AWSSavingsPlansAsyncCreates a Savings Plan.
createSavingsPlanAsync in interface AWSSavingsPlansAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteQueuedSavingsPlanResult> deleteQueuedSavingsPlanAsync(DeleteQueuedSavingsPlanRequest request)
AWSSavingsPlansAsyncDeletes the queued purchase for the specified Savings Plan.
deleteQueuedSavingsPlanAsync in interface AWSSavingsPlansAsyncpublic Future<DeleteQueuedSavingsPlanResult> deleteQueuedSavingsPlanAsync(DeleteQueuedSavingsPlanRequest request, AsyncHandler<DeleteQueuedSavingsPlanRequest,DeleteQueuedSavingsPlanResult> asyncHandler)
AWSSavingsPlansAsyncDeletes the queued purchase for the specified Savings Plan.
deleteQueuedSavingsPlanAsync in interface AWSSavingsPlansAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeSavingsPlanRatesResult> describeSavingsPlanRatesAsync(DescribeSavingsPlanRatesRequest request)
AWSSavingsPlansAsyncDescribes the rates for the specified Savings Plan.
describeSavingsPlanRatesAsync in interface AWSSavingsPlansAsyncpublic Future<DescribeSavingsPlanRatesResult> describeSavingsPlanRatesAsync(DescribeSavingsPlanRatesRequest request, AsyncHandler<DescribeSavingsPlanRatesRequest,DescribeSavingsPlanRatesResult> asyncHandler)
AWSSavingsPlansAsyncDescribes the rates for the specified Savings Plan.
describeSavingsPlanRatesAsync in interface AWSSavingsPlansAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeSavingsPlansResult> describeSavingsPlansAsync(DescribeSavingsPlansRequest request)
AWSSavingsPlansAsyncDescribes the specified Savings Plans.
describeSavingsPlansAsync in interface AWSSavingsPlansAsyncpublic Future<DescribeSavingsPlansResult> describeSavingsPlansAsync(DescribeSavingsPlansRequest request, AsyncHandler<DescribeSavingsPlansRequest,DescribeSavingsPlansResult> asyncHandler)
AWSSavingsPlansAsyncDescribes the specified Savings Plans.
describeSavingsPlansAsync in interface AWSSavingsPlansAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeSavingsPlansOfferingRatesResult> describeSavingsPlansOfferingRatesAsync(DescribeSavingsPlansOfferingRatesRequest request)
AWSSavingsPlansAsyncDescribes the offering rates for the specified Savings Plans.
describeSavingsPlansOfferingRatesAsync in interface AWSSavingsPlansAsyncpublic Future<DescribeSavingsPlansOfferingRatesResult> describeSavingsPlansOfferingRatesAsync(DescribeSavingsPlansOfferingRatesRequest request, AsyncHandler<DescribeSavingsPlansOfferingRatesRequest,DescribeSavingsPlansOfferingRatesResult> asyncHandler)
AWSSavingsPlansAsyncDescribes the offering rates for the specified Savings Plans.
describeSavingsPlansOfferingRatesAsync in interface AWSSavingsPlansAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeSavingsPlansOfferingsResult> describeSavingsPlansOfferingsAsync(DescribeSavingsPlansOfferingsRequest request)
AWSSavingsPlansAsyncDescribes the offerings for the specified Savings Plans.
describeSavingsPlansOfferingsAsync in interface AWSSavingsPlansAsyncpublic Future<DescribeSavingsPlansOfferingsResult> describeSavingsPlansOfferingsAsync(DescribeSavingsPlansOfferingsRequest request, AsyncHandler<DescribeSavingsPlansOfferingsRequest,DescribeSavingsPlansOfferingsResult> asyncHandler)
AWSSavingsPlansAsyncDescribes the offerings for the specified Savings Plans.
describeSavingsPlansOfferingsAsync in interface AWSSavingsPlansAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AWSSavingsPlansAsyncLists the tags for the specified resource.
listTagsForResourceAsync in interface AWSSavingsPlansAsyncpublic Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AWSSavingsPlansAsyncLists the tags for the specified resource.
listTagsForResourceAsync in interface AWSSavingsPlansAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ReturnSavingsPlanResult> returnSavingsPlanAsync(ReturnSavingsPlanRequest request)
AWSSavingsPlansAsyncReturns the specified Savings Plan.
returnSavingsPlanAsync in interface AWSSavingsPlansAsyncpublic Future<ReturnSavingsPlanResult> returnSavingsPlanAsync(ReturnSavingsPlanRequest request, AsyncHandler<ReturnSavingsPlanRequest,ReturnSavingsPlanResult> asyncHandler)
AWSSavingsPlansAsyncReturns the specified Savings Plan.
returnSavingsPlanAsync in interface AWSSavingsPlansAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AWSSavingsPlansAsyncAdds the specified tags to the specified resource.
tagResourceAsync in interface AWSSavingsPlansAsyncpublic Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AWSSavingsPlansAsyncAdds the specified tags to the specified resource.
tagResourceAsync in interface AWSSavingsPlansAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AWSSavingsPlansAsyncRemoves the specified tags from the specified resource.
untagResourceAsync in interface AWSSavingsPlansAsyncpublic Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AWSSavingsPlansAsyncRemoves the specified tags from the specified resource.
untagResourceAsync in interface AWSSavingsPlansAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to
calling this method.shutdown in interface AWSSavingsPlansshutdown in class AWSSavingsPlansClient