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

The read/write throughput capacity mode for a table. The options are:

*
  • throughputMode:PAY_PER_REQUEST and

  • *

    throughputMode:PROVISIONED.

For more * information, see Read/write * capacity modes in the Amazon Keyspaces Developer Guide.

See * Also:

AWS * API Reference

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

The read/write throughput capacity mode for a table. The options are:

*
  • throughputMode:PAY_PER_REQUEST and

  • *

    throughputMode:PROVISIONED - Provisioned capacity mode requires * readCapacityUnits and writeCapacityUnits as input. *

The default is * throughput_mode:PAY_PER_REQUEST.

For more information, see * Read/write * capacity modes in the Amazon Keyspaces Developer Guide.

*/ inline const ThroughputMode& GetThroughputMode() const{ return m_throughputMode; } /** *

The read/write throughput capacity mode for a table. The options are:

*
  • throughputMode:PAY_PER_REQUEST and

  • *

    throughputMode:PROVISIONED - Provisioned capacity mode requires * readCapacityUnits and writeCapacityUnits as input. *

The default is * throughput_mode:PAY_PER_REQUEST.

For more information, see * Read/write * capacity modes in the Amazon Keyspaces Developer Guide.

*/ inline bool ThroughputModeHasBeenSet() const { return m_throughputModeHasBeenSet; } /** *

The read/write throughput capacity mode for a table. The options are:

*
  • throughputMode:PAY_PER_REQUEST and

  • *

    throughputMode:PROVISIONED - Provisioned capacity mode requires * readCapacityUnits and writeCapacityUnits as input. *

The default is * throughput_mode:PAY_PER_REQUEST.

For more information, see * Read/write * capacity modes in the Amazon Keyspaces Developer Guide.

*/ inline void SetThroughputMode(const ThroughputMode& value) { m_throughputModeHasBeenSet = true; m_throughputMode = value; } /** *

The read/write throughput capacity mode for a table. The options are:

*
  • throughputMode:PAY_PER_REQUEST and

  • *

    throughputMode:PROVISIONED - Provisioned capacity mode requires * readCapacityUnits and writeCapacityUnits as input. *

The default is * throughput_mode:PAY_PER_REQUEST.

For more information, see * Read/write * capacity modes in the Amazon Keyspaces Developer Guide.

*/ inline void SetThroughputMode(ThroughputMode&& value) { m_throughputModeHasBeenSet = true; m_throughputMode = std::move(value); } /** *

The read/write throughput capacity mode for a table. The options are:

*
  • throughputMode:PAY_PER_REQUEST and

  • *

    throughputMode:PROVISIONED - Provisioned capacity mode requires * readCapacityUnits and writeCapacityUnits as input. *

The default is * throughput_mode:PAY_PER_REQUEST.

For more information, see * Read/write * capacity modes in the Amazon Keyspaces Developer Guide.

*/ inline CapacitySpecificationSummary& WithThroughputMode(const ThroughputMode& value) { SetThroughputMode(value); return *this;} /** *

The read/write throughput capacity mode for a table. The options are:

*
  • throughputMode:PAY_PER_REQUEST and

  • *

    throughputMode:PROVISIONED - Provisioned capacity mode requires * readCapacityUnits and writeCapacityUnits as input. *

The default is * throughput_mode:PAY_PER_REQUEST.

For more information, see * Read/write * capacity modes in the Amazon Keyspaces Developer Guide.

*/ inline CapacitySpecificationSummary& WithThroughputMode(ThroughputMode&& value) { SetThroughputMode(std::move(value)); return *this;} /** *

The throughput capacity specified for read operations defined in * read capacity units (RCUs).

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

The throughput capacity specified for read operations defined in * read capacity units (RCUs).

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

The throughput capacity specified for read operations defined in * read capacity units (RCUs).

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

The throughput capacity specified for read operations defined in * read capacity units (RCUs).

*/ inline CapacitySpecificationSummary& WithReadCapacityUnits(long long value) { SetReadCapacityUnits(value); return *this;} /** *

The throughput capacity specified for write operations defined * in write capacity units (WCUs).

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

The throughput capacity specified for write operations defined * in write capacity units (WCUs).

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

The throughput capacity specified for write operations defined * in write capacity units (WCUs).

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

The throughput capacity specified for write operations defined * in write capacity units (WCUs).

*/ inline CapacitySpecificationSummary& WithWriteCapacityUnits(long long value) { SetWriteCapacityUnits(value); return *this;} /** *

The timestamp of the last operation that changed the provisioned throughput * capacity of a table.

*/ inline const Aws::Utils::DateTime& GetLastUpdateToPayPerRequestTimestamp() const{ return m_lastUpdateToPayPerRequestTimestamp; } /** *

The timestamp of the last operation that changed the provisioned throughput * capacity of a table.

*/ inline bool LastUpdateToPayPerRequestTimestampHasBeenSet() const { return m_lastUpdateToPayPerRequestTimestampHasBeenSet; } /** *

The timestamp of the last operation that changed the provisioned throughput * capacity of a table.

*/ inline void SetLastUpdateToPayPerRequestTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdateToPayPerRequestTimestampHasBeenSet = true; m_lastUpdateToPayPerRequestTimestamp = value; } /** *

The timestamp of the last operation that changed the provisioned throughput * capacity of a table.

*/ inline void SetLastUpdateToPayPerRequestTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdateToPayPerRequestTimestampHasBeenSet = true; m_lastUpdateToPayPerRequestTimestamp = std::move(value); } /** *

The timestamp of the last operation that changed the provisioned throughput * capacity of a table.

*/ inline CapacitySpecificationSummary& WithLastUpdateToPayPerRequestTimestamp(const Aws::Utils::DateTime& value) { SetLastUpdateToPayPerRequestTimestamp(value); return *this;} /** *

The timestamp of the last operation that changed the provisioned throughput * capacity of a table.

*/ inline CapacitySpecificationSummary& WithLastUpdateToPayPerRequestTimestamp(Aws::Utils::DateTime&& value) { SetLastUpdateToPayPerRequestTimestamp(std::move(value)); return *this;} private: ThroughputMode m_throughputMode; bool m_throughputModeHasBeenSet = false; long long m_readCapacityUnits; bool m_readCapacityUnitsHasBeenSet = false; long long m_writeCapacityUnits; bool m_writeCapacityUnitsHasBeenSet = false; Aws::Utils::DateTime m_lastUpdateToPayPerRequestTimestamp; bool m_lastUpdateToPayPerRequestTimestampHasBeenSet = false; }; } // namespace Model } // namespace Keyspaces } // namespace Aws