AWS SDK for C++  0.12.9
AWS SDK for C++
EventDescription.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace ElasticBeanstalk
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  EventDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
52  inline const Aws::Utils::DateTime& GetEventDate() const{ return m_eventDate; }
53 
57  inline void SetEventDate(const Aws::Utils::DateTime& value) { m_eventDateHasBeenSet = true; m_eventDate = value; }
58 
62  inline void SetEventDate(Aws::Utils::DateTime&& value) { m_eventDateHasBeenSet = true; m_eventDate = value; }
63 
67  inline EventDescription& WithEventDate(const Aws::Utils::DateTime& value) { SetEventDate(value); return *this;}
68 
72  inline EventDescription& WithEventDate(Aws::Utils::DateTime&& value) { SetEventDate(value); return *this;}
73 
77  inline const Aws::String& GetMessage() const{ return m_message; }
78 
82  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
83 
87  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
88 
92  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
93 
97  inline EventDescription& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
98 
102  inline EventDescription& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
103 
107  inline EventDescription& WithMessage(const char* value) { SetMessage(value); return *this;}
108 
112  inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
113 
117  inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
118 
122  inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
123 
127  inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
128 
132  inline EventDescription& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
133 
137  inline EventDescription& WithApplicationName(Aws::String&& value) { SetApplicationName(value); return *this;}
138 
142  inline EventDescription& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
143 
147  inline const Aws::String& GetVersionLabel() const{ return m_versionLabel; }
148 
152  inline void SetVersionLabel(const Aws::String& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; }
153 
157  inline void SetVersionLabel(Aws::String&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; }
158 
162  inline void SetVersionLabel(const char* value) { m_versionLabelHasBeenSet = true; m_versionLabel.assign(value); }
163 
167  inline EventDescription& WithVersionLabel(const Aws::String& value) { SetVersionLabel(value); return *this;}
168 
172  inline EventDescription& WithVersionLabel(Aws::String&& value) { SetVersionLabel(value); return *this;}
173 
177  inline EventDescription& WithVersionLabel(const char* value) { SetVersionLabel(value); return *this;}
178 
182  inline const Aws::String& GetTemplateName() const{ return m_templateName; }
183 
187  inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
188 
192  inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
193 
197  inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
198 
202  inline EventDescription& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
203 
207  inline EventDescription& WithTemplateName(Aws::String&& value) { SetTemplateName(value); return *this;}
208 
212  inline EventDescription& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
213 
217  inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
218 
222  inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
223 
227  inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
228 
232  inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
233 
237  inline EventDescription& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;}
238 
242  inline EventDescription& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(value); return *this;}
243 
247  inline EventDescription& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
248 
252  inline const Aws::String& GetRequestId() const{ return m_requestId; }
253 
257  inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
258 
262  inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
263 
267  inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
268 
272  inline EventDescription& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
273 
277  inline EventDescription& WithRequestId(Aws::String&& value) { SetRequestId(value); return *this;}
278 
282  inline EventDescription& WithRequestId(const char* value) { SetRequestId(value); return *this;}
283 
287  inline const EventSeverity& GetSeverity() const{ return m_severity; }
288 
292  inline void SetSeverity(const EventSeverity& value) { m_severityHasBeenSet = true; m_severity = value; }
293 
297  inline void SetSeverity(EventSeverity&& value) { m_severityHasBeenSet = true; m_severity = value; }
298 
302  inline EventDescription& WithSeverity(const EventSeverity& value) { SetSeverity(value); return *this;}
303 
307  inline EventDescription& WithSeverity(EventSeverity&& value) { SetSeverity(value); return *this;}
308 
309  private:
310  Aws::Utils::DateTime m_eventDate;
311  bool m_eventDateHasBeenSet;
312  Aws::String m_message;
313  bool m_messageHasBeenSet;
314  Aws::String m_applicationName;
315  bool m_applicationNameHasBeenSet;
316  Aws::String m_versionLabel;
317  bool m_versionLabelHasBeenSet;
318  Aws::String m_templateName;
319  bool m_templateNameHasBeenSet;
320  Aws::String m_environmentName;
321  bool m_environmentNameHasBeenSet;
322  Aws::String m_requestId;
323  bool m_requestIdHasBeenSet;
324  EventSeverity m_severity;
325  bool m_severityHasBeenSet;
326  };
327 
328 } // namespace Model
329 } // namespace ElasticBeanstalk
330 } // namespace Aws
EventDescription & WithRequestId(const char *value)
EventDescription & WithVersionLabel(const Aws::String &value)
EventDescription & WithTemplateName(const Aws::String &value)
EventDescription & WithMessage(Aws::String &&value)
#define AWS_ELASTICBEANSTALK_API
EventDescription & WithTemplateName(const char *value)
void SetApplicationName(const Aws::String &value)
EventDescription & WithMessage(const char *value)
void SetTemplateName(const Aws::String &value)
EventDescription & WithRequestId(const Aws::String &value)
EventDescription & WithVersionLabel(const char *value)
void SetEnvironmentName(const Aws::String &value)
EventDescription & WithRequestId(Aws::String &&value)
EventDescription & WithTemplateName(Aws::String &&value)
const EventSeverity & GetSeverity() const
void SetMessage(const Aws::String &value)
void SetVersionLabel(const Aws::String &value)
const Aws::Utils::DateTime & GetEventDate() const
EventDescription & WithMessage(const Aws::String &value)
EventDescription & WithEventDate(Aws::Utils::DateTime &&value)
EventDescription & WithSeverity(EventSeverity &&value)
void SetEventDate(Aws::Utils::DateTime &&value)
EventDescription & WithVersionLabel(Aws::String &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetSeverity(const EventSeverity &value)
EventDescription & WithEnvironmentName(const Aws::String &value)
EventDescription & WithEnvironmentName(Aws::String &&value)
EventDescription & WithApplicationName(const Aws::String &value)
EventDescription & WithEnvironmentName(const char *value)
const Aws::String & GetEnvironmentName() const
EventDescription & WithSeverity(const EventSeverity &value)
EventDescription & WithApplicationName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
EventDescription & WithEventDate(const Aws::Utils::DateTime &value)
void SetRequestId(const Aws::String &value)
const Aws::String & GetApplicationName() const
void SetEventDate(const Aws::Utils::DateTime &value)
EventDescription & WithApplicationName(const char *value)
JSON (JavaScript Object Notation).