AWS SDK for C++

AWS SDK for C++ Version 1.11.870

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
104 inline long long GetReadCapacityUnits() const { return m_readCapacityUnits; }
105 inline bool ReadCapacityUnitsHasBeenSet() const { return m_readCapacityUnitsHasBeenSet; }
106 inline void SetReadCapacityUnits(long long value) {
107 m_readCapacityUnitsHasBeenSet = true;
108 m_readCapacityUnits = value;
109 }
112 return *this;
113 }
115
117
123 inline long long GetWriteCapacityUnits() const { return m_writeCapacityUnits; }
124 inline bool WriteCapacityUnitsHasBeenSet() const { return m_writeCapacityUnitsHasBeenSet; }
125 inline void SetWriteCapacityUnits(long long value) {
126 m_writeCapacityUnitsHasBeenSet = true;
127 m_writeCapacityUnits = value;
128 }
131 return *this;
132 }
134 private:
135 Aws::Utils::DateTime m_lastIncreaseDateTime{};
136
137 Aws::Utils::DateTime m_lastDecreaseDateTime{};
138
139 long long m_numberOfDecreasesToday{0};
140
141 long long m_readCapacityUnits{0};
142
143 long long m_writeCapacityUnits{0};
144 bool m_lastIncreaseDateTimeHasBeenSet = false;
145 bool m_lastDecreaseDateTimeHasBeenSet = false;
146 bool m_numberOfDecreasesTodayHasBeenSet = false;
147 bool m_readCapacityUnitsHasBeenSet = false;
148 bool m_writeCapacityUnitsHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace DynamoDB
153} // 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