/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.savingsplans; import javax.annotation.Generated; import com.amazonaws.services.savingsplans.model.*; /** * Interface for accessing AWSSavingsPlans asynchronously. Each asynchronous method will return a Java Future object * representing the asynchronous operation; overloads which accept an {@code AsyncHandler} can be used to receive * notification when an asynchronous operation completes. *
* Note: Do not directly implement this interface, new methods are added to it regularly. Extend from * {@link com.amazonaws.services.savingsplans.AbstractAWSSavingsPlansAsync} instead. *
**
* 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. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public interface AWSSavingsPlansAsync extends AWSSavingsPlans { /** ** Creates a Savings Plan. *
* * @param createSavingsPlanRequest * @return A Java Future containing the result of the CreateSavingsPlan operation returned by the service. * @sample AWSSavingsPlansAsync.CreateSavingsPlan * @see AWS * API Documentation */ java.util.concurrent.Future* Creates a Savings Plan. *
* * @param createSavingsPlanRequest * @param 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. * @return A Java Future containing the result of the CreateSavingsPlan operation returned by the service. * @sample AWSSavingsPlansAsyncHandler.CreateSavingsPlan * @see AWS * API Documentation */ java.util.concurrent.Future* Deletes the queued purchase for the specified Savings Plan. *
* * @param deleteQueuedSavingsPlanRequest * @return A Java Future containing the result of the DeleteQueuedSavingsPlan operation returned by the service. * @sample AWSSavingsPlansAsync.DeleteQueuedSavingsPlan * @see AWS API Documentation */ java.util.concurrent.Future* Deletes the queued purchase for the specified Savings Plan. *
* * @param deleteQueuedSavingsPlanRequest * @param 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. * @return A Java Future containing the result of the DeleteQueuedSavingsPlan operation returned by the service. * @sample AWSSavingsPlansAsyncHandler.DeleteQueuedSavingsPlan * @see AWS API Documentation */ java.util.concurrent.Future* Describes the specified Savings Plans rates. *
* * @param describeSavingsPlanRatesRequest * @return A Java Future containing the result of the DescribeSavingsPlanRates operation returned by the service. * @sample AWSSavingsPlansAsync.DescribeSavingsPlanRates * @see AWS API Documentation */ java.util.concurrent.Future* Describes the specified Savings Plans rates. *
* * @param describeSavingsPlanRatesRequest * @param 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. * @return A Java Future containing the result of the DescribeSavingsPlanRates operation returned by the service. * @sample AWSSavingsPlansAsyncHandler.DescribeSavingsPlanRates * @see AWS API Documentation */ java.util.concurrent.Future* Describes the specified Savings Plans. *
* * @param describeSavingsPlansRequest * @return A Java Future containing the result of the DescribeSavingsPlans operation returned by the service. * @sample AWSSavingsPlansAsync.DescribeSavingsPlans * @see AWS API Documentation */ java.util.concurrent.Future* Describes the specified Savings Plans. *
* * @param describeSavingsPlansRequest * @param 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. * @return A Java Future containing the result of the DescribeSavingsPlans operation returned by the service. * @sample AWSSavingsPlansAsyncHandler.DescribeSavingsPlans * @see AWS API Documentation */ java.util.concurrent.Future* Describes the specified Savings Plans offering rates. *
* * @param describeSavingsPlansOfferingRatesRequest * @return A Java Future containing the result of the DescribeSavingsPlansOfferingRates operation returned by the * service. * @sample AWSSavingsPlansAsync.DescribeSavingsPlansOfferingRates * @see AWS API Documentation */ java.util.concurrent.Future* Describes the specified Savings Plans offering rates. *
* * @param describeSavingsPlansOfferingRatesRequest * @param 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. * @return A Java Future containing the result of the DescribeSavingsPlansOfferingRates operation returned by the * service. * @sample AWSSavingsPlansAsyncHandler.DescribeSavingsPlansOfferingRates * @see AWS API Documentation */ java.util.concurrent.Future* Describes the specified Savings Plans offerings. *
* * @param describeSavingsPlansOfferingsRequest * @return A Java Future containing the result of the DescribeSavingsPlansOfferings operation returned by the * service. * @sample AWSSavingsPlansAsync.DescribeSavingsPlansOfferings * @see AWS API Documentation */ java.util.concurrent.Future* Describes the specified Savings Plans offerings. *
* * @param describeSavingsPlansOfferingsRequest * @param 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. * @return A Java Future containing the result of the DescribeSavingsPlansOfferings operation returned by the * service. * @sample AWSSavingsPlansAsyncHandler.DescribeSavingsPlansOfferings * @see AWS API Documentation */ java.util.concurrent.Future* Lists the tags for the specified resource. *
* * @param listTagsForResourceRequest * @return A Java Future containing the result of the ListTagsForResource operation returned by the service. * @sample AWSSavingsPlansAsync.ListTagsForResource * @see AWS API Documentation */ java.util.concurrent.Future* Lists the tags for the specified resource. *
* * @param listTagsForResourceRequest * @param 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. * @return A Java Future containing the result of the ListTagsForResource operation returned by the service. * @sample AWSSavingsPlansAsyncHandler.ListTagsForResource * @see AWS API Documentation */ java.util.concurrent.Future* Adds the specified tags to the specified resource. *
* * @param tagResourceRequest * @return A Java Future containing the result of the TagResource operation returned by the service. * @sample AWSSavingsPlansAsync.TagResource * @see AWS API * Documentation */ java.util.concurrent.Future* Adds the specified tags to the specified resource. *
* * @param tagResourceRequest * @param 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. * @return A Java Future containing the result of the TagResource operation returned by the service. * @sample AWSSavingsPlansAsyncHandler.TagResource * @see AWS API * Documentation */ java.util.concurrent.Future* Removes the specified tags from the specified resource. *
* * @param untagResourceRequest * @return A Java Future containing the result of the UntagResource operation returned by the service. * @sample AWSSavingsPlansAsync.UntagResource * @see AWS API * Documentation */ java.util.concurrent.Future* Removes the specified tags from the specified resource. *
* * @param untagResourceRequest * @param 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. * @return A Java Future containing the result of the UntagResource operation returned by the service. * @sample AWSSavingsPlansAsyncHandler.UntagResource * @see AWS API * Documentation */ java.util.concurrent.Future