231 lines
9.4 KiB
C++
231 lines
9.4 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/dynamodb/DynamoDB_EXPORTS.h>
|
|
#include <aws/core/utils/DateTime.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace DynamoDB
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Represents the provisioned throughput settings for the table, consisting of
|
|
* read and write capacity units, along with data about increases and
|
|
* decreases.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ProvisionedThroughputDescription">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_DYNAMODB_API ProvisionedThroughputDescription
|
|
{
|
|
public:
|
|
ProvisionedThroughputDescription();
|
|
ProvisionedThroughputDescription(Aws::Utils::Json::JsonView jsonValue);
|
|
ProvisionedThroughputDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The date and time of the last provisioned throughput increase for this
|
|
* table.</p>
|
|
*/
|
|
inline const Aws::Utils::DateTime& GetLastIncreaseDateTime() const{ return m_lastIncreaseDateTime; }
|
|
|
|
/**
|
|
* <p>The date and time of the last provisioned throughput increase for this
|
|
* table.</p>
|
|
*/
|
|
inline bool LastIncreaseDateTimeHasBeenSet() const { return m_lastIncreaseDateTimeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The date and time of the last provisioned throughput increase for this
|
|
* table.</p>
|
|
*/
|
|
inline void SetLastIncreaseDateTime(const Aws::Utils::DateTime& value) { m_lastIncreaseDateTimeHasBeenSet = true; m_lastIncreaseDateTime = value; }
|
|
|
|
/**
|
|
* <p>The date and time of the last provisioned throughput increase for this
|
|
* table.</p>
|
|
*/
|
|
inline void SetLastIncreaseDateTime(Aws::Utils::DateTime&& value) { m_lastIncreaseDateTimeHasBeenSet = true; m_lastIncreaseDateTime = std::move(value); }
|
|
|
|
/**
|
|
* <p>The date and time of the last provisioned throughput increase for this
|
|
* table.</p>
|
|
*/
|
|
inline ProvisionedThroughputDescription& WithLastIncreaseDateTime(const Aws::Utils::DateTime& value) { SetLastIncreaseDateTime(value); return *this;}
|
|
|
|
/**
|
|
* <p>The date and time of the last provisioned throughput increase for this
|
|
* table.</p>
|
|
*/
|
|
inline ProvisionedThroughputDescription& WithLastIncreaseDateTime(Aws::Utils::DateTime&& value) { SetLastIncreaseDateTime(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The date and time of the last provisioned throughput decrease for this
|
|
* table.</p>
|
|
*/
|
|
inline const Aws::Utils::DateTime& GetLastDecreaseDateTime() const{ return m_lastDecreaseDateTime; }
|
|
|
|
/**
|
|
* <p>The date and time of the last provisioned throughput decrease for this
|
|
* table.</p>
|
|
*/
|
|
inline bool LastDecreaseDateTimeHasBeenSet() const { return m_lastDecreaseDateTimeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The date and time of the last provisioned throughput decrease for this
|
|
* table.</p>
|
|
*/
|
|
inline void SetLastDecreaseDateTime(const Aws::Utils::DateTime& value) { m_lastDecreaseDateTimeHasBeenSet = true; m_lastDecreaseDateTime = value; }
|
|
|
|
/**
|
|
* <p>The date and time of the last provisioned throughput decrease for this
|
|
* table.</p>
|
|
*/
|
|
inline void SetLastDecreaseDateTime(Aws::Utils::DateTime&& value) { m_lastDecreaseDateTimeHasBeenSet = true; m_lastDecreaseDateTime = std::move(value); }
|
|
|
|
/**
|
|
* <p>The date and time of the last provisioned throughput decrease for this
|
|
* table.</p>
|
|
*/
|
|
inline ProvisionedThroughputDescription& WithLastDecreaseDateTime(const Aws::Utils::DateTime& value) { SetLastDecreaseDateTime(value); return *this;}
|
|
|
|
/**
|
|
* <p>The date and time of the last provisioned throughput decrease for this
|
|
* table.</p>
|
|
*/
|
|
inline ProvisionedThroughputDescription& WithLastDecreaseDateTime(Aws::Utils::DateTime&& value) { SetLastDecreaseDateTime(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The number of provisioned throughput decreases for this table during this UTC
|
|
* calendar day. For current maximums on provisioned throughput decreases, see <a
|
|
* href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html">Limits</a>
|
|
* in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
|
*/
|
|
inline long long GetNumberOfDecreasesToday() const{ return m_numberOfDecreasesToday; }
|
|
|
|
/**
|
|
* <p>The number of provisioned throughput decreases for this table during this UTC
|
|
* calendar day. For current maximums on provisioned throughput decreases, see <a
|
|
* href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html">Limits</a>
|
|
* in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
|
*/
|
|
inline bool NumberOfDecreasesTodayHasBeenSet() const { return m_numberOfDecreasesTodayHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The number of provisioned throughput decreases for this table during this UTC
|
|
* calendar day. For current maximums on provisioned throughput decreases, see <a
|
|
* href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html">Limits</a>
|
|
* in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
|
*/
|
|
inline void SetNumberOfDecreasesToday(long long value) { m_numberOfDecreasesTodayHasBeenSet = true; m_numberOfDecreasesToday = value; }
|
|
|
|
/**
|
|
* <p>The number of provisioned throughput decreases for this table during this UTC
|
|
* calendar day. For current maximums on provisioned throughput decreases, see <a
|
|
* href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html">Limits</a>
|
|
* in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
|
*/
|
|
inline ProvisionedThroughputDescription& WithNumberOfDecreasesToday(long long value) { SetNumberOfDecreasesToday(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The maximum number of strongly consistent reads consumed per second before
|
|
* DynamoDB returns a <code>ThrottlingException</code>. Eventually consistent reads
|
|
* require less effort than strongly consistent reads, so a setting of 50
|
|
* <code>ReadCapacityUnits</code> per second provides 100 eventually consistent
|
|
* <code>ReadCapacityUnits</code> per second.</p>
|
|
*/
|
|
inline long long GetReadCapacityUnits() const{ return m_readCapacityUnits; }
|
|
|
|
/**
|
|
* <p>The maximum number of strongly consistent reads consumed per second before
|
|
* DynamoDB returns a <code>ThrottlingException</code>. Eventually consistent reads
|
|
* require less effort than strongly consistent reads, so a setting of 50
|
|
* <code>ReadCapacityUnits</code> per second provides 100 eventually consistent
|
|
* <code>ReadCapacityUnits</code> per second.</p>
|
|
*/
|
|
inline bool ReadCapacityUnitsHasBeenSet() const { return m_readCapacityUnitsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The maximum number of strongly consistent reads consumed per second before
|
|
* DynamoDB returns a <code>ThrottlingException</code>. Eventually consistent reads
|
|
* require less effort than strongly consistent reads, so a setting of 50
|
|
* <code>ReadCapacityUnits</code> per second provides 100 eventually consistent
|
|
* <code>ReadCapacityUnits</code> per second.</p>
|
|
*/
|
|
inline void SetReadCapacityUnits(long long value) { m_readCapacityUnitsHasBeenSet = true; m_readCapacityUnits = value; }
|
|
|
|
/**
|
|
* <p>The maximum number of strongly consistent reads consumed per second before
|
|
* DynamoDB returns a <code>ThrottlingException</code>. Eventually consistent reads
|
|
* require less effort than strongly consistent reads, so a setting of 50
|
|
* <code>ReadCapacityUnits</code> per second provides 100 eventually consistent
|
|
* <code>ReadCapacityUnits</code> per second.</p>
|
|
*/
|
|
inline ProvisionedThroughputDescription& WithReadCapacityUnits(long long value) { SetReadCapacityUnits(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The maximum number of writes consumed per second before DynamoDB returns a
|
|
* <code>ThrottlingException</code>.</p>
|
|
*/
|
|
inline long long GetWriteCapacityUnits() const{ return m_writeCapacityUnits; }
|
|
|
|
/**
|
|
* <p>The maximum number of writes consumed per second before DynamoDB returns a
|
|
* <code>ThrottlingException</code>.</p>
|
|
*/
|
|
inline bool WriteCapacityUnitsHasBeenSet() const { return m_writeCapacityUnitsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The maximum number of writes consumed per second before DynamoDB returns a
|
|
* <code>ThrottlingException</code>.</p>
|
|
*/
|
|
inline void SetWriteCapacityUnits(long long value) { m_writeCapacityUnitsHasBeenSet = true; m_writeCapacityUnits = value; }
|
|
|
|
/**
|
|
* <p>The maximum number of writes consumed per second before DynamoDB returns a
|
|
* <code>ThrottlingException</code>.</p>
|
|
*/
|
|
inline ProvisionedThroughputDescription& WithWriteCapacityUnits(long long value) { SetWriteCapacityUnits(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::Utils::DateTime m_lastIncreaseDateTime;
|
|
bool m_lastIncreaseDateTimeHasBeenSet;
|
|
|
|
Aws::Utils::DateTime m_lastDecreaseDateTime;
|
|
bool m_lastDecreaseDateTimeHasBeenSet;
|
|
|
|
long long m_numberOfDecreasesToday;
|
|
bool m_numberOfDecreasesTodayHasBeenSet;
|
|
|
|
long long m_readCapacityUnits;
|
|
bool m_readCapacityUnitsHasBeenSet;
|
|
|
|
long long m_writeCapacityUnits;
|
|
bool m_writeCapacityUnitsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace DynamoDB
|
|
} // namespace Aws
|