AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
ManagedActionHistoryItem.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/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
11#include <aws/elasticbeanstalk/model/ActionHistoryStatus.h>
12#include <aws/elasticbeanstalk/model/ActionType.h>
13#include <aws/elasticbeanstalk/model/FailureType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace ElasticBeanstalk {
24namespace Model {
25
33 public:
34 AWS_ELASTICBEANSTALK_API ManagedActionHistoryItem() = default;
35 AWS_ELASTICBEANSTALK_API ManagedActionHistoryItem(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_ELASTICBEANSTALK_API ManagedActionHistoryItem& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
39 const char* locationValue) const;
40 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
46 inline const Aws::String& GetActionId() const { return m_actionId; }
47 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
48 template <typename ActionIdT = Aws::String>
49 void SetActionId(ActionIdT&& value) {
50 m_actionIdHasBeenSet = true;
51 m_actionId = std::forward<ActionIdT>(value);
52 }
53 template <typename ActionIdT = Aws::String>
55 SetActionId(std::forward<ActionIdT>(value));
56 return *this;
57 }
59
61
64 inline ActionType GetActionType() const { return m_actionType; }
65 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
66 inline void SetActionType(ActionType value) {
67 m_actionTypeHasBeenSet = true;
68 m_actionType = value;
69 }
71 SetActionType(value);
72 return *this;
73 }
75
77
80 inline const Aws::String& GetActionDescription() const { return m_actionDescription; }
81 inline bool ActionDescriptionHasBeenSet() const { return m_actionDescriptionHasBeenSet; }
82 template <typename ActionDescriptionT = Aws::String>
83 void SetActionDescription(ActionDescriptionT&& value) {
84 m_actionDescriptionHasBeenSet = true;
85 m_actionDescription = std::forward<ActionDescriptionT>(value);
86 }
87 template <typename ActionDescriptionT = Aws::String>
88 ManagedActionHistoryItem& WithActionDescription(ActionDescriptionT&& value) {
89 SetActionDescription(std::forward<ActionDescriptionT>(value));
90 return *this;
91 }
93
95
98 inline FailureType GetFailureType() const { return m_failureType; }
99 inline bool FailureTypeHasBeenSet() const { return m_failureTypeHasBeenSet; }
100 inline void SetFailureType(FailureType value) {
101 m_failureTypeHasBeenSet = true;
102 m_failureType = value;
103 }
105 SetFailureType(value);
106 return *this;
107 }
109
111
114 inline ActionHistoryStatus GetStatus() const { return m_status; }
115 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
116 inline void SetStatus(ActionHistoryStatus value) {
117 m_statusHasBeenSet = true;
118 m_status = value;
119 }
121 SetStatus(value);
122 return *this;
123 }
125
127
130 inline const Aws::String& GetFailureDescription() const { return m_failureDescription; }
131 inline bool FailureDescriptionHasBeenSet() const { return m_failureDescriptionHasBeenSet; }
132 template <typename FailureDescriptionT = Aws::String>
133 void SetFailureDescription(FailureDescriptionT&& value) {
134 m_failureDescriptionHasBeenSet = true;
135 m_failureDescription = std::forward<FailureDescriptionT>(value);
136 }
137 template <typename FailureDescriptionT = Aws::String>
138 ManagedActionHistoryItem& WithFailureDescription(FailureDescriptionT&& value) {
139 SetFailureDescription(std::forward<FailureDescriptionT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::Utils::DateTime& GetExecutedTime() const { return m_executedTime; }
149 inline bool ExecutedTimeHasBeenSet() const { return m_executedTimeHasBeenSet; }
150 template <typename ExecutedTimeT = Aws::Utils::DateTime>
151 void SetExecutedTime(ExecutedTimeT&& value) {
152 m_executedTimeHasBeenSet = true;
153 m_executedTime = std::forward<ExecutedTimeT>(value);
154 }
155 template <typename ExecutedTimeT = Aws::Utils::DateTime>
157 SetExecutedTime(std::forward<ExecutedTimeT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Utils::DateTime& GetFinishedTime() const { return m_finishedTime; }
167 inline bool FinishedTimeHasBeenSet() const { return m_finishedTimeHasBeenSet; }
168 template <typename FinishedTimeT = Aws::Utils::DateTime>
169 void SetFinishedTime(FinishedTimeT&& value) {
170 m_finishedTimeHasBeenSet = true;
171 m_finishedTime = std::forward<FinishedTimeT>(value);
172 }
173 template <typename FinishedTimeT = Aws::Utils::DateTime>
175 SetFinishedTime(std::forward<FinishedTimeT>(value));
176 return *this;
177 }
179 private:
180 Aws::String m_actionId;
181
182 ActionType m_actionType{ActionType::NOT_SET};
183
184 Aws::String m_actionDescription;
185
186 FailureType m_failureType{FailureType::NOT_SET};
187
189
190 Aws::String m_failureDescription;
191
192 Aws::Utils::DateTime m_executedTime{};
193
194 Aws::Utils::DateTime m_finishedTime{};
195 bool m_actionIdHasBeenSet = false;
196 bool m_actionTypeHasBeenSet = false;
197 bool m_actionDescriptionHasBeenSet = false;
198 bool m_failureTypeHasBeenSet = false;
199 bool m_statusHasBeenSet = false;
200 bool m_failureDescriptionHasBeenSet = false;
201 bool m_executedTimeHasBeenSet = false;
202 bool m_finishedTimeHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace ElasticBeanstalk
207} // namespace Aws
ManagedActionHistoryItem & WithStatus(ActionHistoryStatus value)
ManagedActionHistoryItem & WithExecutedTime(ExecutedTimeT &&value)
ManagedActionHistoryItem & WithActionId(ActionIdT &&value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICBEANSTALK_API ManagedActionHistoryItem(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ManagedActionHistoryItem & WithActionType(ActionType value)
ManagedActionHistoryItem & WithFailureDescription(FailureDescriptionT &&value)
ManagedActionHistoryItem & WithFinishedTime(FinishedTimeT &&value)
AWS_ELASTICBEANSTALK_API ManagedActionHistoryItem()=default
ManagedActionHistoryItem & WithFailureType(FailureType value)
ManagedActionHistoryItem & WithActionDescription(ActionDescriptionT &&value)
AWS_ELASTICBEANSTALK_API ManagedActionHistoryItem & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream