/* * 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 details about an organization. An organization is a collection of accounts /// that are centrally managed together using consolidated billing, organized hierarchically /// with organizational units (OUs), and controlled with policies . /// public partial class Organization { private string _arn; private List _availablePolicyTypes = new List(); private OrganizationFeatureSet _featureSet; private string _id; private string _masterAccountArn; private string _masterAccountEmail; private string _masterAccountId; /// /// Gets and sets the property Arn. /// /// The Amazon Resource Name (ARN) of an organization. /// /// /// /// For more information about ARNs in Organizations, see ARN /// Formats Supported by Organizations in the Amazon Web Services Service Authorization /// Reference. /// /// public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// /// Gets and sets the property AvailablePolicyTypes. /// /// Do not use. This field is deprecated and doesn't provide complete information about /// the policies in your organization. /// /// /// /// To determine the policies that are enabled and available for use in your organization, /// use the ListRoots operation instead. /// /// public List AvailablePolicyTypes { get { return this._availablePolicyTypes; } set { this._availablePolicyTypes = value; } } // Check to see if AvailablePolicyTypes property is set internal bool IsSetAvailablePolicyTypes() { return this._availablePolicyTypes != null && this._availablePolicyTypes.Count > 0; } /// /// Gets and sets the property FeatureSet. /// /// Specifies the functionality that currently is available to the organization. If set /// to "ALL", then all features are enabled and policies can be applied to accounts in /// the organization. If set to "CONSOLIDATED_BILLING", then only consolidated billing /// functionality is available. For more information, see Enabling /// All Features in Your Organization in the Organizations User Guide. /// /// public OrganizationFeatureSet FeatureSet { get { return this._featureSet; } set { this._featureSet = value; } } // Check to see if FeatureSet property is set internal bool IsSetFeatureSet() { return this._featureSet != null; } /// /// Gets and sets the property Id. /// /// The unique identifier (ID) of an organization. /// /// /// /// The regex pattern for an organization /// ID string requires "o-" followed by from 10 to 32 lowercase letters or digits. /// /// 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 MasterAccountArn. /// /// The Amazon Resource Name (ARN) of the account that is designated as the management /// account for the organization. /// /// /// /// For more information about ARNs in Organizations, see ARN /// Formats Supported by Organizations in the Amazon Web Services Service Authorization /// Reference. /// /// public string MasterAccountArn { get { return this._masterAccountArn; } set { this._masterAccountArn = value; } } // Check to see if MasterAccountArn property is set internal bool IsSetMasterAccountArn() { return this._masterAccountArn != null; } /// /// Gets and sets the property MasterAccountEmail. /// /// The email address that is associated with the Amazon Web Services account that is /// designated as the management account for the organization. /// /// [AWSProperty(Sensitive=true, Min=6, Max=64)] public string MasterAccountEmail { get { return this._masterAccountEmail; } set { this._masterAccountEmail = value; } } // Check to see if MasterAccountEmail property is set internal bool IsSetMasterAccountEmail() { return this._masterAccountEmail != null; } /// /// Gets and sets the property MasterAccountId. /// /// The unique identifier (ID) of the management account of an organization. /// /// /// /// The regex pattern for an account ID /// string requires exactly 12 digits. /// /// [AWSProperty(Max=12)] public string MasterAccountId { get { return this._masterAccountId; } set { this._masterAccountId = value; } } // Check to see if MasterAccountId property is set internal bool IsSetMasterAccountId() { return this._masterAccountId != null; } } }