/* * 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 memorydb-2021-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.MemoryDB.Model { /// /// A list of cluster configuration options. /// public partial class ClusterConfiguration { private string _description; private string _engineVersion; private string _maintenanceWindow; private string _name; private string _nodeType; private int? _numShards; private string _parameterGroupName; private int? _port; private List _shards = new List(); private int? _snapshotRetentionLimit; private string _snapshotWindow; private string _subnetGroupName; private string _topicArn; private string _vpcId; /// /// Gets and sets the property Description. /// /// The description of the cluster configuration /// /// public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property EngineVersion. /// /// The Redis engine version used by the cluster /// /// public string EngineVersion { get { return this._engineVersion; } set { this._engineVersion = value; } } // Check to see if EngineVersion property is set internal bool IsSetEngineVersion() { return this._engineVersion != null; } /// /// Gets and sets the property MaintenanceWindow. /// /// The specified maintenance window for the cluster /// /// public string MaintenanceWindow { get { return this._maintenanceWindow; } set { this._maintenanceWindow = value; } } // Check to see if MaintenanceWindow property is set internal bool IsSetMaintenanceWindow() { return this._maintenanceWindow != null; } /// /// Gets and sets the property Name. /// /// The name of the cluster /// /// public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property NodeType. /// /// The node type used for the cluster /// /// public string NodeType { get { return this._nodeType; } set { this._nodeType = value; } } // Check to see if NodeType property is set internal bool IsSetNodeType() { return this._nodeType != null; } /// /// Gets and sets the property NumShards. /// /// The number of shards in the cluster /// /// public int NumShards { get { return this._numShards.GetValueOrDefault(); } set { this._numShards = value; } } // Check to see if NumShards property is set internal bool IsSetNumShards() { return this._numShards.HasValue; } /// /// Gets and sets the property ParameterGroupName. /// /// The name of parameter group used by the cluster /// /// public string ParameterGroupName { get { return this._parameterGroupName; } set { this._parameterGroupName = value; } } // Check to see if ParameterGroupName property is set internal bool IsSetParameterGroupName() { return this._parameterGroupName != null; } /// /// Gets and sets the property Port. /// /// The port used by the cluster /// /// public int Port { get { return this._port.GetValueOrDefault(); } set { this._port = value; } } // Check to see if Port property is set internal bool IsSetPort() { return this._port.HasValue; } /// /// Gets and sets the property Shards. /// /// The list of shards in the cluster /// /// public List Shards { get { return this._shards; } set { this._shards = value; } } // Check to see if Shards property is set internal bool IsSetShards() { return this._shards != null && this._shards.Count > 0; } /// /// Gets and sets the property SnapshotRetentionLimit. /// /// The snapshot retention limit set by the cluster /// /// public int SnapshotRetentionLimit { get { return this._snapshotRetentionLimit.GetValueOrDefault(); } set { this._snapshotRetentionLimit = value; } } // Check to see if SnapshotRetentionLimit property is set internal bool IsSetSnapshotRetentionLimit() { return this._snapshotRetentionLimit.HasValue; } /// /// Gets and sets the property SnapshotWindow. /// /// The snapshot window set by the cluster /// /// public string SnapshotWindow { get { return this._snapshotWindow; } set { this._snapshotWindow = value; } } // Check to see if SnapshotWindow property is set internal bool IsSetSnapshotWindow() { return this._snapshotWindow != null; } /// /// Gets and sets the property SubnetGroupName. /// /// The name of the subnet group used by the cluster /// /// public string SubnetGroupName { get { return this._subnetGroupName; } set { this._subnetGroupName = value; } } // Check to see if SubnetGroupName property is set internal bool IsSetSubnetGroupName() { return this._subnetGroupName != null; } /// /// Gets and sets the property TopicArn. /// /// The Amazon Resource Name (ARN) of the SNS notification topic for the cluster /// /// public string TopicArn { get { return this._topicArn; } set { this._topicArn = value; } } // Check to see if TopicArn property is set internal bool IsSetTopicArn() { return this._topicArn != null; } /// /// Gets and sets the property VpcId. /// /// The ID of the VPC the cluster belongs to /// /// public string VpcId { get { return this._vpcId; } set { this._vpcId = value; } } // Check to see if VpcId property is set internal bool IsSetVpcId() { return this._vpcId != null; } } }