AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CapacityReservation.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/athena/model/CapacityAllocation.h>
9#include <aws/athena/model/CapacityReservationStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Athena {
23namespace Model {
24
33 public:
34 AWS_ATHENA_API CapacityReservation() = default;
37 AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 CapacityReservation& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline CapacityReservationStatus GetStatus() const { return m_status; }
62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
64 m_statusHasBeenSet = true;
65 m_status = value;
66 }
68 SetStatus(value);
69 return *this;
70 }
72
74
77 inline int GetTargetDpus() const { return m_targetDpus; }
78 inline bool TargetDpusHasBeenSet() const { return m_targetDpusHasBeenSet; }
79 inline void SetTargetDpus(int value) {
80 m_targetDpusHasBeenSet = true;
81 m_targetDpus = value;
82 }
84 SetTargetDpus(value);
85 return *this;
86 }
88
90
93 inline int GetAllocatedDpus() const { return m_allocatedDpus; }
94 inline bool AllocatedDpusHasBeenSet() const { return m_allocatedDpusHasBeenSet; }
95 inline void SetAllocatedDpus(int value) {
96 m_allocatedDpusHasBeenSet = true;
97 m_allocatedDpus = value;
98 }
100 SetAllocatedDpus(value);
101 return *this;
102 }
104
106
107 inline const CapacityAllocation& GetLastAllocation() const { return m_lastAllocation; }
108 inline bool LastAllocationHasBeenSet() const { return m_lastAllocationHasBeenSet; }
109 template <typename LastAllocationT = CapacityAllocation>
110 void SetLastAllocation(LastAllocationT&& value) {
111 m_lastAllocationHasBeenSet = true;
112 m_lastAllocation = std::forward<LastAllocationT>(value);
113 }
114 template <typename LastAllocationT = CapacityAllocation>
115 CapacityReservation& WithLastAllocation(LastAllocationT&& value) {
116 SetLastAllocation(std::forward<LastAllocationT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::Utils::DateTime& GetLastSuccessfulAllocationTime() const { return m_lastSuccessfulAllocationTime; }
126 inline bool LastSuccessfulAllocationTimeHasBeenSet() const { return m_lastSuccessfulAllocationTimeHasBeenSet; }
127 template <typename LastSuccessfulAllocationTimeT = Aws::Utils::DateTime>
128 void SetLastSuccessfulAllocationTime(LastSuccessfulAllocationTimeT&& value) {
129 m_lastSuccessfulAllocationTimeHasBeenSet = true;
130 m_lastSuccessfulAllocationTime = std::forward<LastSuccessfulAllocationTimeT>(value);
131 }
132 template <typename LastSuccessfulAllocationTimeT = Aws::Utils::DateTime>
133 CapacityReservation& WithLastSuccessfulAllocationTime(LastSuccessfulAllocationTimeT&& value) {
134 SetLastSuccessfulAllocationTime(std::forward<LastSuccessfulAllocationTimeT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
144 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
145 template <typename CreationTimeT = Aws::Utils::DateTime>
146 void SetCreationTime(CreationTimeT&& value) {
147 m_creationTimeHasBeenSet = true;
148 m_creationTime = std::forward<CreationTimeT>(value);
149 }
150 template <typename CreationTimeT = Aws::Utils::DateTime>
151 CapacityReservation& WithCreationTime(CreationTimeT&& value) {
152 SetCreationTime(std::forward<CreationTimeT>(value));
153 return *this;
154 }
156 private:
157 Aws::String m_name;
158
160
161 int m_targetDpus{0};
162
163 int m_allocatedDpus{0};
164
165 CapacityAllocation m_lastAllocation;
166
167 Aws::Utils::DateTime m_lastSuccessfulAllocationTime{};
168
169 Aws::Utils::DateTime m_creationTime{};
170 bool m_nameHasBeenSet = false;
171 bool m_statusHasBeenSet = false;
172 bool m_targetDpusHasBeenSet = false;
173 bool m_allocatedDpusHasBeenSet = false;
174 bool m_lastAllocationHasBeenSet = false;
175 bool m_lastSuccessfulAllocationTimeHasBeenSet = false;
176 bool m_creationTimeHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace Athena
181} // namespace Aws
CapacityReservation & WithAllocatedDpus(int value)
void SetStatus(CapacityReservationStatus value)
void SetLastSuccessfulAllocationTime(LastSuccessfulAllocationTimeT &&value)
AWS_ATHENA_API CapacityReservation & operator=(Aws::Utils::Json::JsonView jsonValue)
CapacityReservation & WithLastSuccessfulAllocationTime(LastSuccessfulAllocationTimeT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
CapacityReservation & WithName(NameT &&value)
AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const
const CapacityAllocation & GetLastAllocation() const
void SetLastAllocation(LastAllocationT &&value)
CapacityReservation & WithTargetDpus(int value)
CapacityReservation & WithLastAllocation(LastAllocationT &&value)
CapacityReservationStatus GetStatus() const
AWS_ATHENA_API CapacityReservation(Aws::Utils::Json::JsonView jsonValue)
CapacityReservation & WithStatus(CapacityReservationStatus value)
AWS_ATHENA_API CapacityReservation()=default
void SetCreationTime(CreationTimeT &&value)
const Aws::Utils::DateTime & GetLastSuccessfulAllocationTime() const
CapacityReservation & WithCreationTime(CreationTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue