AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReservedNodeExchangeStatus.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/redshift/model/ReservedNodeExchangeStatusType.h>
11#include <aws/core/utils/DateTime.h>
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:
38 AWS_REDSHIFT_API ReservedNodeExchangeStatus();
39 AWS_REDSHIFT_API ReservedNodeExchangeStatus(const Aws::Utils::Xml::XmlNode& xmlNode);
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
47
50 inline const Aws::String& GetReservedNodeExchangeRequestId() const{ return m_reservedNodeExchangeRequestId; }
51 inline bool ReservedNodeExchangeRequestIdHasBeenSet() const { return m_reservedNodeExchangeRequestIdHasBeenSet; }
52 inline void SetReservedNodeExchangeRequestId(const Aws::String& value) { m_reservedNodeExchangeRequestIdHasBeenSet = true; m_reservedNodeExchangeRequestId = value; }
53 inline void SetReservedNodeExchangeRequestId(Aws::String&& value) { m_reservedNodeExchangeRequestIdHasBeenSet = true; m_reservedNodeExchangeRequestId = std::move(value); }
54 inline void SetReservedNodeExchangeRequestId(const char* value) { m_reservedNodeExchangeRequestIdHasBeenSet = true; m_reservedNodeExchangeRequestId.assign(value); }
59
61
65 inline const ReservedNodeExchangeStatusType& GetStatus() const{ return m_status; }
66 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
67 inline void SetStatus(const ReservedNodeExchangeStatusType& value) { m_statusHasBeenSet = true; m_status = value; }
68 inline void SetStatus(ReservedNodeExchangeStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
70 inline ReservedNodeExchangeStatus& WithStatus(ReservedNodeExchangeStatusType&& value) { SetStatus(std::move(value)); return *this;}
72
74
78 inline const Aws::Utils::DateTime& GetRequestTime() const{ return m_requestTime; }
79 inline bool RequestTimeHasBeenSet() const { return m_requestTimeHasBeenSet; }
80 inline void SetRequestTime(const Aws::Utils::DateTime& value) { m_requestTimeHasBeenSet = true; m_requestTime = value; }
81 inline void SetRequestTime(Aws::Utils::DateTime&& value) { m_requestTimeHasBeenSet = true; m_requestTime = std::move(value); }
83 inline ReservedNodeExchangeStatus& WithRequestTime(Aws::Utils::DateTime&& value) { SetRequestTime(std::move(value)); return *this;}
85
87
90 inline const Aws::String& GetSourceReservedNodeId() const{ return m_sourceReservedNodeId; }
91 inline bool SourceReservedNodeIdHasBeenSet() const { return m_sourceReservedNodeIdHasBeenSet; }
92 inline void SetSourceReservedNodeId(const Aws::String& value) { m_sourceReservedNodeIdHasBeenSet = true; m_sourceReservedNodeId = value; }
93 inline void SetSourceReservedNodeId(Aws::String&& value) { m_sourceReservedNodeIdHasBeenSet = true; m_sourceReservedNodeId = std::move(value); }
94 inline void SetSourceReservedNodeId(const char* value) { m_sourceReservedNodeIdHasBeenSet = true; m_sourceReservedNodeId.assign(value); }
97 inline ReservedNodeExchangeStatus& WithSourceReservedNodeId(const char* value) { SetSourceReservedNodeId(value); return *this;}
99
101
104 inline const Aws::String& GetSourceReservedNodeType() const{ return m_sourceReservedNodeType; }
105 inline bool SourceReservedNodeTypeHasBeenSet() const { return m_sourceReservedNodeTypeHasBeenSet; }
106 inline void SetSourceReservedNodeType(const Aws::String& value) { m_sourceReservedNodeTypeHasBeenSet = true; m_sourceReservedNodeType = value; }
107 inline void SetSourceReservedNodeType(Aws::String&& value) { m_sourceReservedNodeTypeHasBeenSet = true; m_sourceReservedNodeType = std::move(value); }
108 inline void SetSourceReservedNodeType(const char* value) { m_sourceReservedNodeTypeHasBeenSet = true; m_sourceReservedNodeType.assign(value); }
111 inline ReservedNodeExchangeStatus& WithSourceReservedNodeType(const char* value) { SetSourceReservedNodeType(value); return *this;}
113
115
118 inline int GetSourceReservedNodeCount() const{ return m_sourceReservedNodeCount; }
119 inline bool SourceReservedNodeCountHasBeenSet() const { return m_sourceReservedNodeCountHasBeenSet; }
120 inline void SetSourceReservedNodeCount(int value) { m_sourceReservedNodeCountHasBeenSet = true; m_sourceReservedNodeCount = value; }
123
125
128 inline const Aws::String& GetTargetReservedNodeOfferingId() const{ return m_targetReservedNodeOfferingId; }
129 inline bool TargetReservedNodeOfferingIdHasBeenSet() const { return m_targetReservedNodeOfferingIdHasBeenSet; }
130 inline void SetTargetReservedNodeOfferingId(const Aws::String& value) { m_targetReservedNodeOfferingIdHasBeenSet = true; m_targetReservedNodeOfferingId = value; }
131 inline void SetTargetReservedNodeOfferingId(Aws::String&& value) { m_targetReservedNodeOfferingIdHasBeenSet = true; m_targetReservedNodeOfferingId = std::move(value); }
132 inline void SetTargetReservedNodeOfferingId(const char* value) { m_targetReservedNodeOfferingIdHasBeenSet = true; m_targetReservedNodeOfferingId.assign(value); }
137
139
142 inline const Aws::String& GetTargetReservedNodeType() const{ return m_targetReservedNodeType; }
143 inline bool TargetReservedNodeTypeHasBeenSet() const { return m_targetReservedNodeTypeHasBeenSet; }
144 inline void SetTargetReservedNodeType(const Aws::String& value) { m_targetReservedNodeTypeHasBeenSet = true; m_targetReservedNodeType = value; }
145 inline void SetTargetReservedNodeType(Aws::String&& value) { m_targetReservedNodeTypeHasBeenSet = true; m_targetReservedNodeType = std::move(value); }
146 inline void SetTargetReservedNodeType(const char* value) { m_targetReservedNodeTypeHasBeenSet = true; m_targetReservedNodeType.assign(value); }
149 inline ReservedNodeExchangeStatus& WithTargetReservedNodeType(const char* value) { SetTargetReservedNodeType(value); return *this;}
151
153
156 inline int GetTargetReservedNodeCount() const{ return m_targetReservedNodeCount; }
157 inline bool TargetReservedNodeCountHasBeenSet() const { return m_targetReservedNodeCountHasBeenSet; }
158 inline void SetTargetReservedNodeCount(int value) { m_targetReservedNodeCountHasBeenSet = true; m_targetReservedNodeCount = value; }
161 private:
162
163 Aws::String m_reservedNodeExchangeRequestId;
164 bool m_reservedNodeExchangeRequestIdHasBeenSet = false;
165
167 bool m_statusHasBeenSet = false;
168
169 Aws::Utils::DateTime m_requestTime;
170 bool m_requestTimeHasBeenSet = false;
171
172 Aws::String m_sourceReservedNodeId;
173 bool m_sourceReservedNodeIdHasBeenSet = false;
174
175 Aws::String m_sourceReservedNodeType;
176 bool m_sourceReservedNodeTypeHasBeenSet = false;
177
178 int m_sourceReservedNodeCount;
179 bool m_sourceReservedNodeCountHasBeenSet = false;
180
181 Aws::String m_targetReservedNodeOfferingId;
182 bool m_targetReservedNodeOfferingIdHasBeenSet = false;
183
184 Aws::String m_targetReservedNodeType;
185 bool m_targetReservedNodeTypeHasBeenSet = false;
186
187 int m_targetReservedNodeCount;
188 bool m_targetReservedNodeCountHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace Redshift
193} // namespace Aws
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