/* * 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 provisioned throughput settings for a specified table or index. The /// settings can be modified using the UpdateTable operation. /// /// /// /// For current minimum and maximum provisioned throughput values, see Limits /// in the Amazon DynamoDB Developer Guide. /// /// public partial class ProvisionedThroughput { private long? _readCapacityUnits; private long? _writeCapacityUnits; /// /// Empty constructor used to set properties independently even when a simple constructor is available /// public ProvisionedThroughput() { } /// /// Instantiates ProvisionedThroughput with the parameterized properties /// /// 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. If read/write capacity mode is PAY_PER_REQUEST the value is set to 0. /// 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. If read/write capacity mode is PAY_PER_REQUEST the value is set to 0. public ProvisionedThroughput(long readCapacityUnits, long writeCapacityUnits) { _readCapacityUnits = readCapacityUnits; _writeCapacityUnits = writeCapacityUnits; } /// /// Gets and sets the property ReadCapacityUnits. /// /// 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. /// /// /// /// If read/write capacity mode is PAY_PER_REQUEST the value is set to 0. /// /// [AWSProperty(Required=true, Min=1)] public long ReadCapacityUnits { get { return this._readCapacityUnits.GetValueOrDefault(); } set { this._readCapacityUnits = value; } } // Check to see if ReadCapacityUnits property is set internal bool IsSetReadCapacityUnits() { return this._readCapacityUnits.HasValue; } /// /// Gets and sets the property WriteCapacityUnits. /// /// 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. /// /// /// /// If read/write capacity mode is PAY_PER_REQUEST the value is set to 0. /// /// [AWSProperty(Required=true, Min=1)] public long WriteCapacityUnits { get { return this._writeCapacityUnits.GetValueOrDefault(); } set { this._writeCapacityUnits = value; } } // Check to see if WriteCapacityUnits property is set internal bool IsSetWriteCapacityUnits() { return this._writeCapacityUnits.HasValue; } } }