AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEventInformation(const EventInformation& value) { m_eventInformationHasBeenSet = true; m_eventInformation = value; }
52 inline void SetEventInformation(EventInformation&& value) { m_eventInformationHasBeenSet = true; m_eventInformation = std::move(value); }
53 inline HistoryRecord& WithEventInformation(const EventInformation& value) { SetEventInformation(value); return *this;}
54 inline HistoryRecord& WithEventInformation(EventInformation&& value) { SetEventInformation(std::move(value)); return *this;}
56
58
65 inline const EventType& GetEventType() const{ return m_eventType; }
66 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
67 inline void SetEventType(const EventType& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
68 inline void SetEventType(EventType&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
69 inline HistoryRecord& WithEventType(const EventType& value) { SetEventType(value); return *this;}
70 inline HistoryRecord& WithEventType(EventType&& value) { SetEventType(std::move(value)); return *this;}
72
74
78 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
79 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
80 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
81 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
82 inline HistoryRecord& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
83 inline HistoryRecord& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
85 private:
86
87 EventInformation m_eventInformation;
88 bool m_eventInformationHasBeenSet = false;
89
90 EventType m_eventType;
91 bool m_eventTypeHasBeenSet = false;
92
93 Aws::Utils::DateTime m_timestamp;
94 bool m_timestampHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace EC2
99} // namespace Aws
void SetTimestamp(Aws::Utils::DateTime &&value)
const EventInformation & GetEventInformation() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetEventType(EventType &&value)
void SetTimestamp(const Aws::Utils::DateTime &value)
HistoryRecord & WithEventType(const EventType &value)
HistoryRecord & WithEventType(EventType &&value)
HistoryRecord & WithTimestamp(Aws::Utils::DateTime &&value)
void SetEventInformation(EventInformation &&value)
void SetEventInformation(const EventInformation &value)
const Aws::Utils::DateTime & GetTimestamp() const
const EventType & GetEventType() const
void SetEventType(const EventType &value)
HistoryRecord & WithTimestamp(const Aws::Utils::DateTime &value)
AWS_EC2_API HistoryRecord(const Aws::Utils::Xml::XmlNode &xmlNode)
HistoryRecord & WithEventInformation(EventInformation &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
HistoryRecord & WithEventInformation(const EventInformation &value)
AWS_EC2_API HistoryRecord & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_ostream< char, std::char_traits< char > > OStream