AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CapacitySpecification.h
1
6#pragma once
7#include <aws/keyspaces/Keyspaces_EXPORTS.h>
8#include <aws/keyspaces/model/ThroughputMode.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Keyspaces
22{
23namespace Model
24{
25
39 {
40 public:
41 AWS_KEYSPACES_API CapacitySpecification();
44 AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
58 inline const ThroughputMode& GetThroughputMode() const{ return m_throughputMode; }
59 inline bool ThroughputModeHasBeenSet() const { return m_throughputModeHasBeenSet; }
60 inline void SetThroughputMode(const ThroughputMode& value) { m_throughputModeHasBeenSet = true; m_throughputMode = value; }
61 inline void SetThroughputMode(ThroughputMode&& value) { m_throughputModeHasBeenSet = true; m_throughputMode = std::move(value); }
62 inline CapacitySpecification& WithThroughputMode(const ThroughputMode& value) { SetThroughputMode(value); return *this;}
63 inline CapacitySpecification& WithThroughputMode(ThroughputMode&& value) { SetThroughputMode(std::move(value)); return *this;}
65
67
71 inline long long GetReadCapacityUnits() const{ return m_readCapacityUnits; }
72 inline bool ReadCapacityUnitsHasBeenSet() const { return m_readCapacityUnitsHasBeenSet; }
73 inline void SetReadCapacityUnits(long long value) { m_readCapacityUnitsHasBeenSet = true; m_readCapacityUnits = value; }
74 inline CapacitySpecification& WithReadCapacityUnits(long long value) { SetReadCapacityUnits(value); return *this;}
76
78
82 inline long long GetWriteCapacityUnits() const{ return m_writeCapacityUnits; }
83 inline bool WriteCapacityUnitsHasBeenSet() const { return m_writeCapacityUnitsHasBeenSet; }
84 inline void SetWriteCapacityUnits(long long value) { m_writeCapacityUnitsHasBeenSet = true; m_writeCapacityUnits = value; }
85 inline CapacitySpecification& WithWriteCapacityUnits(long long value) { SetWriteCapacityUnits(value); return *this;}
87 private:
88
89 ThroughputMode m_throughputMode;
90 bool m_throughputModeHasBeenSet = false;
91
92 long long m_readCapacityUnits;
93 bool m_readCapacityUnitsHasBeenSet = false;
94
95 long long m_writeCapacityUnits;
96 bool m_writeCapacityUnitsHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace Keyspaces
101} // namespace Aws
CapacitySpecification & WithWriteCapacityUnits(long long value)
AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KEYSPACES_API CapacitySpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetThroughputMode(const ThroughputMode &value)
CapacitySpecification & WithThroughputMode(const ThroughputMode &value)
AWS_KEYSPACES_API CapacitySpecification(Aws::Utils::Json::JsonView jsonValue)
CapacitySpecification & WithThroughputMode(ThroughputMode &&value)
CapacitySpecification & WithReadCapacityUnits(long long value)
Aws::Utils::Json::JsonValue JsonValue