/* * Copyright 2010-2014 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 dynamodb-2012-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.DynamoDBv2.Model { /// /// Represents the properties of a replica. /// public partial class ReplicaSettingsDescription { private string _regionName; private BillingModeSummary _replicaBillingModeSummary; private List _replicaGlobalSecondaryIndexSettings = new List(); private AutoScalingSettingsDescription _replicaProvisionedReadCapacityAutoScalingSettings; private long? _replicaProvisionedReadCapacityUnits; private AutoScalingSettingsDescription _replicaProvisionedWriteCapacityAutoScalingSettings; private long? _replicaProvisionedWriteCapacityUnits; private ReplicaStatus _replicaStatus; /// /// Gets and sets the property RegionName. /// /// The Region name of the replica. /// /// [AWSProperty(Required=true)] public string RegionName { get { return this._regionName; } set { this._regionName = value; } } // Check to see if RegionName property is set internal bool IsSetRegionName() { return this._regionName != null; } /// /// Gets and sets the property ReplicaBillingModeSummary. /// /// The read/write capacity mode of the replica. /// /// public BillingModeSummary ReplicaBillingModeSummary { get { return this._replicaBillingModeSummary; } set { this._replicaBillingModeSummary = value; } } // Check to see if ReplicaBillingModeSummary property is set internal bool IsSetReplicaBillingModeSummary() { return this._replicaBillingModeSummary != null; } /// /// Gets and sets the property ReplicaGlobalSecondaryIndexSettings. /// /// Replica global secondary index settings for the global table. /// /// public List ReplicaGlobalSecondaryIndexSettings { get { return this._replicaGlobalSecondaryIndexSettings; } set { this._replicaGlobalSecondaryIndexSettings = value; } } // Check to see if ReplicaGlobalSecondaryIndexSettings property is set internal bool IsSetReplicaGlobalSecondaryIndexSettings() { return this._replicaGlobalSecondaryIndexSettings != null && this._replicaGlobalSecondaryIndexSettings.Count > 0; } /// /// Gets and sets the property ReplicaProvisionedReadCapacityAutoScalingSettings. /// /// Auto scaling settings for a global table replica's read capacity units. /// /// public AutoScalingSettingsDescription ReplicaProvisionedReadCapacityAutoScalingSettings { get { return this._replicaProvisionedReadCapacityAutoScalingSettings; } set { this._replicaProvisionedReadCapacityAutoScalingSettings = value; } } // Check to see if ReplicaProvisionedReadCapacityAutoScalingSettings property is set internal bool IsSetReplicaProvisionedReadCapacityAutoScalingSettings() { return this._replicaProvisionedReadCapacityAutoScalingSettings != null; } /// /// Gets and sets the property ReplicaProvisionedReadCapacityUnits. /// /// The maximum number of strongly consistent reads consumed per second before DynamoDB /// returns a ThrottlingException. For more information, see Specifying /// Read and Write Requirements in the Amazon DynamoDB Developer Guide. /// /// [AWSProperty(Min=0)] public long ReplicaProvisionedReadCapacityUnits { get { return this._replicaProvisionedReadCapacityUnits.GetValueOrDefault(); } set { this._replicaProvisionedReadCapacityUnits = value; } } // Check to see if ReplicaProvisionedReadCapacityUnits property is set internal bool IsSetReplicaProvisionedReadCapacityUnits() { return this._replicaProvisionedReadCapacityUnits.HasValue; } /// /// Gets and sets the property ReplicaProvisionedWriteCapacityAutoScalingSettings. /// /// Auto scaling settings for a global table replica's write capacity units. /// /// public AutoScalingSettingsDescription ReplicaProvisionedWriteCapacityAutoScalingSettings { get { return this._replicaProvisionedWriteCapacityAutoScalingSettings; } set { this._replicaProvisionedWriteCapacityAutoScalingSettings = value; } } // Check to see if ReplicaProvisionedWriteCapacityAutoScalingSettings property is set internal bool IsSetReplicaProvisionedWriteCapacityAutoScalingSettings() { return this._replicaProvisionedWriteCapacityAutoScalingSettings != null; } /// /// Gets and sets the property ReplicaProvisionedWriteCapacityUnits. /// /// The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException. /// For more information, see Specifying /// Read and Write Requirements in the Amazon DynamoDB Developer Guide. /// /// [AWSProperty(Min=0)] public long ReplicaProvisionedWriteCapacityUnits { get { return this._replicaProvisionedWriteCapacityUnits.GetValueOrDefault(); } set { this._replicaProvisionedWriteCapacityUnits = value; } } // Check to see if ReplicaProvisionedWriteCapacityUnits property is set internal bool IsSetReplicaProvisionedWriteCapacityUnits() { return this._replicaProvisionedWriteCapacityUnits.HasValue; } /// /// Gets and sets the property ReplicaStatus. /// /// The current state of the Region: /// ///
  • /// /// CREATING - The Region is being created. /// ///
  • /// /// UPDATING - The Region is being updated. /// ///
  • /// /// DELETING - The Region is being deleted. /// ///
  • /// /// ACTIVE - The Region is ready for use. /// ///
///
public ReplicaStatus ReplicaStatus { get { return this._replicaStatus; } set { this._replicaStatus = value; } } // Check to see if ReplicaStatus property is set internal bool IsSetReplicaStatus() { return this._replicaStatus != null; } } }