AWS SDK for C++  1.9.71
AWS SDK for C++
HistoryRecordEntry.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 HistoryRecordEntry& WithEventInformation(const EventInformation& value) { SetEventInformation(value); return *this;}
69 
73  inline HistoryRecordEntry& WithEventInformation(EventInformation&& value) { SetEventInformation(std::move(value)); return *this;}
74 
75 
79  inline const FleetEventType& GetEventType() const{ return m_eventType; }
80 
84  inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
85 
89  inline void SetEventType(const FleetEventType& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
90 
94  inline void SetEventType(FleetEventType&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
95 
99  inline HistoryRecordEntry& WithEventType(const FleetEventType& value) { SetEventType(value); return *this;}
100 
104  inline HistoryRecordEntry& WithEventType(FleetEventType&& value) { SetEventType(std::move(value)); return *this;}
105 
106 
111  inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
112 
117  inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
118 
123  inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
124 
129  inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
130 
135  inline HistoryRecordEntry& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
136 
141  inline HistoryRecordEntry& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
142 
143  private:
144 
145  EventInformation m_eventInformation;
146  bool m_eventInformationHasBeenSet;
147 
148  FleetEventType m_eventType;
149  bool m_eventTypeHasBeenSet;
150 
151  Aws::Utils::DateTime m_timestamp;
152  bool m_timestampHasBeenSet;
153  };
154 
155 } // namespace Model
156 } // namespace EC2
157 } // namespace Aws
Aws::EC2::Model::HistoryRecordEntry::SetTimestamp
void SetTimestamp(Aws::Utils::DateTime &&value)
Definition: HistoryRecordEntry.h:129
Aws::Utils::DateTime
Definition: DateTime.h:55
EventInformation.h
Aws::EC2::Model::HistoryRecordEntry::WithEventInformation
HistoryRecordEntry & WithEventInformation(const EventInformation &value)
Definition: HistoryRecordEntry.h:68
Aws::EC2::Model::HistoryRecordEntry::GetEventInformation
const EventInformation & GetEventInformation() const
Definition: HistoryRecordEntry.h:48
Aws::EC2::Model::HistoryRecordEntry::operator=
HistoryRecordEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::EventInformation
Definition: EventInformation.h:32
Aws::EC2::Model::HistoryRecordEntry::SetEventInformation
void SetEventInformation(const EventInformation &value)
Definition: HistoryRecordEntry.h:58
DateTime.h
Aws::EC2::Model::HistoryRecordEntry::WithTimestamp
HistoryRecordEntry & WithTimestamp(Aws::Utils::DateTime &&value)
Definition: HistoryRecordEntry.h:141
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::HistoryRecordEntry::GetEventType
const FleetEventType & GetEventType() const
Definition: HistoryRecordEntry.h:79
Aws::EC2::Model::HistoryRecordEntry::GetTimestamp
const Aws::Utils::DateTime & GetTimestamp() const
Definition: HistoryRecordEntry.h:111
Aws::EC2::Model::HistoryRecordEntry::EventInformationHasBeenSet
bool EventInformationHasBeenSet() const
Definition: HistoryRecordEntry.h:53
AWSStreamFwd.h
Aws::EC2::Model::HistoryRecordEntry::WithEventType
HistoryRecordEntry & WithEventType(const FleetEventType &value)
Definition: HistoryRecordEntry.h:99
Aws::EC2::Model::HistoryRecordEntry::SetTimestamp
void SetTimestamp(const Aws::Utils::DateTime &value)
Definition: HistoryRecordEntry.h:123
Aws::EC2::Model::FleetEventType
FleetEventType
Definition: FleetEventType.h:17
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::HistoryRecordEntry::HistoryRecordEntry
HistoryRecordEntry()
Aws::EC2::Model::HistoryRecordEntry::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::HistoryRecordEntry::SetEventType
void SetEventType(const FleetEventType &value)
Definition: HistoryRecordEntry.h:89
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::HistoryRecordEntry::WithEventInformation
HistoryRecordEntry & WithEventInformation(EventInformation &&value)
Definition: HistoryRecordEntry.h:73
Aws::EC2::Model::HistoryRecordEntry::WithTimestamp
HistoryRecordEntry & WithTimestamp(const Aws::Utils::DateTime &value)
Definition: HistoryRecordEntry.h:135
FleetEventType.h
Aws::EC2::Model::HistoryRecordEntry
Definition: HistoryRecordEntry.h:35
Aws::EC2::Model::HistoryRecordEntry::WithEventType
HistoryRecordEntry & WithEventType(FleetEventType &&value)
Definition: HistoryRecordEntry.h:104
Aws::EC2::Model::HistoryRecordEntry::SetEventType
void SetEventType(FleetEventType &&value)
Definition: HistoryRecordEntry.h:94
Aws::EC2::Model::HistoryRecordEntry::SetEventInformation
void SetEventInformation(EventInformation &&value)
Definition: HistoryRecordEntry.h:63
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::HistoryRecordEntry::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h
Aws::EC2::Model::HistoryRecordEntry::TimestampHasBeenSet
bool TimestampHasBeenSet() const
Definition: HistoryRecordEntry.h:117
Aws::EC2::Model::HistoryRecordEntry::HistoryRecordEntry
HistoryRecordEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::HistoryRecordEntry::EventTypeHasBeenSet
bool EventTypeHasBeenSet() const
Definition: HistoryRecordEntry.h:84