AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
EventInformation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
28 public:
29 AWS_EC2_API EventInformation() = default;
30 AWS_EC2_API EventInformation(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
40 inline const Aws::String& GetEventDescription() const { return m_eventDescription; }
41 inline bool EventDescriptionHasBeenSet() const { return m_eventDescriptionHasBeenSet; }
42 template <typename EventDescriptionT = Aws::String>
43 void SetEventDescription(EventDescriptionT&& value) {
44 m_eventDescriptionHasBeenSet = true;
45 m_eventDescription = std::forward<EventDescriptionT>(value);
46 }
47 template <typename EventDescriptionT = Aws::String>
48 EventInformation& WithEventDescription(EventDescriptionT&& value) {
49 SetEventDescription(std::forward<EventDescriptionT>(value));
50 return *this;
51 }
53
55
116 inline const Aws::String& GetEventSubType() const { return m_eventSubType; }
117 inline bool EventSubTypeHasBeenSet() const { return m_eventSubTypeHasBeenSet; }
118 template <typename EventSubTypeT = Aws::String>
119 void SetEventSubType(EventSubTypeT&& value) {
120 m_eventSubTypeHasBeenSet = true;
121 m_eventSubType = std::forward<EventSubTypeT>(value);
122 }
123 template <typename EventSubTypeT = Aws::String>
124 EventInformation& WithEventSubType(EventSubTypeT&& value) {
125 SetEventSubType(std::forward<EventSubTypeT>(value));
126 return *this;
127 }
129
131
135 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
136 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
137 template <typename InstanceIdT = Aws::String>
138 void SetInstanceId(InstanceIdT&& value) {
139 m_instanceIdHasBeenSet = true;
140 m_instanceId = std::forward<InstanceIdT>(value);
141 }
142 template <typename InstanceIdT = Aws::String>
143 EventInformation& WithInstanceId(InstanceIdT&& value) {
144 SetInstanceId(std::forward<InstanceIdT>(value));
145 return *this;
146 }
148 private:
149 Aws::String m_eventDescription;
150
151 Aws::String m_eventSubType;
152
153 Aws::String m_instanceId;
154 bool m_eventDescriptionHasBeenSet = false;
155 bool m_eventSubTypeHasBeenSet = false;
156 bool m_instanceIdHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace EC2
161} // namespace Aws
void SetEventSubType(EventSubTypeT &&value)
EventInformation & WithEventDescription(EventDescriptionT &&value)
EventInformation & WithInstanceId(InstanceIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetEventSubType() const
AWS_EC2_API EventInformation()=default
void SetEventDescription(EventDescriptionT &&value)
AWS_EC2_API EventInformation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API EventInformation(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetInstanceId(InstanceIdT &&value)
const Aws::String & GetEventDescription() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
EventInformation & WithEventSubType(EventSubTypeT &&value)
const Aws::String & GetInstanceId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream