7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11#include <aws/redshift/model/ReservedNodeExchangeStatusType.h>
46 template <
typename ReservedNodeExchangeRequestIdT = Aws::String>
48 m_reservedNodeExchangeRequestIdHasBeenSet =
true;
49 m_reservedNodeExchangeRequestId = std::forward<ReservedNodeExchangeRequestIdT>(value);
51 template <
typename ReservedNodeExchangeRequestIdT = Aws::String>
66 m_statusHasBeenSet =
true;
82 template <
typename RequestTimeT = Aws::Utils::DateTime>
84 m_requestTimeHasBeenSet =
true;
85 m_requestTime = std::forward<RequestTimeT>(value);
87 template <
typename RequestTimeT = Aws::Utils::DateTime>
100 template <
typename SourceReservedNodeIdT = Aws::String>
102 m_sourceReservedNodeIdHasBeenSet =
true;
103 m_sourceReservedNodeId = std::forward<SourceReservedNodeIdT>(value);
105 template <
typename SourceReservedNodeIdT = Aws::String>
118 template <
typename SourceReservedNodeTypeT = Aws::String>
120 m_sourceReservedNodeTypeHasBeenSet =
true;
121 m_sourceReservedNodeType = std::forward<SourceReservedNodeTypeT>(value);
123 template <
typename SourceReservedNodeTypeT = Aws::String>
137 m_sourceReservedNodeCountHasBeenSet =
true;
138 m_sourceReservedNodeCount = value;
152 template <
typename TargetReservedNodeOfferingIdT = Aws::String>
154 m_targetReservedNodeOfferingIdHasBeenSet =
true;
155 m_targetReservedNodeOfferingId = std::forward<TargetReservedNodeOfferingIdT>(value);
157 template <
typename TargetReservedNodeOfferingIdT = Aws::String>
170 template <
typename TargetReservedNodeTypeT = Aws::String>
172 m_targetReservedNodeTypeHasBeenSet =
true;
173 m_targetReservedNodeType = std::forward<TargetReservedNodeTypeT>(value);
175 template <
typename TargetReservedNodeTypeT = Aws::String>
189 m_targetReservedNodeCountHasBeenSet =
true;
190 m_targetReservedNodeCount = value;
208 int m_sourceReservedNodeCount{0};
214 int m_targetReservedNodeCount{0};
215 bool m_reservedNodeExchangeRequestIdHasBeenSet =
false;
216 bool m_statusHasBeenSet =
false;
217 bool m_requestTimeHasBeenSet =
false;
218 bool m_sourceReservedNodeIdHasBeenSet =
false;
219 bool m_sourceReservedNodeTypeHasBeenSet =
false;
220 bool m_sourceReservedNodeCountHasBeenSet =
false;
221 bool m_targetReservedNodeOfferingIdHasBeenSet =
false;
222 bool m_targetReservedNodeTypeHasBeenSet =
false;
223 bool m_targetReservedNodeCountHasBeenSet =
false;
const Aws::String & GetTargetReservedNodeType() const
bool StatusHasBeenSet() const
void SetReservedNodeExchangeRequestId(ReservedNodeExchangeRequestIdT &&value)
AWS_REDSHIFT_API ReservedNodeExchangeStatus()=default
const Aws::String & GetSourceReservedNodeType() const
ReservedNodeExchangeStatus & WithTargetReservedNodeCount(int value)
const Aws::String & GetTargetReservedNodeOfferingId() const
ReservedNodeExchangeStatus & WithStatus(ReservedNodeExchangeStatusType value)
const Aws::Utils::DateTime & GetRequestTime() const
bool RequestTimeHasBeenSet() const
const Aws::String & GetReservedNodeExchangeRequestId() const
int GetSourceReservedNodeCount() const
ReservedNodeExchangeStatus & WithRequestTime(RequestTimeT &&value)
bool TargetReservedNodeTypeHasBeenSet() const
void SetTargetReservedNodeType(TargetReservedNodeTypeT &&value)
bool SourceReservedNodeCountHasBeenSet() const
AWS_REDSHIFT_API ReservedNodeExchangeStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSourceReservedNodeCount(int value)
ReservedNodeExchangeStatusType GetStatus() const
bool SourceReservedNodeTypeHasBeenSet() const
void SetSourceReservedNodeType(SourceReservedNodeTypeT &&value)
ReservedNodeExchangeStatus & WithSourceReservedNodeType(SourceReservedNodeTypeT &&value)
ReservedNodeExchangeStatus & WithSourceReservedNodeId(SourceReservedNodeIdT &&value)
bool ReservedNodeExchangeRequestIdHasBeenSet() const
bool SourceReservedNodeIdHasBeenSet() const
AWS_REDSHIFT_API ReservedNodeExchangeStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetRequestTime(RequestTimeT &&value)
bool TargetReservedNodeCountHasBeenSet() const
void SetSourceReservedNodeId(SourceReservedNodeIdT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
int GetTargetReservedNodeCount() const
void SetTargetReservedNodeOfferingId(TargetReservedNodeOfferingIdT &&value)
ReservedNodeExchangeStatus & WithReservedNodeExchangeRequestId(ReservedNodeExchangeRequestIdT &&value)
void SetStatus(ReservedNodeExchangeStatusType value)
ReservedNodeExchangeStatus & WithTargetReservedNodeType(TargetReservedNodeTypeT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool TargetReservedNodeOfferingIdHasBeenSet() const
ReservedNodeExchangeStatus & WithTargetReservedNodeOfferingId(TargetReservedNodeOfferingIdT &&value)
ReservedNodeExchangeStatus & WithSourceReservedNodeCount(int value)
const Aws::String & GetSourceReservedNodeId() const
void SetTargetReservedNodeCount(int value)
ReservedNodeExchangeStatusType
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream