AWS SDK for C++  1.9.109
AWS SDK for C++
HistoryRecord.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const EventInformation& GetEventInformation() const{ return m_eventInformation; }
49 
53  inline bool EventInformationHasBeenSet() const { return m_eventInformationHasBeenSet; }
54 
58  inline void SetEventInformation(const EventInformation& value) { m_eventInformationHasBeenSet = true; m_eventInformation = value; }
59 
63  inline void SetEventInformation(EventInformation&& value) { m_eventInformationHasBeenSet = true; m_eventInformation = std::move(value); }
64 
68  inline HistoryRecord& WithEventInformation(const EventInformation& value) { SetEventInformation(value); return *this;}
69 
73  inline HistoryRecord& WithEventInformation(EventInformation&& value) { SetEventInformation(std::move(value)); return *this;}
74 
75 
83  inline const EventType& GetEventType() const{ return m_eventType; }
84 
92  inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
93 
101  inline void SetEventType(const EventType& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
102 
110  inline void SetEventType(EventType&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
111 
119  inline HistoryRecord& WithEventType(const EventType& value) { SetEventType(value); return *this;}
120 
128  inline HistoryRecord& WithEventType(EventType&& value) { SetEventType(std::move(value)); return *this;}
129 
130 
135  inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
136 
141  inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
142 
147  inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
148 
153  inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
154 
159  inline HistoryRecord& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
160 
165  inline HistoryRecord& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
166 
167  private:
168 
169  EventInformation m_eventInformation;
170  bool m_eventInformationHasBeenSet;
171 
172  EventType m_eventType;
173  bool m_eventTypeHasBeenSet;
174 
175  Aws::Utils::DateTime m_timestamp;
176  bool m_timestampHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace EC2
181 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::HistoryRecord::WithEventType
HistoryRecord & WithEventType(const EventType &value)
Definition: HistoryRecord.h:119
EventInformation.h
Aws::EC2::Model::HistoryRecord::GetTimestamp
const Aws::Utils::DateTime & GetTimestamp() const
Definition: HistoryRecord.h:135
Aws::EC2::Model::HistoryRecord::HistoryRecord
HistoryRecord(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::EventInformation
Definition: EventInformation.h:32
DateTime.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::HistoryRecord::SetEventType
void SetEventType(EventType &&value)
Definition: HistoryRecord.h:110
Aws::EC2::Model::HistoryRecord::SetTimestamp
void SetTimestamp(const Aws::Utils::DateTime &value)
Definition: HistoryRecord.h:147
AWSStreamFwd.h
Aws::EC2::Model::HistoryRecord::GetEventInformation
const EventInformation & GetEventInformation() const
Definition: HistoryRecord.h:48
Aws::EC2::Model::HistoryRecord
Definition: HistoryRecord.h:35
Aws::EC2::Model::HistoryRecord::GetEventType
const EventType & GetEventType() const
Definition: HistoryRecord.h:83
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::HistoryRecord::WithTimestamp
HistoryRecord & WithTimestamp(const Aws::Utils::DateTime &value)
Definition: HistoryRecord.h:159
Aws::EC2::Model::HistoryRecord::EventTypeHasBeenSet
bool EventTypeHasBeenSet() const
Definition: HistoryRecord.h:92
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::HistoryRecord::TimestampHasBeenSet
bool TimestampHasBeenSet() const
Definition: HistoryRecord.h:141
Aws::EC2::Model::HistoryRecord::HistoryRecord
HistoryRecord()
Aws::EC2::Model::HistoryRecord::EventInformationHasBeenSet
bool EventInformationHasBeenSet() const
Definition: HistoryRecord.h:53
Aws::EC2::Model::HistoryRecord::WithEventInformation
HistoryRecord & WithEventInformation(const EventInformation &value)
Definition: HistoryRecord.h:68
Aws::EC2::Model::HistoryRecord::SetTimestamp
void SetTimestamp(Aws::Utils::DateTime &&value)
Definition: HistoryRecord.h:153
Aws::EC2::Model::HistoryRecord::WithEventType
HistoryRecord & WithEventType(EventType &&value)
Definition: HistoryRecord.h:128
Aws::EC2::Model::HistoryRecord::SetEventType
void SetEventType(const EventType &value)
Definition: HistoryRecord.h:101
Aws::EC2::Model::HistoryRecord::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::HistoryRecord::WithEventInformation
HistoryRecord & WithEventInformation(EventInformation &&value)
Definition: HistoryRecord.h:73
Aws::EC2::Model::HistoryRecord::SetEventInformation
void SetEventInformation(const EventInformation &value)
Definition: HistoryRecord.h:58
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::HistoryRecord::operator=
HistoryRecord & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EventType.h
Aws::EC2::Model::EventType
EventType
Definition: EventType.h:17
Aws::EC2::Model::HistoryRecord::SetEventInformation
void SetEventInformation(EventInformation &&value)
Definition: HistoryRecord.h:63
Aws::EC2::Model::HistoryRecord::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
EC2_EXPORTS.h
Aws::EC2::Model::HistoryRecord::WithTimestamp
HistoryRecord & WithTimestamp(Aws::Utils::DateTime &&value)
Definition: HistoryRecord.h:165