Class CreateAccountStatus
- java.lang.Object
-
- software.amazon.awssdk.services.organizations.model.CreateAccountStatus
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CreateAccountStatus.Builder,CreateAccountStatus>
@Generated("software.amazon.awssdk:codegen") public final class CreateAccountStatus extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CreateAccountStatus.Builder,CreateAccountStatus>
Contains the status about a CreateAccount or CreateGovCloudAccount request to create an Amazon Web Services account or an Amazon Web Services GovCloud (US) account in an organization.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateAccountStatus.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaccountId()If the account was created successfully, the unique identifier (ID) of the new account.StringaccountName()The account name given to the account when it was created.static CreateAccountStatus.Builderbuilder()InstantcompletedTimestamp()The date and time that the account was created and the request completed.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)CreateAccountFailureReasonfailureReason()If the request failed, a description of the reason for the failure.StringfailureReasonAsString()If the request failed, a description of the reason for the failure.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)StringgovCloudAccountId()If the account was created successfully, the unique identifier (ID) of the new account in the Amazon Web Services GovCloud (US) Region.inthashCode()Stringid()The unique identifier (ID) that references this request.InstantrequestedTimestamp()The date and time that the request was made for the account creation.List<SdkField<?>>sdkFields()static Class<? extends CreateAccountStatus.Builder>serializableBuilderClass()CreateAccountStatestate()The status of the asynchronous request to create an Amazon Web Services account.StringstateAsString()The status of the asynchronous request to create an Amazon Web Services account.CreateAccountStatus.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
id
public final String id()
The unique identifier (ID) that references this request. You get this value from the response of the initial CreateAccount request to create the account.
The regex pattern for a create account request ID string requires "car-" followed by from 8 to 32 lowercase letters or digits.
- Returns:
- The unique identifier (ID) that references this request. You get this value from the response of the
initial CreateAccount request to create the account.
The regex pattern for a create account request ID string requires "car-" followed by from 8 to 32 lowercase letters or digits.
-
accountName
public final String accountName()
The account name given to the account when it was created.
- Returns:
- The account name given to the account when it was created.
-
state
public final CreateAccountState state()
The status of the asynchronous request to create an Amazon Web Services account.
If the service returns an enum value that is not available in the current SDK version,
statewill returnCreateAccountState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The status of the asynchronous request to create an Amazon Web Services account.
- See Also:
CreateAccountState
-
stateAsString
public final String stateAsString()
The status of the asynchronous request to create an Amazon Web Services account.
If the service returns an enum value that is not available in the current SDK version,
statewill returnCreateAccountState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The status of the asynchronous request to create an Amazon Web Services account.
- See Also:
CreateAccountState
-
requestedTimestamp
public final Instant requestedTimestamp()
The date and time that the request was made for the account creation.
- Returns:
- The date and time that the request was made for the account creation.
-
completedTimestamp
public final Instant completedTimestamp()
The date and time that the account was created and the request completed.
- Returns:
- The date and time that the account was created and the request completed.
-
accountId
public final String accountId()
If the account was created successfully, the unique identifier (ID) of the new account.
The regex pattern for an account ID string requires exactly 12 digits.
- Returns:
- If the account was created successfully, the unique identifier (ID) of the new account.
The regex pattern for an account ID string requires exactly 12 digits.
-
govCloudAccountId
public final String govCloudAccountId()
If the account was created successfully, the unique identifier (ID) of the new account in the Amazon Web Services GovCloud (US) Region.
- Returns:
- If the account was created successfully, the unique identifier (ID) of the new account in the Amazon Web Services GovCloud (US) Region.
-
failureReason
public final CreateAccountFailureReason failureReason()
If the request failed, a description of the reason for the failure.
-
ACCOUNT_LIMIT_EXCEEDED: The account couldn't be created because you reached the limit on the number of accounts in your organization.
-
CONCURRENT_ACCOUNT_MODIFICATION: You already submitted a request with the same information.
-
EMAIL_ALREADY_EXISTS: The account could not be created because another Amazon Web Services account with that email address already exists.
-
FAILED_BUSINESS_VALIDATION: The Amazon Web Services account that owns your organization failed to receive business license validation.
-
GOVCLOUD_ACCOUNT_ALREADY_EXISTS: The account in the Amazon Web Services GovCloud (US) Region could not be created because this Region already includes an account with that email address.
-
IDENTITY_INVALID_BUSINESS_VALIDATION: The Amazon Web Services account that owns your organization can't complete business license validation because it doesn't have valid identity data.
-
INVALID_ADDRESS: The account could not be created because the address you provided is not valid.
-
INVALID_EMAIL: The account could not be created because the email address you provided is not valid.
-
INVALID_PAYMENT_INSTRUMENT: The Amazon Web Services account that owns your organization does not have a supported payment method associated with the account. Amazon Web Services does not support cards issued by financial institutions in Russia or Belarus. For more information, see Managing your Amazon Web Services payments.
-
INTERNAL_FAILURE: The account could not be created because of an internal failure. Try again later. If the problem persists, contact Amazon Web Services Customer Support.
-
MISSING_BUSINESS_VALIDATION: The Amazon Web Services account that owns your organization has not received Business Validation.
-
MISSING_PAYMENT_INSTRUMENT: You must configure the management account with a valid payment method, such as a credit card.
-
PENDING_BUSINESS_VALIDATION: The Amazon Web Services account that owns your organization is still in the process of completing business license validation.
-
UNKNOWN_BUSINESS_VALIDATION: The Amazon Web Services account that owns your organization has an unknown issue with business license validation.
If the service returns an enum value that is not available in the current SDK version,
failureReasonwill returnCreateAccountFailureReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfailureReasonAsString().- Returns:
- If the request failed, a description of the reason for the failure.
-
ACCOUNT_LIMIT_EXCEEDED: The account couldn't be created because you reached the limit on the number of accounts in your organization.
-
CONCURRENT_ACCOUNT_MODIFICATION: You already submitted a request with the same information.
-
EMAIL_ALREADY_EXISTS: The account could not be created because another Amazon Web Services account with that email address already exists.
-
FAILED_BUSINESS_VALIDATION: The Amazon Web Services account that owns your organization failed to receive business license validation.
-
GOVCLOUD_ACCOUNT_ALREADY_EXISTS: The account in the Amazon Web Services GovCloud (US) Region could not be created because this Region already includes an account with that email address.
-
IDENTITY_INVALID_BUSINESS_VALIDATION: The Amazon Web Services account that owns your organization can't complete business license validation because it doesn't have valid identity data.
-
INVALID_ADDRESS: The account could not be created because the address you provided is not valid.
-
INVALID_EMAIL: The account could not be created because the email address you provided is not valid.
-
INVALID_PAYMENT_INSTRUMENT: The Amazon Web Services account that owns your organization does not have a supported payment method associated with the account. Amazon Web Services does not support cards issued by financial institutions in Russia or Belarus. For more information, see Managing your Amazon Web Services payments.
-
INTERNAL_FAILURE: The account could not be created because of an internal failure. Try again later. If the problem persists, contact Amazon Web Services Customer Support.
-
MISSING_BUSINESS_VALIDATION: The Amazon Web Services account that owns your organization has not received Business Validation.
-
MISSING_PAYMENT_INSTRUMENT: You must configure the management account with a valid payment method, such as a credit card.
-
PENDING_BUSINESS_VALIDATION: The Amazon Web Services account that owns your organization is still in the process of completing business license validation.
-
UNKNOWN_BUSINESS_VALIDATION: The Amazon Web Services account that owns your organization has an unknown issue with business license validation.
-
- See Also:
CreateAccountFailureReason
-
-
failureReasonAsString
public final String failureReasonAsString()
If the request failed, a description of the reason for the failure.
-
ACCOUNT_LIMIT_EXCEEDED: The account couldn't be created because you reached the limit on the number of accounts in your organization.
-
CONCURRENT_ACCOUNT_MODIFICATION: You already submitted a request with the same information.
-
EMAIL_ALREADY_EXISTS: The account could not be created because another Amazon Web Services account with that email address already exists.
-
FAILED_BUSINESS_VALIDATION: The Amazon Web Services account that owns your organization failed to receive business license validation.
-
GOVCLOUD_ACCOUNT_ALREADY_EXISTS: The account in the Amazon Web Services GovCloud (US) Region could not be created because this Region already includes an account with that email address.
-
IDENTITY_INVALID_BUSINESS_VALIDATION: The Amazon Web Services account that owns your organization can't complete business license validation because it doesn't have valid identity data.
-
INVALID_ADDRESS: The account could not be created because the address you provided is not valid.
-
INVALID_EMAIL: The account could not be created because the email address you provided is not valid.
-
INVALID_PAYMENT_INSTRUMENT: The Amazon Web Services account that owns your organization does not have a supported payment method associated with the account. Amazon Web Services does not support cards issued by financial institutions in Russia or Belarus. For more information, see Managing your Amazon Web Services payments.
-
INTERNAL_FAILURE: The account could not be created because of an internal failure. Try again later. If the problem persists, contact Amazon Web Services Customer Support.
-
MISSING_BUSINESS_VALIDATION: The Amazon Web Services account that owns your organization has not received Business Validation.
-
MISSING_PAYMENT_INSTRUMENT: You must configure the management account with a valid payment method, such as a credit card.
-
PENDING_BUSINESS_VALIDATION: The Amazon Web Services account that owns your organization is still in the process of completing business license validation.
-
UNKNOWN_BUSINESS_VALIDATION: The Amazon Web Services account that owns your organization has an unknown issue with business license validation.
If the service returns an enum value that is not available in the current SDK version,
failureReasonwill returnCreateAccountFailureReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfailureReasonAsString().- Returns:
- If the request failed, a description of the reason for the failure.
-
ACCOUNT_LIMIT_EXCEEDED: The account couldn't be created because you reached the limit on the number of accounts in your organization.
-
CONCURRENT_ACCOUNT_MODIFICATION: You already submitted a request with the same information.
-
EMAIL_ALREADY_EXISTS: The account could not be created because another Amazon Web Services account with that email address already exists.
-
FAILED_BUSINESS_VALIDATION: The Amazon Web Services account that owns your organization failed to receive business license validation.
-
GOVCLOUD_ACCOUNT_ALREADY_EXISTS: The account in the Amazon Web Services GovCloud (US) Region could not be created because this Region already includes an account with that email address.
-
IDENTITY_INVALID_BUSINESS_VALIDATION: The Amazon Web Services account that owns your organization can't complete business license validation because it doesn't have valid identity data.
-
INVALID_ADDRESS: The account could not be created because the address you provided is not valid.
-
INVALID_EMAIL: The account could not be created because the email address you provided is not valid.
-
INVALID_PAYMENT_INSTRUMENT: The Amazon Web Services account that owns your organization does not have a supported payment method associated with the account. Amazon Web Services does not support cards issued by financial institutions in Russia or Belarus. For more information, see Managing your Amazon Web Services payments.
-
INTERNAL_FAILURE: The account could not be created because of an internal failure. Try again later. If the problem persists, contact Amazon Web Services Customer Support.
-
MISSING_BUSINESS_VALIDATION: The Amazon Web Services account that owns your organization has not received Business Validation.
-
MISSING_PAYMENT_INSTRUMENT: You must configure the management account with a valid payment method, such as a credit card.
-
PENDING_BUSINESS_VALIDATION: The Amazon Web Services account that owns your organization is still in the process of completing business license validation.
-
UNKNOWN_BUSINESS_VALIDATION: The Amazon Web Services account that owns your organization has an unknown issue with business license validation.
-
- See Also:
CreateAccountFailureReason
-
-
toBuilder
public CreateAccountStatus.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateAccountStatus.Builder,CreateAccountStatus>
-
builder
public static CreateAccountStatus.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateAccountStatus.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-