@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSAccountAsyncClient extends AWSAccountClient implements AWSAccountAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
Operations for Amazon Web Services Account Management
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIXacceptPrimaryEmailUpdate, builder, deleteAlternateContact, disableRegion, enableRegion, getAlternateContact, getCachedResponseMetadata, getContactInformation, getPrimaryEmail, getRegionOptStatus, listRegions, putAlternateContact, putContactInformation, startPrimaryEmailUpdateaddRequestHandler, 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, waitacceptPrimaryEmailUpdate, deleteAlternateContact, disableRegion, enableRegion, getAlternateContact, getCachedResponseMetadata, getContactInformation, getPrimaryEmail, getRegionOptStatus, listRegions, putAlternateContact, putContactInformation, startPrimaryEmailUpdatepublic static AWSAccountAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<AcceptPrimaryEmailUpdateResult> acceptPrimaryEmailUpdateAsync(AcceptPrimaryEmailUpdateRequest request)
AWSAccountAsyncAccepts the request that originated from StartPrimaryEmailUpdate to update the primary email address (also known as the root user email address) for the specified account.
acceptPrimaryEmailUpdateAsync in interface AWSAccountAsyncpublic Future<AcceptPrimaryEmailUpdateResult> acceptPrimaryEmailUpdateAsync(AcceptPrimaryEmailUpdateRequest request, AsyncHandler<AcceptPrimaryEmailUpdateRequest,AcceptPrimaryEmailUpdateResult> asyncHandler)
AWSAccountAsyncAccepts the request that originated from StartPrimaryEmailUpdate to update the primary email address (also known as the root user email address) for the specified account.
acceptPrimaryEmailUpdateAsync in interface AWSAccountAsyncasyncHandler - 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<DeleteAlternateContactResult> deleteAlternateContactAsync(DeleteAlternateContactRequest request)
AWSAccountAsyncDeletes the specified alternate contact from an Amazon Web Services account.
For complete details about how to use the alternate contact operations, see Access or updating the alternate contacts.
Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations. For more information, see Enabling trusted access for Amazon Web Services Account Management.
deleteAlternateContactAsync in interface AWSAccountAsyncpublic Future<DeleteAlternateContactResult> deleteAlternateContactAsync(DeleteAlternateContactRequest request, AsyncHandler<DeleteAlternateContactRequest,DeleteAlternateContactResult> asyncHandler)
AWSAccountAsyncDeletes the specified alternate contact from an Amazon Web Services account.
For complete details about how to use the alternate contact operations, see Access or updating the alternate contacts.
Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations. For more information, see Enabling trusted access for Amazon Web Services Account Management.
deleteAlternateContactAsync in interface AWSAccountAsyncasyncHandler - 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<DisableRegionResult> disableRegionAsync(DisableRegionRequest request)
AWSAccountAsyncDisables (opts-out) a particular Region for an account.
The act of disabling a Region will remove all IAM access to any resources that reside in that Region.
disableRegionAsync in interface AWSAccountAsyncpublic Future<DisableRegionResult> disableRegionAsync(DisableRegionRequest request, AsyncHandler<DisableRegionRequest,DisableRegionResult> asyncHandler)
AWSAccountAsyncDisables (opts-out) a particular Region for an account.
The act of disabling a Region will remove all IAM access to any resources that reside in that Region.
disableRegionAsync in interface AWSAccountAsyncasyncHandler - 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<EnableRegionResult> enableRegionAsync(EnableRegionRequest request)
AWSAccountAsyncEnables (opts-in) a particular Region for an account.
enableRegionAsync in interface AWSAccountAsyncpublic Future<EnableRegionResult> enableRegionAsync(EnableRegionRequest request, AsyncHandler<EnableRegionRequest,EnableRegionResult> asyncHandler)
AWSAccountAsyncEnables (opts-in) a particular Region for an account.
enableRegionAsync in interface AWSAccountAsyncasyncHandler - 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<GetAlternateContactResult> getAlternateContactAsync(GetAlternateContactRequest request)
AWSAccountAsyncRetrieves the specified alternate contact attached to an Amazon Web Services account.
For complete details about how to use the alternate contact operations, see Access or updating the alternate contacts.
Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations. For more information, see Enabling trusted access for Amazon Web Services Account Management.
getAlternateContactAsync in interface AWSAccountAsyncpublic Future<GetAlternateContactResult> getAlternateContactAsync(GetAlternateContactRequest request, AsyncHandler<GetAlternateContactRequest,GetAlternateContactResult> asyncHandler)
AWSAccountAsyncRetrieves the specified alternate contact attached to an Amazon Web Services account.
For complete details about how to use the alternate contact operations, see Access or updating the alternate contacts.
Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations. For more information, see Enabling trusted access for Amazon Web Services Account Management.
getAlternateContactAsync in interface AWSAccountAsyncasyncHandler - 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<GetContactInformationResult> getContactInformationAsync(GetContactInformationRequest request)
AWSAccountAsyncRetrieves the primary contact information of an Amazon Web Services account.
For complete details about how to use the primary contact operations, see Update the primary and alternate contact information.
getContactInformationAsync in interface AWSAccountAsyncpublic Future<GetContactInformationResult> getContactInformationAsync(GetContactInformationRequest request, AsyncHandler<GetContactInformationRequest,GetContactInformationResult> asyncHandler)
AWSAccountAsyncRetrieves the primary contact information of an Amazon Web Services account.
For complete details about how to use the primary contact operations, see Update the primary and alternate contact information.
getContactInformationAsync in interface AWSAccountAsyncasyncHandler - 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<GetPrimaryEmailResult> getPrimaryEmailAsync(GetPrimaryEmailRequest request)
AWSAccountAsyncRetrieves the primary email address for the specified account.
getPrimaryEmailAsync in interface AWSAccountAsyncpublic Future<GetPrimaryEmailResult> getPrimaryEmailAsync(GetPrimaryEmailRequest request, AsyncHandler<GetPrimaryEmailRequest,GetPrimaryEmailResult> asyncHandler)
AWSAccountAsyncRetrieves the primary email address for the specified account.
getPrimaryEmailAsync in interface AWSAccountAsyncasyncHandler - 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<GetRegionOptStatusResult> getRegionOptStatusAsync(GetRegionOptStatusRequest request)
AWSAccountAsyncRetrieves the opt-in status of a particular Region.
getRegionOptStatusAsync in interface AWSAccountAsyncpublic Future<GetRegionOptStatusResult> getRegionOptStatusAsync(GetRegionOptStatusRequest request, AsyncHandler<GetRegionOptStatusRequest,GetRegionOptStatusResult> asyncHandler)
AWSAccountAsyncRetrieves the opt-in status of a particular Region.
getRegionOptStatusAsync in interface AWSAccountAsyncasyncHandler - 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<ListRegionsResult> listRegionsAsync(ListRegionsRequest request)
AWSAccountAsync
Lists all the Regions for a given account and their respective opt-in statuses. Optionally, this list can be
filtered by the region-opt-status-contains parameter.
listRegionsAsync in interface AWSAccountAsyncpublic Future<ListRegionsResult> listRegionsAsync(ListRegionsRequest request, AsyncHandler<ListRegionsRequest,ListRegionsResult> asyncHandler)
AWSAccountAsync
Lists all the Regions for a given account and their respective opt-in statuses. Optionally, this list can be
filtered by the region-opt-status-contains parameter.
listRegionsAsync in interface AWSAccountAsyncasyncHandler - 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<PutAlternateContactResult> putAlternateContactAsync(PutAlternateContactRequest request)
AWSAccountAsyncModifies the specified alternate contact attached to an Amazon Web Services account.
For complete details about how to use the alternate contact operations, see Access or updating the alternate contacts.
Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations. For more information, see Enabling trusted access for Amazon Web Services Account Management.
putAlternateContactAsync in interface AWSAccountAsyncpublic Future<PutAlternateContactResult> putAlternateContactAsync(PutAlternateContactRequest request, AsyncHandler<PutAlternateContactRequest,PutAlternateContactResult> asyncHandler)
AWSAccountAsyncModifies the specified alternate contact attached to an Amazon Web Services account.
For complete details about how to use the alternate contact operations, see Access or updating the alternate contacts.
Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations. For more information, see Enabling trusted access for Amazon Web Services Account Management.
putAlternateContactAsync in interface AWSAccountAsyncasyncHandler - 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<PutContactInformationResult> putContactInformationAsync(PutContactInformationRequest request)
AWSAccountAsyncUpdates the primary contact information of an Amazon Web Services account.
For complete details about how to use the primary contact operations, see Update the primary and alternate contact information.
putContactInformationAsync in interface AWSAccountAsyncpublic Future<PutContactInformationResult> putContactInformationAsync(PutContactInformationRequest request, AsyncHandler<PutContactInformationRequest,PutContactInformationResult> asyncHandler)
AWSAccountAsyncUpdates the primary contact information of an Amazon Web Services account.
For complete details about how to use the primary contact operations, see Update the primary and alternate contact information.
putContactInformationAsync in interface AWSAccountAsyncasyncHandler - 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<StartPrimaryEmailUpdateResult> startPrimaryEmailUpdateAsync(StartPrimaryEmailUpdateRequest request)
AWSAccountAsyncStarts the process to update the primary email address for the specified account.
startPrimaryEmailUpdateAsync in interface AWSAccountAsyncpublic Future<StartPrimaryEmailUpdateResult> startPrimaryEmailUpdateAsync(StartPrimaryEmailUpdateRequest request, AsyncHandler<StartPrimaryEmailUpdateRequest,StartPrimaryEmailUpdateResult> asyncHandler)
AWSAccountAsyncStarts the process to update the primary email address for the specified account.
startPrimaryEmailUpdateAsync in interface AWSAccountAsyncasyncHandler - 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 AWSAccountshutdown in class AWSAccountClient