AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Keyspaces {
20namespace Model {
21
35 public:
36 AWS_KEYSPACES_API CapacitySpecification() = default;
39 AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
52 inline ThroughputMode GetThroughputMode() const { return m_throughputMode; }
53 inline bool ThroughputModeHasBeenSet() const { return m_throughputModeHasBeenSet; }
54 inline void SetThroughputMode(ThroughputMode value) {
55 m_throughputModeHasBeenSet = true;
56 m_throughputMode = value;
57 }
59 SetThroughputMode(value);
60 return *this;
61 }
63
65
69 inline long long GetReadCapacityUnits() const { return m_readCapacityUnits; }
70 inline bool ReadCapacityUnitsHasBeenSet() const { return m_readCapacityUnitsHasBeenSet; }
71 inline void SetReadCapacityUnits(long long value) {
72 m_readCapacityUnitsHasBeenSet = true;
73 m_readCapacityUnits = value;
74 }
77 return *this;
78 }
80
82
86 inline long long GetWriteCapacityUnits() const { return m_writeCapacityUnits; }
87 inline bool WriteCapacityUnitsHasBeenSet() const { return m_writeCapacityUnitsHasBeenSet; }
88 inline void SetWriteCapacityUnits(long long value) {
89 m_writeCapacityUnitsHasBeenSet = true;
90 m_writeCapacityUnits = value;
91 }
94 return *this;
95 }
97 private:
99
100 long long m_readCapacityUnits{0};
101
102 long long m_writeCapacityUnits{0};
103 bool m_throughputModeHasBeenSet = false;
104 bool m_readCapacityUnitsHasBeenSet = false;
105 bool m_writeCapacityUnitsHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace Keyspaces
110} // namespace Aws
CapacitySpecification & WithWriteCapacityUnits(long long value)
AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KEYSPACES_API CapacitySpecification()=default
AWS_KEYSPACES_API CapacitySpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KEYSPACES_API CapacitySpecification(Aws::Utils::Json::JsonView jsonValue)
CapacitySpecification & WithThroughputMode(ThroughputMode value)
CapacitySpecification & WithReadCapacityUnits(long long value)
Aws::Utils::Json::JsonValue JsonValue