AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CapacitySpecificationSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/keyspaces/Keyspaces_EXPORTS.h>
9#include <aws/keyspaces/model/ThroughputMode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Keyspaces {
21namespace Model {
22
35 public:
36 AWS_KEYSPACES_API CapacitySpecificationSummary() = default;
39 AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
53 inline ThroughputMode GetThroughputMode() const { return m_throughputMode; }
54 inline bool ThroughputModeHasBeenSet() const { return m_throughputModeHasBeenSet; }
55 inline void SetThroughputMode(ThroughputMode value) {
56 m_throughputModeHasBeenSet = true;
57 m_throughputMode = value;
58 }
60 SetThroughputMode(value);
61 return *this;
62 }
64
66
70 inline long long GetReadCapacityUnits() const { return m_readCapacityUnits; }
71 inline bool ReadCapacityUnitsHasBeenSet() const { return m_readCapacityUnitsHasBeenSet; }
72 inline void SetReadCapacityUnits(long long value) {
73 m_readCapacityUnitsHasBeenSet = true;
74 m_readCapacityUnits = value;
75 }
78 return *this;
79 }
81
83
87 inline long long GetWriteCapacityUnits() const { return m_writeCapacityUnits; }
88 inline bool WriteCapacityUnitsHasBeenSet() const { return m_writeCapacityUnitsHasBeenSet; }
89 inline void SetWriteCapacityUnits(long long value) {
90 m_writeCapacityUnitsHasBeenSet = true;
91 m_writeCapacityUnits = value;
92 }
95 return *this;
96 }
98
100
104 inline const Aws::Utils::DateTime& GetLastUpdateToPayPerRequestTimestamp() const { return m_lastUpdateToPayPerRequestTimestamp; }
105 inline bool LastUpdateToPayPerRequestTimestampHasBeenSet() const { return m_lastUpdateToPayPerRequestTimestampHasBeenSet; }
106 template <typename LastUpdateToPayPerRequestTimestampT = Aws::Utils::DateTime>
107 void SetLastUpdateToPayPerRequestTimestamp(LastUpdateToPayPerRequestTimestampT&& value) {
108 m_lastUpdateToPayPerRequestTimestampHasBeenSet = true;
109 m_lastUpdateToPayPerRequestTimestamp = std::forward<LastUpdateToPayPerRequestTimestampT>(value);
110 }
111 template <typename LastUpdateToPayPerRequestTimestampT = Aws::Utils::DateTime>
112 CapacitySpecificationSummary& WithLastUpdateToPayPerRequestTimestamp(LastUpdateToPayPerRequestTimestampT&& value) {
113 SetLastUpdateToPayPerRequestTimestamp(std::forward<LastUpdateToPayPerRequestTimestampT>(value));
114 return *this;
115 }
117 private:
118 ThroughputMode m_throughputMode{ThroughputMode::NOT_SET};
119
120 long long m_readCapacityUnits{0};
121
122 long long m_writeCapacityUnits{0};
123
124 Aws::Utils::DateTime m_lastUpdateToPayPerRequestTimestamp{};
125 bool m_throughputModeHasBeenSet = false;
126 bool m_readCapacityUnitsHasBeenSet = false;
127 bool m_writeCapacityUnitsHasBeenSet = false;
128 bool m_lastUpdateToPayPerRequestTimestampHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace Keyspaces
133} // namespace Aws
AWS_KEYSPACES_API CapacitySpecificationSummary()=default
CapacitySpecificationSummary & WithThroughputMode(ThroughputMode value)
const Aws::Utils::DateTime & GetLastUpdateToPayPerRequestTimestamp() const
CapacitySpecificationSummary & WithWriteCapacityUnits(long long value)
CapacitySpecificationSummary & WithReadCapacityUnits(long long value)
CapacitySpecificationSummary & WithLastUpdateToPayPerRequestTimestamp(LastUpdateToPayPerRequestTimestampT &&value)
AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KEYSPACES_API CapacitySpecificationSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_KEYSPACES_API CapacitySpecificationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdateToPayPerRequestTimestamp(LastUpdateToPayPerRequestTimestampT &&value)
Aws::Utils::Json::JsonValue JsonValue