AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ProvisionedThroughputDescription.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/dynamodb/DynamoDB_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DynamoDB {
20namespace Model {
21
30 public:
31 AWS_DYNAMODB_API ProvisionedThroughputDescription() = default;
34 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Utils::DateTime& GetLastIncreaseDateTime() const { return m_lastIncreaseDateTime; }
42 inline bool LastIncreaseDateTimeHasBeenSet() const { return m_lastIncreaseDateTimeHasBeenSet; }
43 template <typename LastIncreaseDateTimeT = Aws::Utils::DateTime>
44 void SetLastIncreaseDateTime(LastIncreaseDateTimeT&& value) {
45 m_lastIncreaseDateTimeHasBeenSet = true;
46 m_lastIncreaseDateTime = std::forward<LastIncreaseDateTimeT>(value);
47 }
48 template <typename LastIncreaseDateTimeT = Aws::Utils::DateTime>
50 SetLastIncreaseDateTime(std::forward<LastIncreaseDateTimeT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Utils::DateTime& GetLastDecreaseDateTime() const { return m_lastDecreaseDateTime; }
61 inline bool LastDecreaseDateTimeHasBeenSet() const { return m_lastDecreaseDateTimeHasBeenSet; }
62 template <typename LastDecreaseDateTimeT = Aws::Utils::DateTime>
63 void SetLastDecreaseDateTime(LastDecreaseDateTimeT&& value) {
64 m_lastDecreaseDateTimeHasBeenSet = true;
65 m_lastDecreaseDateTime = std::forward<LastDecreaseDateTimeT>(value);
66 }
67 template <typename LastDecreaseDateTimeT = Aws::Utils::DateTime>
69 SetLastDecreaseDateTime(std::forward<LastDecreaseDateTimeT>(value));
70 return *this;
71 }
73
75
81 inline long long GetNumberOfDecreasesToday() const { return m_numberOfDecreasesToday; }
82 inline bool NumberOfDecreasesTodayHasBeenSet() const { return m_numberOfDecreasesTodayHasBeenSet; }
83 inline void SetNumberOfDecreasesToday(long long value) {
84 m_numberOfDecreasesTodayHasBeenSet = true;
85 m_numberOfDecreasesToday = value;
86 }
89 return *this;
90 }
92
94
101 inline long long GetReadCapacityUnits() const { return m_readCapacityUnits; }
102 inline bool ReadCapacityUnitsHasBeenSet() const { return m_readCapacityUnitsHasBeenSet; }
103 inline void SetReadCapacityUnits(long long value) {
104 m_readCapacityUnitsHasBeenSet = true;
105 m_readCapacityUnits = value;
106 }
109 return *this;
110 }
112
114
118 inline long long GetWriteCapacityUnits() const { return m_writeCapacityUnits; }
119 inline bool WriteCapacityUnitsHasBeenSet() const { return m_writeCapacityUnitsHasBeenSet; }
120 inline void SetWriteCapacityUnits(long long value) {
121 m_writeCapacityUnitsHasBeenSet = true;
122 m_writeCapacityUnits = value;
123 }
126 return *this;
127 }
129 private:
130 Aws::Utils::DateTime m_lastIncreaseDateTime{};
131
132 Aws::Utils::DateTime m_lastDecreaseDateTime{};
133
134 long long m_numberOfDecreasesToday{0};
135
136 long long m_readCapacityUnits{0};
137
138 long long m_writeCapacityUnits{0};
139 bool m_lastIncreaseDateTimeHasBeenSet = false;
140 bool m_lastDecreaseDateTimeHasBeenSet = false;
141 bool m_numberOfDecreasesTodayHasBeenSet = false;
142 bool m_readCapacityUnitsHasBeenSet = false;
143 bool m_writeCapacityUnitsHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace DynamoDB
148} // namespace Aws
AWS_DYNAMODB_API ProvisionedThroughputDescription(Aws::Utils::Json::JsonView jsonValue)
ProvisionedThroughputDescription & WithReadCapacityUnits(long long value)
AWS_DYNAMODB_API ProvisionedThroughputDescription()=default
ProvisionedThroughputDescription & WithNumberOfDecreasesToday(long long value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
ProvisionedThroughputDescription & WithLastIncreaseDateTime(LastIncreaseDateTimeT &&value)
ProvisionedThroughputDescription & WithLastDecreaseDateTime(LastDecreaseDateTimeT &&value)
AWS_DYNAMODB_API ProvisionedThroughputDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
ProvisionedThroughputDescription & WithWriteCapacityUnits(long long value)
Aws::Utils::Json::JsonValue JsonValue