AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EventDescription.h
1
6#pragma once
7#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/elasticbeanstalk/model/EventSeverity.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace ElasticBeanstalk
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_ELASTICBEANSTALK_API EventDescription() = default;
37 AWS_ELASTICBEANSTALK_API EventDescription(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_ELASTICBEANSTALK_API EventDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::Utils::DateTime& GetEventDate() const { return m_eventDate; }
49 inline bool EventDateHasBeenSet() const { return m_eventDateHasBeenSet; }
50 template<typename EventDateT = Aws::Utils::DateTime>
51 void SetEventDate(EventDateT&& value) { m_eventDateHasBeenSet = true; m_eventDate = std::forward<EventDateT>(value); }
52 template<typename EventDateT = Aws::Utils::DateTime>
53 EventDescription& WithEventDate(EventDateT&& value) { SetEventDate(std::forward<EventDateT>(value)); return *this;}
55
57
60 inline const Aws::String& GetMessage() const { return m_message; }
61 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
62 template<typename MessageT = Aws::String>
63 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
64 template<typename MessageT = Aws::String>
65 EventDescription& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
67
69
72 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
73 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
74 template<typename ApplicationNameT = Aws::String>
75 void SetApplicationName(ApplicationNameT&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::forward<ApplicationNameT>(value); }
76 template<typename ApplicationNameT = Aws::String>
77 EventDescription& WithApplicationName(ApplicationNameT&& value) { SetApplicationName(std::forward<ApplicationNameT>(value)); return *this;}
79
81
84 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
85 inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
86 template<typename VersionLabelT = Aws::String>
87 void SetVersionLabel(VersionLabelT&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = std::forward<VersionLabelT>(value); }
88 template<typename VersionLabelT = Aws::String>
89 EventDescription& WithVersionLabel(VersionLabelT&& value) { SetVersionLabel(std::forward<VersionLabelT>(value)); return *this;}
91
93
96 inline const Aws::String& GetTemplateName() const { return m_templateName; }
97 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
98 template<typename TemplateNameT = Aws::String>
99 void SetTemplateName(TemplateNameT&& value) { m_templateNameHasBeenSet = true; m_templateName = std::forward<TemplateNameT>(value); }
100 template<typename TemplateNameT = Aws::String>
101 EventDescription& WithTemplateName(TemplateNameT&& value) { SetTemplateName(std::forward<TemplateNameT>(value)); return *this;}
103
105
108 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
109 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
110 template<typename EnvironmentNameT = Aws::String>
111 void SetEnvironmentName(EnvironmentNameT&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::forward<EnvironmentNameT>(value); }
112 template<typename EnvironmentNameT = Aws::String>
113 EventDescription& WithEnvironmentName(EnvironmentNameT&& value) { SetEnvironmentName(std::forward<EnvironmentNameT>(value)); return *this;}
115
117
120 inline const Aws::String& GetPlatformArn() const { return m_platformArn; }
121 inline bool PlatformArnHasBeenSet() const { return m_platformArnHasBeenSet; }
122 template<typename PlatformArnT = Aws::String>
123 void SetPlatformArn(PlatformArnT&& value) { m_platformArnHasBeenSet = true; m_platformArn = std::forward<PlatformArnT>(value); }
124 template<typename PlatformArnT = Aws::String>
125 EventDescription& WithPlatformArn(PlatformArnT&& value) { SetPlatformArn(std::forward<PlatformArnT>(value)); return *this;}
127
129
132 inline const Aws::String& GetRequestId() const { return m_requestId; }
133 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
134 template<typename RequestIdT = Aws::String>
135 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
136 template<typename RequestIdT = Aws::String>
137 EventDescription& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
139
141
144 inline EventSeverity GetSeverity() const { return m_severity; }
145 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
146 inline void SetSeverity(EventSeverity value) { m_severityHasBeenSet = true; m_severity = value; }
147 inline EventDescription& WithSeverity(EventSeverity value) { SetSeverity(value); return *this;}
149 private:
150
151 Aws::Utils::DateTime m_eventDate{};
152 bool m_eventDateHasBeenSet = false;
153
154 Aws::String m_message;
155 bool m_messageHasBeenSet = false;
156
157 Aws::String m_applicationName;
158 bool m_applicationNameHasBeenSet = false;
159
160 Aws::String m_versionLabel;
161 bool m_versionLabelHasBeenSet = false;
162
163 Aws::String m_templateName;
164 bool m_templateNameHasBeenSet = false;
165
166 Aws::String m_environmentName;
167 bool m_environmentNameHasBeenSet = false;
168
169 Aws::String m_platformArn;
170 bool m_platformArnHasBeenSet = false;
171
172 Aws::String m_requestId;
173 bool m_requestIdHasBeenSet = false;
174
176 bool m_severityHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace ElasticBeanstalk
181} // 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