/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the organizations-2016-11-28.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Organizations.Model
{
///
/// 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.
///
public partial class CreateAccountStatus
{
private string _accountId;
private string _accountName;
private DateTime? _completedTimestamp;
private CreateAccountFailureReason _failureReason;
private string _govCloudAccountId;
private string _id;
private DateTime? _requestedTimestamp;
private CreateAccountState _state;
///
/// Gets and sets the property 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.
///
///
[AWSProperty(Max=12)]
public string AccountId
{
get { return this._accountId; }
set { this._accountId = value; }
}
// Check to see if AccountId property is set
internal bool IsSetAccountId()
{
return this._accountId != null;
}
///
/// Gets and sets the property AccountName.
///
/// The account name given to the account when it was created.
///
///
[AWSProperty(Sensitive=true, Min=1, Max=50)]
public string AccountName
{
get { return this._accountName; }
set { this._accountName = value; }
}
// Check to see if AccountName property is set
internal bool IsSetAccountName()
{
return this._accountName != null;
}
///
/// Gets and sets the property CompletedTimestamp.
///
/// The date and time that the account was created and the request completed.
///
///
public DateTime CompletedTimestamp
{
get { return this._completedTimestamp.GetValueOrDefault(); }
set { this._completedTimestamp = value; }
}
// Check to see if CompletedTimestamp property is set
internal bool IsSetCompletedTimestamp()
{
return this._completedTimestamp.HasValue;
}
///
/// Gets and sets the property 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.
///
///
///
public CreateAccountFailureReason FailureReason
{
get { return this._failureReason; }
set { this._failureReason = value; }
}
// Check to see if FailureReason property is set
internal bool IsSetFailureReason()
{
return this._failureReason != null;
}
///
/// Gets and sets the property GovCloudAccountId.
///
/// If the account was created successfully, the unique identifier (ID) of the new account
/// in the Amazon Web Services GovCloud (US) Region.
///
///
[AWSProperty(Max=12)]
public string GovCloudAccountId
{
get { return this._govCloudAccountId; }
set { this._govCloudAccountId = value; }
}
// Check to see if GovCloudAccountId property is set
internal bool IsSetGovCloudAccountId()
{
return this._govCloudAccountId != null;
}
///
/// Gets and sets the property 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.
///
///
[AWSProperty(Max=36)]
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
///
/// Gets and sets the property RequestedTimestamp.
///
/// The date and time that the request was made for the account creation.
///
///
public DateTime RequestedTimestamp
{
get { return this._requestedTimestamp.GetValueOrDefault(); }
set { this._requestedTimestamp = value; }
}
// Check to see if RequestedTimestamp property is set
internal bool IsSetRequestedTimestamp()
{
return this._requestedTimestamp.HasValue;
}
///
/// Gets and sets the property State.
///
/// The status of the asynchronous request to create an Amazon Web Services account.
///
///
public CreateAccountState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
}
}