/* * 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 docdb-2014-10-31.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.DocDB.Model { /// /// A data structure with information about any primary and secondary clusters associated /// with an Amazon DocumentDB global clusters. /// public partial class GlobalClusterMember { private string _dbClusterArn; private bool? _isWriter; private List _readers = new List(); /// /// Gets and sets the property DBClusterArn. /// /// The Amazon Resource Name (ARN) for each Amazon DocumentDB cluster. /// /// public string DBClusterArn { get { return this._dbClusterArn; } set { this._dbClusterArn = value; } } // Check to see if DBClusterArn property is set internal bool IsSetDBClusterArn() { return this._dbClusterArn != null; } /// /// Gets and sets the property IsWriter. /// /// Specifies whether the Amazon DocumentDB cluster is the primary cluster (that is, /// has read-write capability) for the Amazon DocumentDB global cluster with which it /// is associated. /// /// public bool IsWriter { get { return this._isWriter.GetValueOrDefault(); } set { this._isWriter = value; } } // Check to see if IsWriter property is set internal bool IsSetIsWriter() { return this._isWriter.HasValue; } /// /// Gets and sets the property Readers. /// /// The Amazon Resource Name (ARN) for each read-only secondary cluster associated with /// the Aurora global cluster. /// /// public List Readers { get { return this._readers; } set { this._readers = value; } } // Check to see if Readers property is set internal bool IsSetReaders() { return this._readers != null && this._readers.Count > 0; } } }