@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSFreeTierAsyncClient extends AWSFreeTierClient implements AWSFreeTierAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
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.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIX| Modifier and Type | Method and Description |
|---|---|
static AWSFreeTierAsyncClientBuilder |
asyncBuilder() |
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<GetFreeTierUsageResult> |
getFreeTierUsageAsync(GetFreeTierUsageRequest request)
Returns a list of all Free Tier usage objects that match your filters.
|
Future<GetFreeTierUsageResult> |
getFreeTierUsageAsync(GetFreeTierUsageRequest request,
AsyncHandler<GetFreeTierUsageRequest,GetFreeTierUsageResult> asyncHandler)
Returns a list of all Free Tier usage objects that match your filters.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
builder, getCachedResponseMetadata, getFreeTierUsageaddRequestHandler, 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, waitgetCachedResponseMetadata, getFreeTierUsagepublic static AWSFreeTierAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<GetFreeTierUsageResult> getFreeTierUsageAsync(GetFreeTierUsageRequest request)
AWSFreeTierAsyncReturns a list of all Free Tier usage objects that match your filters.
getFreeTierUsageAsync in interface AWSFreeTierAsyncpublic Future<GetFreeTierUsageResult> getFreeTierUsageAsync(GetFreeTierUsageRequest request, AsyncHandler<GetFreeTierUsageRequest,GetFreeTierUsageResult> asyncHandler)
AWSFreeTierAsyncReturns a list of all Free Tier usage objects that match your filters.
getFreeTierUsageAsync in interface AWSFreeTierAsyncasyncHandler - 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 AWSFreeTiershutdown in class AWSFreeTierClient