/* * 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 fms-2018-01-01.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.FMS.Model { /// /// Defines the Organizations organizational units (OUs) that the specified Firewall Manager /// administrator can apply policies to. For more information about OUs in Organizations, /// see Managing /// organizational units (OUs) in the Organizations User Guide. /// public partial class OrganizationalUnitScope { private bool? _allOrganizationalUnitsEnabled; private bool? _excludeSpecifiedOrganizationalUnits; private List _organizationalUnits = new List(); /// /// Gets and sets the property AllOrganizationalUnitsEnabled. /// /// A boolean value that indicates if the administrator can apply policies to all OUs /// within an organization. If true, the administrator can manage all OUs within the organization. /// You can either enable management of all OUs through this operation, or you can specify /// OUs to manage in OrganizationalUnitScope$OrganizationalUnits. You cannot /// specify both. /// /// public bool AllOrganizationalUnitsEnabled { get { return this._allOrganizationalUnitsEnabled.GetValueOrDefault(); } set { this._allOrganizationalUnitsEnabled = value; } } // Check to see if AllOrganizationalUnitsEnabled property is set internal bool IsSetAllOrganizationalUnitsEnabled() { return this._allOrganizationalUnitsEnabled.HasValue; } /// /// Gets and sets the property ExcludeSpecifiedOrganizationalUnits. /// /// A boolean value that excludes the OUs in OrganizationalUnitScope$OrganizationalUnits /// from the administrator's scope. If true, the Firewall Manager administrator can apply /// policies to all OUs in the organization except for the OUs listed in OrganizationalUnitScope$OrganizationalUnits. /// You can either specify a list of OUs to exclude by OrganizationalUnitScope$OrganizationalUnits, /// or you can enable management of all OUs by OrganizationalUnitScope$AllOrganizationalUnitsEnabled. /// You cannot specify both. /// /// public bool ExcludeSpecifiedOrganizationalUnits { get { return this._excludeSpecifiedOrganizationalUnits.GetValueOrDefault(); } set { this._excludeSpecifiedOrganizationalUnits = value; } } // Check to see if ExcludeSpecifiedOrganizationalUnits property is set internal bool IsSetExcludeSpecifiedOrganizationalUnits() { return this._excludeSpecifiedOrganizationalUnits.HasValue; } /// /// Gets and sets the property OrganizationalUnits. /// /// The list of OUs within the organization that the specified Firewall Manager administrator /// either can or cannot apply policies to, based on the value of OrganizationalUnitScope$ExcludeSpecifiedOrganizationalUnits. /// If OrganizationalUnitScope$ExcludeSpecifiedOrganizationalUnits is set /// to true, then the Firewall Manager administrator can apply policies to /// all OUs in the organization except for the OUs in this list. If OrganizationalUnitScope$ExcludeSpecifiedOrganizationalUnits /// is set to false, then the Firewall Manager administrator can only apply /// policies to the OUs in this list. /// /// public List OrganizationalUnits { get { return this._organizationalUnits; } set { this._organizationalUnits = value; } } // Check to see if OrganizationalUnits property is set internal bool IsSetOrganizationalUnits() { return this._organizationalUnits != null && this._organizationalUnits.Count > 0; } } }