/* * 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 amount of provisioned throughput capacity consumed on a table or an /// index. /// public partial class Capacity { private double? _capacityUnits; private double? _readCapacityUnits; private double? _writeCapacityUnits; /// /// Gets and sets the property CapacityUnits. /// /// The total number of capacity units consumed on a table or an index. /// /// public double CapacityUnits { get { return this._capacityUnits.GetValueOrDefault(); } set { this._capacityUnits = value; } } // Check to see if CapacityUnits property is set internal bool IsSetCapacityUnits() { return this._capacityUnits.HasValue; } /// /// Gets and sets the property ReadCapacityUnits. /// /// The total number of read capacity units consumed on a table or an index. /// /// public double 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 total number of write capacity units consumed on a table or an index. /// /// public double 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; } } }