@Generated(value="software.amazon.awssdk:codegen") public final class CreateAccountStatus extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CreateAccountStatus.Builder,CreateAccountStatus>
Contains the status about a CreateAccount request to create an AWS account in an organization.
Modifier and Type | Class and Description |
---|---|
static interface |
CreateAccountStatus.Builder |
Modifier and Type | Method and Description |
---|---|
String |
accountId()
If the account was created successfully, the unique identifier (ID) of the new account.
|
String |
accountName()
The account name given to the account when it was created.
|
static CreateAccountStatus.Builder |
builder() |
Instant |
completedTimestamp()
The date and time that the account was created and the request completed.
|
boolean |
equals(Object obj) |
CreateAccountFailureReason |
failureReason()
If the request failed, a description of the reason for the failure.
|
String |
failureReasonAsString()
If the request failed, a description of the reason for the failure.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The unique identifier (ID) that references this request.
|
Instant |
requestedTimestamp()
The date and time that the request was made for the account creation.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateAccountStatus.Builder> |
serializableBuilderClass() |
CreateAccountState |
state()
The status of the request.
|
String |
stateAsString()
The status of the request.
|
CreateAccountStatus.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public 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 an create account request ID string requires "car-" followed by from 8 to 32 lower-case letters or digits.
The regex pattern for an create account request ID string requires "car-" followed by from 8 to 32 lower-case letters or digits.
public String accountName()
The account name given to the account when it was created.
public CreateAccountState state()
The status of the request.
If the service returns an enum value that is not available in the current SDK version, state
will return
CreateAccountState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
CreateAccountState
public String stateAsString()
The status of the request.
If the service returns an enum value that is not available in the current SDK version, state
will return
CreateAccountState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
CreateAccountState
public Instant requestedTimestamp()
The date and time that the request was made for the account creation.
public Instant completedTimestamp()
The date and time that the account was created and the request completed.
public 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.
The regex pattern for an account ID string requires exactly 12 digits.
public CreateAccountFailureReason failureReason()
If the request failed, a description of the reason for the failure.
ACCOUNT_LIMIT_EXCEEDED: The account could not be created because you have reached the limit on the number of accounts in your organization.
EMAIL_ALREADY_EXISTS: The account could not be created because another AWS account with that email address already exists.
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.
INTERNAL_FAILURE: The account could not be created because of an internal failure. Try again later. If the problem persists, contact Customer Support.
If the service returns an enum value that is not available in the current SDK version, failureReason
will return CreateAccountFailureReason.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from failureReasonAsString()
.
ACCOUNT_LIMIT_EXCEEDED: The account could not be created because you have reached the limit on the number of accounts in your organization.
EMAIL_ALREADY_EXISTS: The account could not be created because another AWS account with that email address already exists.
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.
INTERNAL_FAILURE: The account could not be created because of an internal failure. Try again later. If the problem persists, contact Customer Support.
CreateAccountFailureReason
public String failureReasonAsString()
If the request failed, a description of the reason for the failure.
ACCOUNT_LIMIT_EXCEEDED: The account could not be created because you have reached the limit on the number of accounts in your organization.
EMAIL_ALREADY_EXISTS: The account could not be created because another AWS account with that email address already exists.
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.
INTERNAL_FAILURE: The account could not be created because of an internal failure. Try again later. If the problem persists, contact Customer Support.
If the service returns an enum value that is not available in the current SDK version, failureReason
will return CreateAccountFailureReason.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from failureReasonAsString()
.
ACCOUNT_LIMIT_EXCEEDED: The account could not be created because you have reached the limit on the number of accounts in your organization.
EMAIL_ALREADY_EXISTS: The account could not be created because another AWS account with that email address already exists.
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.
INTERNAL_FAILURE: The account could not be created because of an internal failure. Try again later. If the problem persists, contact Customer Support.
CreateAccountFailureReason
public CreateAccountStatus.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateAccountStatus.Builder,CreateAccountStatus>
public static CreateAccountStatus.Builder builder()
public static Class<? extends CreateAccountStatus.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.