/* * 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 ssm-2014-11-06.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.SimpleSystemsManagement.Model { /// /// The data type name for including resource data sync state. There are four sync states: /// /// /// /// OrganizationNotExists (Your organization doesn't exist) /// /// /// /// NoPermissions (The system can't locate the service-linked role. This /// role is automatically created when a user creates a resource data sync in Amazon Web /// Services Systems Manager Explorer.) /// /// /// /// InvalidOrganizationalUnit (You specified or selected an invalid unit /// in the resource data sync configuration.) /// /// /// /// TrustedAccessDisabled (You disabled Systems Manager access in the organization /// in Organizations.) /// /// public partial class ResourceDataSyncSourceWithState { private ResourceDataSyncAwsOrganizationsSource _awsOrganizationsSource; private bool? _enableAllOpsDataSources; private bool? _includeFutureRegions; private List _sourceRegions = new List(); private string _sourceType; private string _state; /// /// Gets and sets the property AwsOrganizationsSource. /// /// The field name in SyncSource for the ResourceDataSyncAwsOrganizationsSource /// type. /// /// public ResourceDataSyncAwsOrganizationsSource AwsOrganizationsSource { get { return this._awsOrganizationsSource; } set { this._awsOrganizationsSource = value; } } // Check to see if AwsOrganizationsSource property is set internal bool IsSetAwsOrganizationsSource() { return this._awsOrganizationsSource != null; } /// /// Gets and sets the property EnableAllOpsDataSources. /// /// When you create a resource data sync, if you choose one of the Organizations options, /// then Systems Manager automatically enables all OpsData sources in the selected Amazon /// Web Services Regions for all Amazon Web Services accounts in your organization (or /// in the selected organization units). For more information, see About /// multiple account and Region resource data syncs in the Amazon Web Services /// Systems Manager User Guide. /// /// public bool EnableAllOpsDataSources { get { return this._enableAllOpsDataSources.GetValueOrDefault(); } set { this._enableAllOpsDataSources = value; } } // Check to see if EnableAllOpsDataSources property is set internal bool IsSetEnableAllOpsDataSources() { return this._enableAllOpsDataSources.HasValue; } /// /// Gets and sets the property IncludeFutureRegions. /// /// Whether to automatically synchronize and aggregate data from new Amazon Web Services /// Regions when those Regions come online. /// /// public bool IncludeFutureRegions { get { return this._includeFutureRegions.GetValueOrDefault(); } set { this._includeFutureRegions = value; } } // Check to see if IncludeFutureRegions property is set internal bool IsSetIncludeFutureRegions() { return this._includeFutureRegions.HasValue; } /// /// Gets and sets the property SourceRegions. /// /// The SyncSource Amazon Web Services Regions included in the resource data /// sync. /// /// public List SourceRegions { get { return this._sourceRegions; } set { this._sourceRegions = value; } } // Check to see if SourceRegions property is set internal bool IsSetSourceRegions() { return this._sourceRegions != null && this._sourceRegions.Count > 0; } /// /// Gets and sets the property SourceType. /// /// The type of data source for the resource data sync. SourceType is either /// AwsOrganizations (if an organization is present in Organizations) or /// singleAccountMultiRegions. /// /// [AWSProperty(Min=1, Max=64)] public string SourceType { get { return this._sourceType; } set { this._sourceType = value; } } // Check to see if SourceType property is set internal bool IsSetSourceType() { return this._sourceType != null; } /// /// Gets and sets the property State. /// /// The data type name for including resource data sync state. There are four sync states: /// /// /// /// OrganizationNotExists: Your organization doesn't exist. /// /// /// /// NoPermissions: The system can't locate the service-linked role. This /// role is automatically created when a user creates a resource data sync in Explorer. /// /// /// /// InvalidOrganizationalUnit: You specified or selected an invalid unit /// in the resource data sync configuration. /// /// /// /// TrustedAccessDisabled: You disabled Systems Manager access in the organization /// in Organizations. /// /// [AWSProperty(Min=1, Max=64)] public string State { get { return this._state; } set { this._state = value; } } // Check to see if State property is set internal bool IsSetState() { return this._state != null; } } }