/* * 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 { /// /// The capacity units consumed by an operation. The data returned includes the total /// provisioned throughput consumed, along with statistics for the table and any indexes /// involved in the operation. ConsumedCapacity is only returned if the request /// asked for it. For more information, see Provisioned /// Throughput in the Amazon DynamoDB Developer Guide. /// public partial class ConsumedCapacity { private double? _capacityUnits; private Dictionary _globalSecondaryIndexes = new Dictionary(); private Dictionary _localSecondaryIndexes = new Dictionary(); private double? _readCapacityUnits; private Capacity _table; private string _tableName; private double? _writeCapacityUnits; /// /// Gets and sets the property CapacityUnits. /// /// The total number of capacity units consumed by the operation. /// /// 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 GlobalSecondaryIndexes. /// /// The amount of throughput consumed on each global index affected by the operation. /// /// public Dictionary GlobalSecondaryIndexes { get { return this._globalSecondaryIndexes; } set { this._globalSecondaryIndexes = value; } } // Check to see if GlobalSecondaryIndexes property is set internal bool IsSetGlobalSecondaryIndexes() { return this._globalSecondaryIndexes != null && this._globalSecondaryIndexes.Count > 0; } /// /// Gets and sets the property LocalSecondaryIndexes. /// /// The amount of throughput consumed on each local index affected by the operation. /// /// public Dictionary LocalSecondaryIndexes { get { return this._localSecondaryIndexes; } set { this._localSecondaryIndexes = value; } } // Check to see if LocalSecondaryIndexes property is set internal bool IsSetLocalSecondaryIndexes() { return this._localSecondaryIndexes != null && this._localSecondaryIndexes.Count > 0; } /// /// Gets and sets the property ReadCapacityUnits. /// /// The total number of read capacity units consumed by the operation. /// /// 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 Table. /// /// The amount of throughput consumed on the table affected by the operation. /// /// public Capacity Table { get { return this._table; } set { this._table = value; } } // Check to see if Table property is set internal bool IsSetTable() { return this._table != null; } /// /// Gets and sets the property TableName. /// /// The name of the table that was affected by the operation. /// /// [AWSProperty(Min=3, Max=255)] public string TableName { get { return this._tableName; } set { this._tableName = value; } } // Check to see if TableName property is set internal bool IsSetTableName() { return this._tableName != null; } /// /// Gets and sets the property WriteCapacityUnits. /// /// The total number of write capacity units consumed by the operation. /// /// 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; } } }