AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
EventInformation.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_EC2_API EventInformation() = default;
35 AWS_EC2_API EventInformation(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
46 inline const Aws::String& GetEventDescription() const { return m_eventDescription; }
47 inline bool EventDescriptionHasBeenSet() const { return m_eventDescriptionHasBeenSet; }
48 template<typename EventDescriptionT = Aws::String>
49 void SetEventDescription(EventDescriptionT&& value) { m_eventDescriptionHasBeenSet = true; m_eventDescription = std::forward<EventDescriptionT>(value); }
50 template<typename EventDescriptionT = Aws::String>
51 EventInformation& WithEventDescription(EventDescriptionT&& value) { SetEventDescription(std::forward<EventDescriptionT>(value)); return *this;}
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) { m_eventSubTypeHasBeenSet = true; m_eventSubType = std::forward<EventSubTypeT>(value); }
120 template<typename EventSubTypeT = Aws::String>
121 EventInformation& WithEventSubType(EventSubTypeT&& value) { SetEventSubType(std::forward<EventSubTypeT>(value)); return *this;}
123
125
129 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
130 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
131 template<typename InstanceIdT = Aws::String>
132 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
133 template<typename InstanceIdT = Aws::String>
134 EventInformation& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
136 private:
137
138 Aws::String m_eventDescription;
139 bool m_eventDescriptionHasBeenSet = false;
140
141 Aws::String m_eventSubType;
142 bool m_eventSubTypeHasBeenSet = false;
143
144 Aws::String m_instanceId;
145 bool m_instanceIdHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace EC2
150} // 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