com.amazonaws.services.savingsplans.AWSSavingsPlansAsync Maven / Gradle / Ivy
Show all versions of aws-java-sdk-savingsplans Show documentation
/*
* Copyright 2019-2024 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 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.
*
*/
@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 createSavingsPlanAsync(CreateSavingsPlanRequest createSavingsPlanRequest);
/**
*
* 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 createSavingsPlanAsync(CreateSavingsPlanRequest createSavingsPlanRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* 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 deleteQueuedSavingsPlanAsync(DeleteQueuedSavingsPlanRequest deleteQueuedSavingsPlanRequest);
/**
*
* 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 deleteQueuedSavingsPlanAsync(DeleteQueuedSavingsPlanRequest deleteQueuedSavingsPlanRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* Describes the rates for the specified Savings Plan.
*
*
* @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 describeSavingsPlanRatesAsync(DescribeSavingsPlanRatesRequest describeSavingsPlanRatesRequest);
/**
*
* Describes the rates for the specified Savings Plan.
*
*
* @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 describeSavingsPlanRatesAsync(DescribeSavingsPlanRatesRequest describeSavingsPlanRatesRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* 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 describeSavingsPlansAsync(DescribeSavingsPlansRequest describeSavingsPlansRequest);
/**
*
* 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 describeSavingsPlansAsync(DescribeSavingsPlansRequest describeSavingsPlansRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* Describes the offering rates for the specified Savings Plans.
*
*
* @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 describeSavingsPlansOfferingRatesAsync(
DescribeSavingsPlansOfferingRatesRequest describeSavingsPlansOfferingRatesRequest);
/**
*
* Describes the offering rates for the specified Savings Plans.
*
*
* @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 describeSavingsPlansOfferingRatesAsync(
DescribeSavingsPlansOfferingRatesRequest describeSavingsPlansOfferingRatesRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* Describes the offerings for the specified Savings Plans.
*
*
* @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 describeSavingsPlansOfferingsAsync(
DescribeSavingsPlansOfferingsRequest describeSavingsPlansOfferingsRequest);
/**
*
* Describes the offerings for the specified Savings Plans.
*
*
* @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 describeSavingsPlansOfferingsAsync(
DescribeSavingsPlansOfferingsRequest describeSavingsPlansOfferingsRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* 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 listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest);
/**
*
* 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 listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* Returns the specified Savings Plan.
*
*
* @param returnSavingsPlanRequest
* @return A Java Future containing the result of the ReturnSavingsPlan operation returned by the service.
* @sample AWSSavingsPlansAsync.ReturnSavingsPlan
* @see AWS
* API Documentation
*/
java.util.concurrent.Future returnSavingsPlanAsync(ReturnSavingsPlanRequest returnSavingsPlanRequest);
/**
*
* Returns the specified Savings Plan.
*
*
* @param returnSavingsPlanRequest
* @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 ReturnSavingsPlan operation returned by the service.
* @sample AWSSavingsPlansAsyncHandler.ReturnSavingsPlan
* @see AWS
* API Documentation
*/
java.util.concurrent.Future returnSavingsPlanAsync(ReturnSavingsPlanRequest returnSavingsPlanRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* 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 tagResourceAsync(TagResourceRequest tagResourceRequest);
/**
*
* 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 tagResourceAsync(TagResourceRequest tagResourceRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
/**
*
* 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 untagResourceAsync(UntagResourceRequest untagResourceRequest);
/**
*
* 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 untagResourceAsync(UntagResourceRequest untagResourceRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
}