/* * 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. /// /// /// 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; } } }