AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ReservedNodeExchangeStatus.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace Redshift
24{
25namespace Model
26{
27
36 {
37 public:
41
42 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
49 inline const Aws::String& GetReservedNodeExchangeRequestId() const{ return m_reservedNodeExchangeRequestId; }
50
54 inline bool ReservedNodeExchangeRequestIdHasBeenSet() const { return m_reservedNodeExchangeRequestIdHasBeenSet; }
55
59 inline void SetReservedNodeExchangeRequestId(const Aws::String& value) { m_reservedNodeExchangeRequestIdHasBeenSet = true; m_reservedNodeExchangeRequestId = value; }
60
64 inline void SetReservedNodeExchangeRequestId(Aws::String&& value) { m_reservedNodeExchangeRequestIdHasBeenSet = true; m_reservedNodeExchangeRequestId = std::move(value); }
65
69 inline void SetReservedNodeExchangeRequestId(const char* value) { m_reservedNodeExchangeRequestIdHasBeenSet = true; m_reservedNodeExchangeRequestId.assign(value); }
70
75
80
85
86
91 inline const ReservedNodeExchangeStatusType& GetStatus() const{ return m_status; }
92
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98
103 inline void SetStatus(const ReservedNodeExchangeStatusType& value) { m_statusHasBeenSet = true; m_status = value; }
104
109 inline void SetStatus(ReservedNodeExchangeStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
110
116
121 inline ReservedNodeExchangeStatus& WithStatus(ReservedNodeExchangeStatusType&& value) { SetStatus(std::move(value)); return *this;}
122
123
128 inline const Aws::Utils::DateTime& GetRequestTime() const{ return m_requestTime; }
129
134 inline bool RequestTimeHasBeenSet() const { return m_requestTimeHasBeenSet; }
135
140 inline void SetRequestTime(const Aws::Utils::DateTime& value) { m_requestTimeHasBeenSet = true; m_requestTime = value; }
141
146 inline void SetRequestTime(Aws::Utils::DateTime&& value) { m_requestTimeHasBeenSet = true; m_requestTime = std::move(value); }
147
153
158 inline ReservedNodeExchangeStatus& WithRequestTime(Aws::Utils::DateTime&& value) { SetRequestTime(std::move(value)); return *this;}
159
160
164 inline const Aws::String& GetSourceReservedNodeId() const{ return m_sourceReservedNodeId; }
165
169 inline bool SourceReservedNodeIdHasBeenSet() const { return m_sourceReservedNodeIdHasBeenSet; }
170
174 inline void SetSourceReservedNodeId(const Aws::String& value) { m_sourceReservedNodeIdHasBeenSet = true; m_sourceReservedNodeId = value; }
175
179 inline void SetSourceReservedNodeId(Aws::String&& value) { m_sourceReservedNodeIdHasBeenSet = true; m_sourceReservedNodeId = std::move(value); }
180
184 inline void SetSourceReservedNodeId(const char* value) { m_sourceReservedNodeIdHasBeenSet = true; m_sourceReservedNodeId.assign(value); }
185
190
195
199 inline ReservedNodeExchangeStatus& WithSourceReservedNodeId(const char* value) { SetSourceReservedNodeId(value); return *this;}
200
201
205 inline const Aws::String& GetSourceReservedNodeType() const{ return m_sourceReservedNodeType; }
206
210 inline bool SourceReservedNodeTypeHasBeenSet() const { return m_sourceReservedNodeTypeHasBeenSet; }
211
215 inline void SetSourceReservedNodeType(const Aws::String& value) { m_sourceReservedNodeTypeHasBeenSet = true; m_sourceReservedNodeType = value; }
216
220 inline void SetSourceReservedNodeType(Aws::String&& value) { m_sourceReservedNodeTypeHasBeenSet = true; m_sourceReservedNodeType = std::move(value); }
221
225 inline void SetSourceReservedNodeType(const char* value) { m_sourceReservedNodeTypeHasBeenSet = true; m_sourceReservedNodeType.assign(value); }
226
231
236
240 inline ReservedNodeExchangeStatus& WithSourceReservedNodeType(const char* value) { SetSourceReservedNodeType(value); return *this;}
241
242
246 inline int GetSourceReservedNodeCount() const{ return m_sourceReservedNodeCount; }
247
251 inline bool SourceReservedNodeCountHasBeenSet() const { return m_sourceReservedNodeCountHasBeenSet; }
252
256 inline void SetSourceReservedNodeCount(int value) { m_sourceReservedNodeCountHasBeenSet = true; m_sourceReservedNodeCount = value; }
257
262
263
267 inline const Aws::String& GetTargetReservedNodeOfferingId() const{ return m_targetReservedNodeOfferingId; }
268
272 inline bool TargetReservedNodeOfferingIdHasBeenSet() const { return m_targetReservedNodeOfferingIdHasBeenSet; }
273
277 inline void SetTargetReservedNodeOfferingId(const Aws::String& value) { m_targetReservedNodeOfferingIdHasBeenSet = true; m_targetReservedNodeOfferingId = value; }
278
282 inline void SetTargetReservedNodeOfferingId(Aws::String&& value) { m_targetReservedNodeOfferingIdHasBeenSet = true; m_targetReservedNodeOfferingId = std::move(value); }
283
287 inline void SetTargetReservedNodeOfferingId(const char* value) { m_targetReservedNodeOfferingIdHasBeenSet = true; m_targetReservedNodeOfferingId.assign(value); }
288
293
298
303
304
308 inline const Aws::String& GetTargetReservedNodeType() const{ return m_targetReservedNodeType; }
309
313 inline bool TargetReservedNodeTypeHasBeenSet() const { return m_targetReservedNodeTypeHasBeenSet; }
314
318 inline void SetTargetReservedNodeType(const Aws::String& value) { m_targetReservedNodeTypeHasBeenSet = true; m_targetReservedNodeType = value; }
319
323 inline void SetTargetReservedNodeType(Aws::String&& value) { m_targetReservedNodeTypeHasBeenSet = true; m_targetReservedNodeType = std::move(value); }
324
328 inline void SetTargetReservedNodeType(const char* value) { m_targetReservedNodeTypeHasBeenSet = true; m_targetReservedNodeType.assign(value); }
329
334
339
343 inline ReservedNodeExchangeStatus& WithTargetReservedNodeType(const char* value) { SetTargetReservedNodeType(value); return *this;}
344
345
349 inline int GetTargetReservedNodeCount() const{ return m_targetReservedNodeCount; }
350
354 inline bool TargetReservedNodeCountHasBeenSet() const { return m_targetReservedNodeCountHasBeenSet; }
355
359 inline void SetTargetReservedNodeCount(int value) { m_targetReservedNodeCountHasBeenSet = true; m_targetReservedNodeCount = value; }
360
365
366 private:
367
368 Aws::String m_reservedNodeExchangeRequestId;
369 bool m_reservedNodeExchangeRequestIdHasBeenSet = false;
370
372 bool m_statusHasBeenSet = false;
373
374 Aws::Utils::DateTime m_requestTime;
375 bool m_requestTimeHasBeenSet = false;
376
377 Aws::String m_sourceReservedNodeId;
378 bool m_sourceReservedNodeIdHasBeenSet = false;
379
380 Aws::String m_sourceReservedNodeType;
381 bool m_sourceReservedNodeTypeHasBeenSet = false;
382
383 int m_sourceReservedNodeCount;
384 bool m_sourceReservedNodeCountHasBeenSet = false;
385
386 Aws::String m_targetReservedNodeOfferingId;
387 bool m_targetReservedNodeOfferingIdHasBeenSet = false;
388
389 Aws::String m_targetReservedNodeType;
390 bool m_targetReservedNodeTypeHasBeenSet = false;
391
392 int m_targetReservedNodeCount;
393 bool m_targetReservedNodeCountHasBeenSet = false;
394 };
395
396} // namespace Model
397} // namespace Redshift
398} // namespace Aws
#define AWS_REDSHIFT_API
void SetStatus(const ReservedNodeExchangeStatusType &value)
ReservedNodeExchangeStatus & WithReservedNodeExchangeRequestId(const char *value)
const ReservedNodeExchangeStatusType & GetStatus() const
ReservedNodeExchangeStatus & WithStatus(ReservedNodeExchangeStatusType &&value)
ReservedNodeExchangeStatus & WithTargetReservedNodeCount(int value)
AWS_REDSHIFT_API ReservedNodeExchangeStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
ReservedNodeExchangeStatus & WithRequestTime(Aws::Utils::DateTime &&value)
void SetStatus(ReservedNodeExchangeStatusType &&value)
ReservedNodeExchangeStatus & WithSourceReservedNodeId(const char *value)
ReservedNodeExchangeStatus & WithTargetReservedNodeOfferingId(const Aws::String &value)
ReservedNodeExchangeStatus & WithTargetReservedNodeType(const Aws::String &value)
AWS_REDSHIFT_API ReservedNodeExchangeStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ReservedNodeExchangeStatus & WithSourceReservedNodeId(const Aws::String &value)
ReservedNodeExchangeStatus & WithSourceReservedNodeType(const char *value)
ReservedNodeExchangeStatus & WithTargetReservedNodeType(Aws::String &&value)
void SetRequestTime(const Aws::Utils::DateTime &value)
ReservedNodeExchangeStatus & WithSourceReservedNodeId(Aws::String &&value)
ReservedNodeExchangeStatus & WithTargetReservedNodeOfferingId(const char *value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ReservedNodeExchangeStatus & WithTargetReservedNodeType(const char *value)
ReservedNodeExchangeStatus & WithTargetReservedNodeOfferingId(Aws::String &&value)
ReservedNodeExchangeStatus & WithReservedNodeExchangeRequestId(Aws::String &&value)
ReservedNodeExchangeStatus & WithRequestTime(const Aws::Utils::DateTime &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ReservedNodeExchangeStatus & WithStatus(const ReservedNodeExchangeStatusType &value)
ReservedNodeExchangeStatus & WithReservedNodeExchangeRequestId(const Aws::String &value)
ReservedNodeExchangeStatus & WithSourceReservedNodeType(Aws::String &&value)
ReservedNodeExchangeStatus & WithSourceReservedNodeCount(int value)
ReservedNodeExchangeStatus & WithSourceReservedNodeType(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream