AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
HistoryRecord.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/EventInformation.h>
10#include <aws/ec2/model/EventType.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_EC2_API HistoryRecord() = default;
38 AWS_EC2_API HistoryRecord(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_EC2_API HistoryRecord& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const EventInformation& GetEventInformation() const { return m_eventInformation; }
50 inline bool EventInformationHasBeenSet() const { return m_eventInformationHasBeenSet; }
51 template<typename EventInformationT = EventInformation>
52 void SetEventInformation(EventInformationT&& value) { m_eventInformationHasBeenSet = true; m_eventInformation = std::forward<EventInformationT>(value); }
53 template<typename EventInformationT = EventInformation>
54 HistoryRecord& WithEventInformation(EventInformationT&& value) { SetEventInformation(std::forward<EventInformationT>(value)); return *this;}
56
58
65 inline EventType GetEventType() const { return m_eventType; }
66 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
67 inline void SetEventType(EventType value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
68 inline HistoryRecord& WithEventType(EventType value) { SetEventType(value); return *this;}
70
72
76 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
77 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
78 template<typename TimestampT = Aws::Utils::DateTime>
79 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
80 template<typename TimestampT = Aws::Utils::DateTime>
81 HistoryRecord& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
83 private:
84
85 EventInformation m_eventInformation;
86 bool m_eventInformationHasBeenSet = false;
87
88 EventType m_eventType{EventType::NOT_SET};
89 bool m_eventTypeHasBeenSet = false;
90
91 Aws::Utils::DateTime m_timestamp{};
92 bool m_timestampHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace EC2
97} // namespace Aws
const EventInformation & GetEventInformation() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
HistoryRecord & WithEventInformation(EventInformationT &&value)
HistoryRecord & WithTimestamp(TimestampT &&value)
void SetEventType(EventType value)
void SetTimestamp(TimestampT &&value)
const Aws::Utils::DateTime & GetTimestamp() const
HistoryRecord & WithEventType(EventType value)
AWS_EC2_API HistoryRecord(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEventInformation(EventInformationT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API HistoryRecord & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API HistoryRecord()=default
std::basic_ostream< char, std::char_traits< char > > OStream