AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ProvisionedThroughputDescription.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/DateTime.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 DynamoDB
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_DYNAMODB_API ProvisionedThroughputDescription() = default;
39 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Utils::DateTime& GetLastIncreaseDateTime() const { return m_lastIncreaseDateTime; }
48 inline bool LastIncreaseDateTimeHasBeenSet() const { return m_lastIncreaseDateTimeHasBeenSet; }
49 template<typename LastIncreaseDateTimeT = Aws::Utils::DateTime>
50 void SetLastIncreaseDateTime(LastIncreaseDateTimeT&& value) { m_lastIncreaseDateTimeHasBeenSet = true; m_lastIncreaseDateTime = std::forward<LastIncreaseDateTimeT>(value); }
51 template<typename LastIncreaseDateTimeT = Aws::Utils::DateTime>
52 ProvisionedThroughputDescription& WithLastIncreaseDateTime(LastIncreaseDateTimeT&& value) { SetLastIncreaseDateTime(std::forward<LastIncreaseDateTimeT>(value)); return *this;}
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) { m_lastDecreaseDateTimeHasBeenSet = true; m_lastDecreaseDateTime = std::forward<LastDecreaseDateTimeT>(value); }
64 template<typename LastDecreaseDateTimeT = Aws::Utils::DateTime>
65 ProvisionedThroughputDescription& WithLastDecreaseDateTime(LastDecreaseDateTimeT&& value) { SetLastDecreaseDateTime(std::forward<LastDecreaseDateTimeT>(value)); return *this;}
67
69
75 inline long long GetNumberOfDecreasesToday() const { return m_numberOfDecreasesToday; }
76 inline bool NumberOfDecreasesTodayHasBeenSet() const { return m_numberOfDecreasesTodayHasBeenSet; }
77 inline void SetNumberOfDecreasesToday(long long value) { m_numberOfDecreasesTodayHasBeenSet = true; m_numberOfDecreasesToday = value; }
80
82
89 inline long long GetReadCapacityUnits() const { return m_readCapacityUnits; }
90 inline bool ReadCapacityUnitsHasBeenSet() const { return m_readCapacityUnitsHasBeenSet; }
91 inline void SetReadCapacityUnits(long long value) { m_readCapacityUnitsHasBeenSet = true; m_readCapacityUnits = value; }
92 inline ProvisionedThroughputDescription& WithReadCapacityUnits(long long value) { SetReadCapacityUnits(value); return *this;}
94
96
100 inline long long GetWriteCapacityUnits() const { return m_writeCapacityUnits; }
101 inline bool WriteCapacityUnitsHasBeenSet() const { return m_writeCapacityUnitsHasBeenSet; }
102 inline void SetWriteCapacityUnits(long long value) { m_writeCapacityUnitsHasBeenSet = true; m_writeCapacityUnits = value; }
103 inline ProvisionedThroughputDescription& WithWriteCapacityUnits(long long value) { SetWriteCapacityUnits(value); return *this;}
105 private:
106
107 Aws::Utils::DateTime m_lastIncreaseDateTime{};
108 bool m_lastIncreaseDateTimeHasBeenSet = false;
109
110 Aws::Utils::DateTime m_lastDecreaseDateTime{};
111 bool m_lastDecreaseDateTimeHasBeenSet = false;
112
113 long long m_numberOfDecreasesToday{0};
114 bool m_numberOfDecreasesTodayHasBeenSet = false;
115
116 long long m_readCapacityUnits{0};
117 bool m_readCapacityUnitsHasBeenSet = false;
118
119 long long m_writeCapacityUnits{0};
120 bool m_writeCapacityUnitsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace DynamoDB
125} // 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