@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_METRIC
ENDPOINT_PREFIX
acceptPrimaryEmailUpdate, builder, deleteAlternateContact, disableRegion, enableRegion, getAlternateContact, getCachedResponseMetadata, getContactInformation, getPrimaryEmail, getRegionOptStatus, listRegions, putAlternateContact, putContactInformation, startPrimaryEmailUpdate
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acceptPrimaryEmailUpdate, deleteAlternateContact, disableRegion, enableRegion, getAlternateContact, getCachedResponseMetadata, getContactInformation, getPrimaryEmail, getRegionOptStatus, listRegions, putAlternateContact, putContactInformation, startPrimaryEmailUpdate
public static AWSAccountAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<AcceptPrimaryEmailUpdateResult> acceptPrimaryEmailUpdateAsync(AcceptPrimaryEmailUpdateRequest request)
AWSAccountAsync
Accepts 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 AWSAccountAsync
public Future<AcceptPrimaryEmailUpdateResult> acceptPrimaryEmailUpdateAsync(AcceptPrimaryEmailUpdateRequest request, AsyncHandler<AcceptPrimaryEmailUpdateRequest,AcceptPrimaryEmailUpdateResult> asyncHandler)
AWSAccountAsync
Accepts 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 AWSAccountAsync
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.public Future<DeleteAlternateContactResult> deleteAlternateContactAsync(DeleteAlternateContactRequest request)
AWSAccountAsync
Deletes 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 AWSAccountAsync
public Future<DeleteAlternateContactResult> deleteAlternateContactAsync(DeleteAlternateContactRequest request, AsyncHandler<DeleteAlternateContactRequest,DeleteAlternateContactResult> asyncHandler)
AWSAccountAsync
Deletes 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 AWSAccountAsync
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.public Future<DisableRegionResult> disableRegionAsync(DisableRegionRequest request)
AWSAccountAsync
Disables (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 AWSAccountAsync
public Future<DisableRegionResult> disableRegionAsync(DisableRegionRequest request, AsyncHandler<DisableRegionRequest,DisableRegionResult> asyncHandler)
AWSAccountAsync
Disables (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 AWSAccountAsync
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.public Future<EnableRegionResult> enableRegionAsync(EnableRegionRequest request)
AWSAccountAsync
Enables (opts-in) a particular Region for an account.
enableRegionAsync
in interface AWSAccountAsync
public Future<EnableRegionResult> enableRegionAsync(EnableRegionRequest request, AsyncHandler<EnableRegionRequest,EnableRegionResult> asyncHandler)
AWSAccountAsync
Enables (opts-in) a particular Region for an account.
enableRegionAsync
in interface AWSAccountAsync
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.public Future<GetAlternateContactResult> getAlternateContactAsync(GetAlternateContactRequest request)
AWSAccountAsync
Retrieves 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 AWSAccountAsync
public Future<GetAlternateContactResult> getAlternateContactAsync(GetAlternateContactRequest request, AsyncHandler<GetAlternateContactRequest,GetAlternateContactResult> asyncHandler)
AWSAccountAsync
Retrieves 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 AWSAccountAsync
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.public Future<GetContactInformationResult> getContactInformationAsync(GetContactInformationRequest request)
AWSAccountAsync
Retrieves 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 AWSAccountAsync
public Future<GetContactInformationResult> getContactInformationAsync(GetContactInformationRequest request, AsyncHandler<GetContactInformationRequest,GetContactInformationResult> asyncHandler)
AWSAccountAsync
Retrieves 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 AWSAccountAsync
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.public Future<GetPrimaryEmailResult> getPrimaryEmailAsync(GetPrimaryEmailRequest request)
AWSAccountAsync
Retrieves the primary email address for the specified account.
getPrimaryEmailAsync
in interface AWSAccountAsync
public Future<GetPrimaryEmailResult> getPrimaryEmailAsync(GetPrimaryEmailRequest request, AsyncHandler<GetPrimaryEmailRequest,GetPrimaryEmailResult> asyncHandler)
AWSAccountAsync
Retrieves the primary email address for the specified account.
getPrimaryEmailAsync
in interface AWSAccountAsync
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.public Future<GetRegionOptStatusResult> getRegionOptStatusAsync(GetRegionOptStatusRequest request)
AWSAccountAsync
Retrieves the opt-in status of a particular Region.
getRegionOptStatusAsync
in interface AWSAccountAsync
public Future<GetRegionOptStatusResult> getRegionOptStatusAsync(GetRegionOptStatusRequest request, AsyncHandler<GetRegionOptStatusRequest,GetRegionOptStatusResult> asyncHandler)
AWSAccountAsync
Retrieves the opt-in status of a particular Region.
getRegionOptStatusAsync
in interface AWSAccountAsync
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.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 AWSAccountAsync
public 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 AWSAccountAsync
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.public Future<PutAlternateContactResult> putAlternateContactAsync(PutAlternateContactRequest request)
AWSAccountAsync
Modifies 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 AWSAccountAsync
public Future<PutAlternateContactResult> putAlternateContactAsync(PutAlternateContactRequest request, AsyncHandler<PutAlternateContactRequest,PutAlternateContactResult> asyncHandler)
AWSAccountAsync
Modifies 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 AWSAccountAsync
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.public Future<PutContactInformationResult> putContactInformationAsync(PutContactInformationRequest request)
AWSAccountAsync
Updates 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 AWSAccountAsync
public Future<PutContactInformationResult> putContactInformationAsync(PutContactInformationRequest request, AsyncHandler<PutContactInformationRequest,PutContactInformationResult> asyncHandler)
AWSAccountAsync
Updates 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 AWSAccountAsync
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.public Future<StartPrimaryEmailUpdateResult> startPrimaryEmailUpdateAsync(StartPrimaryEmailUpdateRequest request)
AWSAccountAsync
Starts the process to update the primary email address for the specified account.
startPrimaryEmailUpdateAsync
in interface AWSAccountAsync
public Future<StartPrimaryEmailUpdateResult> startPrimaryEmailUpdateAsync(StartPrimaryEmailUpdateRequest request, AsyncHandler<StartPrimaryEmailUpdateRequest,StartPrimaryEmailUpdateResult> asyncHandler)
AWSAccountAsync
Starts the process to update the primary email address for the specified account.
startPrimaryEmailUpdateAsync
in interface AWSAccountAsync
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.public void shutdown()
getExecutorService().shutdown()
followed by getExecutorService().awaitTermination()
prior to
calling this method.shutdown
in interface AWSAccount
shutdown
in class AWSAccountClient