com.amazonaws.services.freetier.AWSFreeTierAsync Maven / Gradle / Ivy
Show all versions of aws-java-sdk-freetier 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.freetier;
import javax.annotation.Generated;
import com.amazonaws.services.freetier.model.*;
/**
* Interface for accessing AWS Free Tier 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.freetier.AbstractAWSFreeTierAsync} instead.
*
*
*
* You can use the Amazon Web Services Free Tier API to query programmatically your Free Tier usage data.
*
*
* Free Tier tracks your monthly usage data for all free tier offers that are associated with your Amazon Web Services
* account. You can use the Free Tier API to filter and show only the data that you want.
*
*
* Service endpoint
*
*
* The Free Tier API provides the following endpoint:
*
*
* -
*
* https://freetier.us-east-1.api.aws
*
*
*
*
* For more information, see Using the Amazon Web
* Services Free Tier in the Billing User Guide.
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public interface AWSFreeTierAsync extends AWSFreeTier {
/**
*
* Returns a list of all Free Tier usage objects that match your filters.
*
*
* @param getFreeTierUsageRequest
* @return A Java Future containing the result of the GetFreeTierUsage operation returned by the service.
* @sample AWSFreeTierAsync.GetFreeTierUsage
* @see AWS API
* Documentation
*/
java.util.concurrent.Future getFreeTierUsageAsync(GetFreeTierUsageRequest getFreeTierUsageRequest);
/**
*
* Returns a list of all Free Tier usage objects that match your filters.
*
*
* @param getFreeTierUsageRequest
* @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 GetFreeTierUsage operation returned by the service.
* @sample AWSFreeTierAsyncHandler.GetFreeTierUsage
* @see AWS API
* Documentation
*/
java.util.concurrent.Future getFreeTierUsageAsync(GetFreeTierUsageRequest getFreeTierUsageRequest,
com.amazonaws.handlers.AsyncHandler asyncHandler);
}