@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_METRIC
ENDPOINT_PREFIX
builder, createSavingsPlan, deleteQueuedSavingsPlan, describeSavingsPlanRates, describeSavingsPlans, describeSavingsPlansOfferingRates, describeSavingsPlansOfferings, getCachedResponseMetadata, listTagsForResource, returnSavingsPlan, tagResource, untagResource
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createSavingsPlan, deleteQueuedSavingsPlan, describeSavingsPlanRates, describeSavingsPlans, describeSavingsPlansOfferingRates, describeSavingsPlansOfferings, getCachedResponseMetadata, listTagsForResource, returnSavingsPlan, tagResource, untagResource
public static AWSSavingsPlansAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CreateSavingsPlanResult> createSavingsPlanAsync(CreateSavingsPlanRequest request)
AWSSavingsPlansAsync
Creates a Savings Plan.
createSavingsPlanAsync
in interface AWSSavingsPlansAsync
public Future<CreateSavingsPlanResult> createSavingsPlanAsync(CreateSavingsPlanRequest request, AsyncHandler<CreateSavingsPlanRequest,CreateSavingsPlanResult> asyncHandler)
AWSSavingsPlansAsync
Creates a Savings Plan.
createSavingsPlanAsync
in interface AWSSavingsPlansAsync
asyncHandler
- 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)
AWSSavingsPlansAsync
Deletes the queued purchase for the specified Savings Plan.
deleteQueuedSavingsPlanAsync
in interface AWSSavingsPlansAsync
public Future<DeleteQueuedSavingsPlanResult> deleteQueuedSavingsPlanAsync(DeleteQueuedSavingsPlanRequest request, AsyncHandler<DeleteQueuedSavingsPlanRequest,DeleteQueuedSavingsPlanResult> asyncHandler)
AWSSavingsPlansAsync
Deletes the queued purchase for the specified Savings Plan.
deleteQueuedSavingsPlanAsync
in interface AWSSavingsPlansAsync
asyncHandler
- 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)
AWSSavingsPlansAsync
Describes the rates for the specified Savings Plan.
describeSavingsPlanRatesAsync
in interface AWSSavingsPlansAsync
public Future<DescribeSavingsPlanRatesResult> describeSavingsPlanRatesAsync(DescribeSavingsPlanRatesRequest request, AsyncHandler<DescribeSavingsPlanRatesRequest,DescribeSavingsPlanRatesResult> asyncHandler)
AWSSavingsPlansAsync
Describes the rates for the specified Savings Plan.
describeSavingsPlanRatesAsync
in interface AWSSavingsPlansAsync
asyncHandler
- 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)
AWSSavingsPlansAsync
Describes the specified Savings Plans.
describeSavingsPlansAsync
in interface AWSSavingsPlansAsync
public Future<DescribeSavingsPlansResult> describeSavingsPlansAsync(DescribeSavingsPlansRequest request, AsyncHandler<DescribeSavingsPlansRequest,DescribeSavingsPlansResult> asyncHandler)
AWSSavingsPlansAsync
Describes the specified Savings Plans.
describeSavingsPlansAsync
in interface AWSSavingsPlansAsync
asyncHandler
- 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)
AWSSavingsPlansAsync
Describes the offering rates for the specified Savings Plans.
describeSavingsPlansOfferingRatesAsync
in interface AWSSavingsPlansAsync
public Future<DescribeSavingsPlansOfferingRatesResult> describeSavingsPlansOfferingRatesAsync(DescribeSavingsPlansOfferingRatesRequest request, AsyncHandler<DescribeSavingsPlansOfferingRatesRequest,DescribeSavingsPlansOfferingRatesResult> asyncHandler)
AWSSavingsPlansAsync
Describes the offering rates for the specified Savings Plans.
describeSavingsPlansOfferingRatesAsync
in interface AWSSavingsPlansAsync
asyncHandler
- 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)
AWSSavingsPlansAsync
Describes the offerings for the specified Savings Plans.
describeSavingsPlansOfferingsAsync
in interface AWSSavingsPlansAsync
public Future<DescribeSavingsPlansOfferingsResult> describeSavingsPlansOfferingsAsync(DescribeSavingsPlansOfferingsRequest request, AsyncHandler<DescribeSavingsPlansOfferingsRequest,DescribeSavingsPlansOfferingsResult> asyncHandler)
AWSSavingsPlansAsync
Describes the offerings for the specified Savings Plans.
describeSavingsPlansOfferingsAsync
in interface AWSSavingsPlansAsync
asyncHandler
- 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)
AWSSavingsPlansAsync
Lists the tags for the specified resource.
listTagsForResourceAsync
in interface AWSSavingsPlansAsync
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AWSSavingsPlansAsync
Lists the tags for the specified resource.
listTagsForResourceAsync
in interface AWSSavingsPlansAsync
asyncHandler
- 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)
AWSSavingsPlansAsync
Returns the specified Savings Plan.
returnSavingsPlanAsync
in interface AWSSavingsPlansAsync
public Future<ReturnSavingsPlanResult> returnSavingsPlanAsync(ReturnSavingsPlanRequest request, AsyncHandler<ReturnSavingsPlanRequest,ReturnSavingsPlanResult> asyncHandler)
AWSSavingsPlansAsync
Returns the specified Savings Plan.
returnSavingsPlanAsync
in interface AWSSavingsPlansAsync
asyncHandler
- 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)
AWSSavingsPlansAsync
Adds the specified tags to the specified resource.
tagResourceAsync
in interface AWSSavingsPlansAsync
public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AWSSavingsPlansAsync
Adds the specified tags to the specified resource.
tagResourceAsync
in interface AWSSavingsPlansAsync
asyncHandler
- 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)
AWSSavingsPlansAsync
Removes the specified tags from the specified resource.
untagResourceAsync
in interface AWSSavingsPlansAsync
public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AWSSavingsPlansAsync
Removes the specified tags from the specified resource.
untagResourceAsync
in interface AWSSavingsPlansAsync
asyncHandler
- 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 AWSSavingsPlans
shutdown
in class AWSSavingsPlansClient