AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
EventDescription.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/EventSeverity.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElasticBeanstalk {
22namespace Model {
23
30 public:
31 AWS_ELASTICBEANSTALK_API EventDescription() = default;
32 AWS_ELASTICBEANSTALK_API EventDescription(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_ELASTICBEANSTALK_API EventDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
36 const char* locationValue) const;
37 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::Utils::DateTime& GetEventDate() const { return m_eventDate; }
44 inline bool EventDateHasBeenSet() const { return m_eventDateHasBeenSet; }
45 template <typename EventDateT = Aws::Utils::DateTime>
46 void SetEventDate(EventDateT&& value) {
47 m_eventDateHasBeenSet = true;
48 m_eventDate = std::forward<EventDateT>(value);
49 }
50 template <typename EventDateT = Aws::Utils::DateTime>
51 EventDescription& WithEventDate(EventDateT&& value) {
52 SetEventDate(std::forward<EventDateT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetMessage() const { return m_message; }
62 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
63 template <typename MessageT = Aws::String>
64 void SetMessage(MessageT&& value) {
65 m_messageHasBeenSet = true;
66 m_message = std::forward<MessageT>(value);
67 }
68 template <typename MessageT = Aws::String>
69 EventDescription& WithMessage(MessageT&& value) {
70 SetMessage(std::forward<MessageT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
80 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
81 template <typename ApplicationNameT = Aws::String>
82 void SetApplicationName(ApplicationNameT&& value) {
83 m_applicationNameHasBeenSet = true;
84 m_applicationName = std::forward<ApplicationNameT>(value);
85 }
86 template <typename ApplicationNameT = Aws::String>
87 EventDescription& WithApplicationName(ApplicationNameT&& value) {
88 SetApplicationName(std::forward<ApplicationNameT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
98 inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
99 template <typename VersionLabelT = Aws::String>
100 void SetVersionLabel(VersionLabelT&& value) {
101 m_versionLabelHasBeenSet = true;
102 m_versionLabel = std::forward<VersionLabelT>(value);
103 }
104 template <typename VersionLabelT = Aws::String>
105 EventDescription& WithVersionLabel(VersionLabelT&& value) {
106 SetVersionLabel(std::forward<VersionLabelT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetTemplateName() const { return m_templateName; }
116 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
117 template <typename TemplateNameT = Aws::String>
118 void SetTemplateName(TemplateNameT&& value) {
119 m_templateNameHasBeenSet = true;
120 m_templateName = std::forward<TemplateNameT>(value);
121 }
122 template <typename TemplateNameT = Aws::String>
123 EventDescription& WithTemplateName(TemplateNameT&& value) {
124 SetTemplateName(std::forward<TemplateNameT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
134 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
135 template <typename EnvironmentNameT = Aws::String>
136 void SetEnvironmentName(EnvironmentNameT&& value) {
137 m_environmentNameHasBeenSet = true;
138 m_environmentName = std::forward<EnvironmentNameT>(value);
139 }
140 template <typename EnvironmentNameT = Aws::String>
141 EventDescription& WithEnvironmentName(EnvironmentNameT&& value) {
142 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetPlatformArn() const { return m_platformArn; }
152 inline bool PlatformArnHasBeenSet() const { return m_platformArnHasBeenSet; }
153 template <typename PlatformArnT = Aws::String>
154 void SetPlatformArn(PlatformArnT&& value) {
155 m_platformArnHasBeenSet = true;
156 m_platformArn = std::forward<PlatformArnT>(value);
157 }
158 template <typename PlatformArnT = Aws::String>
159 EventDescription& WithPlatformArn(PlatformArnT&& value) {
160 SetPlatformArn(std::forward<PlatformArnT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::String& GetRequestId() const { return m_requestId; }
170 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
171 template <typename RequestIdT = Aws::String>
172 void SetRequestId(RequestIdT&& value) {
173 m_requestIdHasBeenSet = true;
174 m_requestId = std::forward<RequestIdT>(value);
175 }
176 template <typename RequestIdT = Aws::String>
177 EventDescription& WithRequestId(RequestIdT&& value) {
178 SetRequestId(std::forward<RequestIdT>(value));
179 return *this;
180 }
182
184
187 inline EventSeverity GetSeverity() const { return m_severity; }
188 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
189 inline void SetSeverity(EventSeverity value) {
190 m_severityHasBeenSet = true;
191 m_severity = value;
192 }
194 SetSeverity(value);
195 return *this;
196 }
198 private:
199 Aws::Utils::DateTime m_eventDate{};
200
201 Aws::String m_message;
202
203 Aws::String m_applicationName;
204
205 Aws::String m_versionLabel;
206
207 Aws::String m_templateName;
208
209 Aws::String m_environmentName;
210
211 Aws::String m_platformArn;
212
213 Aws::String m_requestId;
214
216 bool m_eventDateHasBeenSet = false;
217 bool m_messageHasBeenSet = false;
218 bool m_applicationNameHasBeenSet = false;
219 bool m_versionLabelHasBeenSet = false;
220 bool m_templateNameHasBeenSet = false;
221 bool m_environmentNameHasBeenSet = false;
222 bool m_platformArnHasBeenSet = false;
223 bool m_requestIdHasBeenSet = false;
224 bool m_severityHasBeenSet = false;
225};
226
227} // namespace Model
228} // namespace ElasticBeanstalk
229} // namespace Aws
EventDescription & WithSeverity(EventSeverity value)
EventDescription & WithRequestId(RequestIdT &&value)
EventDescription & WithVersionLabel(VersionLabelT &&value)
void SetApplicationName(ApplicationNameT &&value)
EventDescription & WithMessage(MessageT &&value)
EventDescription & WithTemplateName(TemplateNameT &&value)
AWS_ELASTICBEANSTALK_API EventDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEnvironmentName(EnvironmentNameT &&value)
EventDescription & WithApplicationName(ApplicationNameT &&value)
EventDescription & WithPlatformArn(PlatformArnT &&value)
const Aws::Utils::DateTime & GetEventDate() const
AWS_ELASTICBEANSTALK_API EventDescription()=default
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICBEANSTALK_API EventDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EventDescription & WithEnvironmentName(EnvironmentNameT &&value)
EventDescription & WithEventDate(EventDateT &&value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream