/* * 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 elasticache-2015-02-02.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.ElastiCache.Model { /// /// Represents a collection of cache nodes in a replication group. One node in the node /// group is the read/write primary node. All the other nodes are read-only Replica nodes. /// public partial class NodeGroup { private string _nodeGroupId; private List _nodeGroupMembers = new List(); private Endpoint _primaryEndpoint; private Endpoint _readerEndpoint; private string _slots; private string _status; /// /// Gets and sets the property NodeGroupId. /// /// The identifier for the node group (shard). A Redis (cluster mode disabled) replication /// group contains only 1 node group; therefore, the node group ID is 0001. A Redis (cluster /// mode enabled) replication group contains 1 to 90 node groups numbered 0001 to 0090. /// Optionally, the user can provide the id for a node group. /// /// public string NodeGroupId { get { return this._nodeGroupId; } set { this._nodeGroupId = value; } } // Check to see if NodeGroupId property is set internal bool IsSetNodeGroupId() { return this._nodeGroupId != null; } /// /// Gets and sets the property NodeGroupMembers. /// /// A list containing information about individual nodes within the node group (shard). /// /// public List NodeGroupMembers { get { return this._nodeGroupMembers; } set { this._nodeGroupMembers = value; } } // Check to see if NodeGroupMembers property is set internal bool IsSetNodeGroupMembers() { return this._nodeGroupMembers != null && this._nodeGroupMembers.Count > 0; } /// /// Gets and sets the property PrimaryEndpoint. /// /// The endpoint of the primary node in this node group (shard). /// /// public Endpoint PrimaryEndpoint { get { return this._primaryEndpoint; } set { this._primaryEndpoint = value; } } // Check to see if PrimaryEndpoint property is set internal bool IsSetPrimaryEndpoint() { return this._primaryEndpoint != null; } /// /// Gets and sets the property ReaderEndpoint. /// /// The endpoint of the replica nodes in this node group (shard). /// /// public Endpoint ReaderEndpoint { get { return this._readerEndpoint; } set { this._readerEndpoint = value; } } // Check to see if ReaderEndpoint property is set internal bool IsSetReaderEndpoint() { return this._readerEndpoint != null; } /// /// Gets and sets the property Slots. /// /// The keyspace for this node group (shard). /// /// public string Slots { get { return this._slots; } set { this._slots = value; } } // Check to see if Slots property is set internal bool IsSetSlots() { return this._slots != null; } /// /// Gets and sets the property Status. /// /// The current state of this replication group - creating, available, /// modifying, deleting. /// /// public string Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }