com.amazonaws.services.organizations.model.CreateAccountStatus Maven / Gradle / Ivy
Show all versions of aws-java-sdk-organizations Show documentation
/*
* Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.organizations.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* 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 AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateAccountStatus implements Serializable, Cloneable, StructuredPojo {
/**
*
* 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.
*
*/
private String id;
/**
*
* The account name given to the account when it was created.
*
*/
private String accountName;
/**
*
* The status of the asynchronous request to create an Amazon Web Services account.
*
*/
private String state;
/**
*
* The date and time that the request was made for the account creation.
*
*/
private java.util.Date requestedTimestamp;
/**
*
* The date and time that the account was created and the request completed.
*
*/
private java.util.Date completedTimestamp;
/**
*
* 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.
*
*/
private String accountId;
/**
*
* If the account was created successfully, the unique identifier (ID) of the new account in the Amazon Web Services
* GovCloud (US) Region.
*
*/
private String govCloudAccountId;
/**
*
* 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.
*
*
*
*/
private String failureReason;
/**
*
* 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.
*
*
* @param 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.
*/
public void setId(String id) {
this.id = 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.
*
*
* @return 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.
*/
public String getId() {
return this.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.
*
*
* @param 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAccountStatus withId(String id) {
setId(id);
return this;
}
/**
*
* The account name given to the account when it was created.
*
*
* @param accountName
* The account name given to the account when it was created.
*/
public void setAccountName(String accountName) {
this.accountName = accountName;
}
/**
*
* The account name given to the account when it was created.
*
*
* @return The account name given to the account when it was created.
*/
public String getAccountName() {
return this.accountName;
}
/**
*
* The account name given to the account when it was created.
*
*
* @param accountName
* The account name given to the account when it was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAccountStatus withAccountName(String accountName) {
setAccountName(accountName);
return this;
}
/**
*
* The status of the asynchronous request to create an Amazon Web Services account.
*
*
* @param state
* The status of the asynchronous request to create an Amazon Web Services account.
* @see CreateAccountState
*/
public void setState(String state) {
this.state = state;
}
/**
*
* The status of the asynchronous request to create an Amazon Web Services account.
*
*
* @return The status of the asynchronous request to create an Amazon Web Services account.
* @see CreateAccountState
*/
public String getState() {
return this.state;
}
/**
*
* The status of the asynchronous request to create an Amazon Web Services account.
*
*
* @param state
* The status of the asynchronous request to create an Amazon Web Services account.
* @return Returns a reference to this object so that method calls can be chained together.
* @see CreateAccountState
*/
public CreateAccountStatus withState(String state) {
setState(state);
return this;
}
/**
*
* The status of the asynchronous request to create an Amazon Web Services account.
*
*
* @param state
* The status of the asynchronous request to create an Amazon Web Services account.
* @see CreateAccountState
*/
public void setState(CreateAccountState state) {
withState(state);
}
/**
*
* The status of the asynchronous request to create an Amazon Web Services account.
*
*
* @param state
* The status of the asynchronous request to create an Amazon Web Services account.
* @return Returns a reference to this object so that method calls can be chained together.
* @see CreateAccountState
*/
public CreateAccountStatus withState(CreateAccountState state) {
this.state = state.toString();
return this;
}
/**
*
* The date and time that the request was made for the account creation.
*
*
* @param requestedTimestamp
* The date and time that the request was made for the account creation.
*/
public void setRequestedTimestamp(java.util.Date requestedTimestamp) {
this.requestedTimestamp = requestedTimestamp;
}
/**
*
* The date and time that the request was made for the account creation.
*
*
* @return The date and time that the request was made for the account creation.
*/
public java.util.Date getRequestedTimestamp() {
return this.requestedTimestamp;
}
/**
*
* The date and time that the request was made for the account creation.
*
*
* @param requestedTimestamp
* The date and time that the request was made for the account creation.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAccountStatus withRequestedTimestamp(java.util.Date requestedTimestamp) {
setRequestedTimestamp(requestedTimestamp);
return this;
}
/**
*
* The date and time that the account was created and the request completed.
*
*
* @param completedTimestamp
* The date and time that the account was created and the request completed.
*/
public void setCompletedTimestamp(java.util.Date completedTimestamp) {
this.completedTimestamp = completedTimestamp;
}
/**
*
* The date and time that the account was created and the request completed.
*
*
* @return The date and time that the account was created and the request completed.
*/
public java.util.Date getCompletedTimestamp() {
return this.completedTimestamp;
}
/**
*
* The date and time that the account was created and the request completed.
*
*
* @param completedTimestamp
* The date and time that the account was created and the request completed.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAccountStatus withCompletedTimestamp(java.util.Date completedTimestamp) {
setCompletedTimestamp(completedTimestamp);
return this;
}
/**
*
* 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.
*
*
* @param 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.
*/
public void setAccountId(String accountId) {
this.accountId = 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.
*
*
* @return 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.
*/
public String getAccountId() {
return this.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.
*
*
* @param 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAccountStatus withAccountId(String accountId) {
setAccountId(accountId);
return this;
}
/**
*
* If the account was created successfully, the unique identifier (ID) of the new account in the Amazon Web Services
* GovCloud (US) Region.
*
*
* @param govCloudAccountId
* If the account was created successfully, the unique identifier (ID) of the new account in the Amazon Web
* Services GovCloud (US) Region.
*/
public void setGovCloudAccountId(String govCloudAccountId) {
this.govCloudAccountId = govCloudAccountId;
}
/**
*
* If the account was created successfully, the unique identifier (ID) of the new account in the Amazon Web Services
* GovCloud (US) Region.
*
*
* @return If the account was created successfully, the unique identifier (ID) of the new account in the Amazon Web
* Services GovCloud (US) Region.
*/
public String getGovCloudAccountId() {
return this.govCloudAccountId;
}
/**
*
* If the account was created successfully, the unique identifier (ID) of the new account in the Amazon Web Services
* GovCloud (US) Region.
*
*
* @param govCloudAccountId
* If the account was created successfully, the unique identifier (ID) of the new account in the Amazon Web
* Services GovCloud (US) Region.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAccountStatus withGovCloudAccountId(String govCloudAccountId) {
setGovCloudAccountId(govCloudAccountId);
return this;
}
/**
*
* 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.
*
*
*
*
* @param 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.
*
*
* @see CreateAccountFailureReason
*/
public void setFailureReason(String failureReason) {
this.failureReason = 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.
*
*
*
*
* @return 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 CreateAccountFailureReason
*/
public String getFailureReason() {
return this.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.
*
*
*
*
* @param 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.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see CreateAccountFailureReason
*/
public CreateAccountStatus withFailureReason(String failureReason) {
setFailureReason(failureReason);
return this;
}
/**
*
* 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.
*
*
*
*
* @param 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.
*
*
* @see CreateAccountFailureReason
*/
public void setFailureReason(CreateAccountFailureReason failureReason) {
withFailureReason(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.
*
*
*
*
* @param 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.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see CreateAccountFailureReason
*/
public CreateAccountStatus withFailureReason(CreateAccountFailureReason failureReason) {
this.failureReason = failureReason.toString();
return this;
}
/**
* 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.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getId() != null)
sb.append("Id: ").append(getId()).append(",");
if (getAccountName() != null)
sb.append("AccountName: ").append("***Sensitive Data Redacted***").append(",");
if (getState() != null)
sb.append("State: ").append(getState()).append(",");
if (getRequestedTimestamp() != null)
sb.append("RequestedTimestamp: ").append(getRequestedTimestamp()).append(",");
if (getCompletedTimestamp() != null)
sb.append("CompletedTimestamp: ").append(getCompletedTimestamp()).append(",");
if (getAccountId() != null)
sb.append("AccountId: ").append(getAccountId()).append(",");
if (getGovCloudAccountId() != null)
sb.append("GovCloudAccountId: ").append(getGovCloudAccountId()).append(",");
if (getFailureReason() != null)
sb.append("FailureReason: ").append(getFailureReason());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateAccountStatus == false)
return false;
CreateAccountStatus other = (CreateAccountStatus) obj;
if (other.getId() == null ^ this.getId() == null)
return false;
if (other.getId() != null && other.getId().equals(this.getId()) == false)
return false;
if (other.getAccountName() == null ^ this.getAccountName() == null)
return false;
if (other.getAccountName() != null && other.getAccountName().equals(this.getAccountName()) == false)
return false;
if (other.getState() == null ^ this.getState() == null)
return false;
if (other.getState() != null && other.getState().equals(this.getState()) == false)
return false;
if (other.getRequestedTimestamp() == null ^ this.getRequestedTimestamp() == null)
return false;
if (other.getRequestedTimestamp() != null && other.getRequestedTimestamp().equals(this.getRequestedTimestamp()) == false)
return false;
if (other.getCompletedTimestamp() == null ^ this.getCompletedTimestamp() == null)
return false;
if (other.getCompletedTimestamp() != null && other.getCompletedTimestamp().equals(this.getCompletedTimestamp()) == false)
return false;
if (other.getAccountId() == null ^ this.getAccountId() == null)
return false;
if (other.getAccountId() != null && other.getAccountId().equals(this.getAccountId()) == false)
return false;
if (other.getGovCloudAccountId() == null ^ this.getGovCloudAccountId() == null)
return false;
if (other.getGovCloudAccountId() != null && other.getGovCloudAccountId().equals(this.getGovCloudAccountId()) == false)
return false;
if (other.getFailureReason() == null ^ this.getFailureReason() == null)
return false;
if (other.getFailureReason() != null && other.getFailureReason().equals(this.getFailureReason()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode());
hashCode = prime * hashCode + ((getAccountName() == null) ? 0 : getAccountName().hashCode());
hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode());
hashCode = prime * hashCode + ((getRequestedTimestamp() == null) ? 0 : getRequestedTimestamp().hashCode());
hashCode = prime * hashCode + ((getCompletedTimestamp() == null) ? 0 : getCompletedTimestamp().hashCode());
hashCode = prime * hashCode + ((getAccountId() == null) ? 0 : getAccountId().hashCode());
hashCode = prime * hashCode + ((getGovCloudAccountId() == null) ? 0 : getGovCloudAccountId().hashCode());
hashCode = prime * hashCode + ((getFailureReason() == null) ? 0 : getFailureReason().hashCode());
return hashCode;
}
@Override
public CreateAccountStatus clone() {
try {
return (CreateAccountStatus) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.organizations.model.transform.CreateAccountStatusMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}