/* * 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 rds-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.RDS.Model { /// /// Contains information about an instance that is part of a DB cluster. /// public partial class DBClusterMember { private string _dbClusterParameterGroupStatus; private string _dbInstanceIdentifier; private bool? _isClusterWriter; private int? _promotionTier; /// /// Gets and sets the property DBClusterParameterGroupStatus. /// /// Specifies the status of the DB cluster parameter group for this member of the DB cluster. /// /// public string DBClusterParameterGroupStatus { get { return this._dbClusterParameterGroupStatus; } set { this._dbClusterParameterGroupStatus = value; } } // Check to see if DBClusterParameterGroupStatus property is set internal bool IsSetDBClusterParameterGroupStatus() { return this._dbClusterParameterGroupStatus != null; } /// /// Gets and sets the property DBInstanceIdentifier. /// /// Specifies the instance identifier for this member of the DB cluster. /// /// public string DBInstanceIdentifier { get { return this._dbInstanceIdentifier; } set { this._dbInstanceIdentifier = value; } } // Check to see if DBInstanceIdentifier property is set internal bool IsSetDBInstanceIdentifier() { return this._dbInstanceIdentifier != null; } /// /// Gets and sets the property IsClusterWriter. /// /// Value that is true if the cluster member is the primary instance for /// the DB cluster and false otherwise. /// /// public bool IsClusterWriter { get { return this._isClusterWriter.GetValueOrDefault(); } set { this._isClusterWriter = value; } } // Check to see if IsClusterWriter property is set internal bool IsSetIsClusterWriter() { return this._isClusterWriter.HasValue; } /// /// Gets and sets the property PromotionTier. /// /// A value that specifies the order in which an Aurora Replica is promoted to the primary /// instance after a failure of the existing primary instance. For more information, see /// /// Fault Tolerance for an Aurora DB Cluster in the Amazon Aurora User Guide. /// /// public int PromotionTier { get { return this._promotionTier.GetValueOrDefault(); } set { this._promotionTier = value; } } // Check to see if PromotionTier property is set internal bool IsSetPromotionTier() { return this._promotionTier.HasValue; } } }