/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DynamoDB { namespace Model { /** *

Represents the amount of provisioned throughput capacity consumed on a table * or an index.

See Also:

AWS * API Reference

*/ class Capacity { public: AWS_DYNAMODB_API Capacity(); AWS_DYNAMODB_API Capacity(Aws::Utils::Json::JsonView jsonValue); AWS_DYNAMODB_API Capacity& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The total number of read capacity units consumed on a table or an index.

*/ inline double GetReadCapacityUnits() const{ return m_readCapacityUnits; } /** *

The total number of read capacity units consumed on a table or an index.

*/ inline bool ReadCapacityUnitsHasBeenSet() const { return m_readCapacityUnitsHasBeenSet; } /** *

The total number of read capacity units consumed on a table or an index.

*/ inline void SetReadCapacityUnits(double value) { m_readCapacityUnitsHasBeenSet = true; m_readCapacityUnits = value; } /** *

The total number of read capacity units consumed on a table or an index.

*/ inline Capacity& WithReadCapacityUnits(double value) { SetReadCapacityUnits(value); return *this;} /** *

The total number of write capacity units consumed on a table or an index.

*/ inline double GetWriteCapacityUnits() const{ return m_writeCapacityUnits; } /** *

The total number of write capacity units consumed on a table or an index.

*/ inline bool WriteCapacityUnitsHasBeenSet() const { return m_writeCapacityUnitsHasBeenSet; } /** *

The total number of write capacity units consumed on a table or an index.

*/ inline void SetWriteCapacityUnits(double value) { m_writeCapacityUnitsHasBeenSet = true; m_writeCapacityUnits = value; } /** *

The total number of write capacity units consumed on a table or an index.

*/ inline Capacity& WithWriteCapacityUnits(double value) { SetWriteCapacityUnits(value); return *this;} /** *

The total number of capacity units consumed on a table or an index.

*/ inline double GetCapacityUnits() const{ return m_capacityUnits; } /** *

The total number of capacity units consumed on a table or an index.

*/ inline bool CapacityUnitsHasBeenSet() const { return m_capacityUnitsHasBeenSet; } /** *

The total number of capacity units consumed on a table or an index.

*/ inline void SetCapacityUnits(double value) { m_capacityUnitsHasBeenSet = true; m_capacityUnits = value; } /** *

The total number of capacity units consumed on a table or an index.

*/ inline Capacity& WithCapacityUnits(double value) { SetCapacityUnits(value); return *this;} private: double m_readCapacityUnits; bool m_readCapacityUnitsHasBeenSet = false; double m_writeCapacityUnits; bool m_writeCapacityUnitsHasBeenSet = false; double m_capacityUnits; bool m_capacityUnitsHasBeenSet = false; }; } // namespace Model } // namespace DynamoDB } // namespace Aws