AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CacheNodeUpdateStatus.h
1
6#pragma once
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/elasticache/ElastiCache_EXPORTS.h>
11#include <aws/elasticache/model/NodeUpdateInitiatedBy.h>
12#include <aws/elasticache/model/NodeUpdateStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace ElastiCache {
23namespace Model {
24
32 public:
33 AWS_ELASTICACHE_API CacheNodeUpdateStatus() = default;
34 AWS_ELASTICACHE_API CacheNodeUpdateStatus(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_ELASTICACHE_API CacheNodeUpdateStatus& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::String& GetCacheNodeId() const { return m_cacheNodeId; }
45 inline bool CacheNodeIdHasBeenSet() const { return m_cacheNodeIdHasBeenSet; }
46 template <typename CacheNodeIdT = Aws::String>
47 void SetCacheNodeId(CacheNodeIdT&& value) {
48 m_cacheNodeIdHasBeenSet = true;
49 m_cacheNodeId = std::forward<CacheNodeIdT>(value);
50 }
51 template <typename CacheNodeIdT = Aws::String>
52 CacheNodeUpdateStatus& WithCacheNodeId(CacheNodeIdT&& value) {
53 SetCacheNodeId(std::forward<CacheNodeIdT>(value));
54 return *this;
55 }
57
59
62 inline NodeUpdateStatus GetNodeUpdateStatus() const { return m_nodeUpdateStatus; }
63 inline bool NodeUpdateStatusHasBeenSet() const { return m_nodeUpdateStatusHasBeenSet; }
65 m_nodeUpdateStatusHasBeenSet = true;
66 m_nodeUpdateStatus = value;
67 }
70 return *this;
71 }
73
75
78 inline const Aws::Utils::DateTime& GetNodeDeletionDate() const { return m_nodeDeletionDate; }
79 inline bool NodeDeletionDateHasBeenSet() const { return m_nodeDeletionDateHasBeenSet; }
80 template <typename NodeDeletionDateT = Aws::Utils::DateTime>
81 void SetNodeDeletionDate(NodeDeletionDateT&& value) {
82 m_nodeDeletionDateHasBeenSet = true;
83 m_nodeDeletionDate = std::forward<NodeDeletionDateT>(value);
84 }
85 template <typename NodeDeletionDateT = Aws::Utils::DateTime>
86 CacheNodeUpdateStatus& WithNodeDeletionDate(NodeDeletionDateT&& value) {
87 SetNodeDeletionDate(std::forward<NodeDeletionDateT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetNodeUpdateStartDate() const { return m_nodeUpdateStartDate; }
97 inline bool NodeUpdateStartDateHasBeenSet() const { return m_nodeUpdateStartDateHasBeenSet; }
98 template <typename NodeUpdateStartDateT = Aws::Utils::DateTime>
99 void SetNodeUpdateStartDate(NodeUpdateStartDateT&& value) {
100 m_nodeUpdateStartDateHasBeenSet = true;
101 m_nodeUpdateStartDate = std::forward<NodeUpdateStartDateT>(value);
102 }
103 template <typename NodeUpdateStartDateT = Aws::Utils::DateTime>
104 CacheNodeUpdateStatus& WithNodeUpdateStartDate(NodeUpdateStartDateT&& value) {
105 SetNodeUpdateStartDate(std::forward<NodeUpdateStartDateT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetNodeUpdateEndDate() const { return m_nodeUpdateEndDate; }
115 inline bool NodeUpdateEndDateHasBeenSet() const { return m_nodeUpdateEndDateHasBeenSet; }
116 template <typename NodeUpdateEndDateT = Aws::Utils::DateTime>
117 void SetNodeUpdateEndDate(NodeUpdateEndDateT&& value) {
118 m_nodeUpdateEndDateHasBeenSet = true;
119 m_nodeUpdateEndDate = std::forward<NodeUpdateEndDateT>(value);
120 }
121 template <typename NodeUpdateEndDateT = Aws::Utils::DateTime>
122 CacheNodeUpdateStatus& WithNodeUpdateEndDate(NodeUpdateEndDateT&& value) {
123 SetNodeUpdateEndDate(std::forward<NodeUpdateEndDateT>(value));
124 return *this;
125 }
127
129
133 inline NodeUpdateInitiatedBy GetNodeUpdateInitiatedBy() const { return m_nodeUpdateInitiatedBy; }
134 inline bool NodeUpdateInitiatedByHasBeenSet() const { return m_nodeUpdateInitiatedByHasBeenSet; }
136 m_nodeUpdateInitiatedByHasBeenSet = true;
137 m_nodeUpdateInitiatedBy = value;
138 }
141 return *this;
142 }
144
146
149 inline const Aws::Utils::DateTime& GetNodeUpdateInitiatedDate() const { return m_nodeUpdateInitiatedDate; }
150 inline bool NodeUpdateInitiatedDateHasBeenSet() const { return m_nodeUpdateInitiatedDateHasBeenSet; }
151 template <typename NodeUpdateInitiatedDateT = Aws::Utils::DateTime>
152 void SetNodeUpdateInitiatedDate(NodeUpdateInitiatedDateT&& value) {
153 m_nodeUpdateInitiatedDateHasBeenSet = true;
154 m_nodeUpdateInitiatedDate = std::forward<NodeUpdateInitiatedDateT>(value);
155 }
156 template <typename NodeUpdateInitiatedDateT = Aws::Utils::DateTime>
157 CacheNodeUpdateStatus& WithNodeUpdateInitiatedDate(NodeUpdateInitiatedDateT&& value) {
158 SetNodeUpdateInitiatedDate(std::forward<NodeUpdateInitiatedDateT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::Utils::DateTime& GetNodeUpdateStatusModifiedDate() const { return m_nodeUpdateStatusModifiedDate; }
168 inline bool NodeUpdateStatusModifiedDateHasBeenSet() const { return m_nodeUpdateStatusModifiedDateHasBeenSet; }
169 template <typename NodeUpdateStatusModifiedDateT = Aws::Utils::DateTime>
170 void SetNodeUpdateStatusModifiedDate(NodeUpdateStatusModifiedDateT&& value) {
171 m_nodeUpdateStatusModifiedDateHasBeenSet = true;
172 m_nodeUpdateStatusModifiedDate = std::forward<NodeUpdateStatusModifiedDateT>(value);
173 }
174 template <typename NodeUpdateStatusModifiedDateT = Aws::Utils::DateTime>
175 CacheNodeUpdateStatus& WithNodeUpdateStatusModifiedDate(NodeUpdateStatusModifiedDateT&& value) {
176 SetNodeUpdateStatusModifiedDate(std::forward<NodeUpdateStatusModifiedDateT>(value));
177 return *this;
178 }
180 private:
181 Aws::String m_cacheNodeId;
182
184
185 Aws::Utils::DateTime m_nodeDeletionDate{};
186
187 Aws::Utils::DateTime m_nodeUpdateStartDate{};
188
189 Aws::Utils::DateTime m_nodeUpdateEndDate{};
190
192
193 Aws::Utils::DateTime m_nodeUpdateInitiatedDate{};
194
195 Aws::Utils::DateTime m_nodeUpdateStatusModifiedDate{};
196 bool m_cacheNodeIdHasBeenSet = false;
197 bool m_nodeUpdateStatusHasBeenSet = false;
198 bool m_nodeDeletionDateHasBeenSet = false;
199 bool m_nodeUpdateStartDateHasBeenSet = false;
200 bool m_nodeUpdateEndDateHasBeenSet = false;
201 bool m_nodeUpdateInitiatedByHasBeenSet = false;
202 bool m_nodeUpdateInitiatedDateHasBeenSet = false;
203 bool m_nodeUpdateStatusModifiedDateHasBeenSet = false;
204};
205
206} // namespace Model
207} // namespace ElastiCache
208} // namespace Aws
AWS_ELASTICACHE_API CacheNodeUpdateStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetNodeUpdateInitiatedBy(NodeUpdateInitiatedBy value)
AWS_ELASTICACHE_API CacheNodeUpdateStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
CacheNodeUpdateStatus & WithNodeUpdateInitiatedDate(NodeUpdateInitiatedDateT &&value)
void SetNodeUpdateStatusModifiedDate(NodeUpdateStatusModifiedDateT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Utils::DateTime & GetNodeUpdateInitiatedDate() const
const Aws::Utils::DateTime & GetNodeUpdateStartDate() const
CacheNodeUpdateStatus & WithNodeUpdateStatusModifiedDate(NodeUpdateStatusModifiedDateT &&value)
AWS_ELASTICACHE_API CacheNodeUpdateStatus()=default
void SetNodeDeletionDate(NodeDeletionDateT &&value)
CacheNodeUpdateStatus & WithNodeUpdateEndDate(NodeUpdateEndDateT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
CacheNodeUpdateStatus & WithNodeDeletionDate(NodeDeletionDateT &&value)
CacheNodeUpdateStatus & WithCacheNodeId(CacheNodeIdT &&value)
const Aws::Utils::DateTime & GetNodeDeletionDate() const
const Aws::Utils::DateTime & GetNodeUpdateEndDate() const
CacheNodeUpdateStatus & WithNodeUpdateStartDate(NodeUpdateStartDateT &&value)
void SetNodeUpdateInitiatedDate(NodeUpdateInitiatedDateT &&value)
void SetNodeUpdateEndDate(NodeUpdateEndDateT &&value)
const Aws::Utils::DateTime & GetNodeUpdateStatusModifiedDate() const
void SetNodeUpdateStartDate(NodeUpdateStartDateT &&value)
CacheNodeUpdateStatus & WithNodeUpdateInitiatedBy(NodeUpdateInitiatedBy value)
CacheNodeUpdateStatus & WithNodeUpdateStatus(NodeUpdateStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream