/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Amazon Keyspaces has two read/write capacity modes for processing reads and
* writes on your tables: On-demand (default) Provisioned The read/write capacity mode that you choose
* controls how you are charged for read and write throughput and how table
* throughput capacity is managed. For more information, see Read/write
* capacity modes in the Amazon Keyspaces Developer Guide.
See
* Also:
AWS
* API Reference
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 CapacitySpecification& 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 CapacitySpecification& WithThroughputMode(ThroughputMode&& value) { SetThroughputMode(std::move(value)); return *this;} /** *The throughput capacity specified for read
operations defined in
* read capacity units
(RCUs)
.
The throughput capacity specified for read
operations defined in
* read capacity units
(RCUs)
.
The throughput capacity specified for read
operations defined in
* read capacity units
(RCUs)
.
The throughput capacity specified for read
operations defined in
* read capacity units
(RCUs)
.
The throughput capacity specified for write
operations defined
* in write capacity units
(WCUs)
.
The throughput capacity specified for write
operations defined
* in write capacity units
(WCUs)
.
The throughput capacity specified for write
operations defined
* in write capacity units
(WCUs)
.
The throughput capacity specified for write
operations defined
* in write capacity units
(WCUs)
.