AWS SDK for C++  0.14.3
AWS SDK for C++
HistoryRecord.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ec2/EC2_EXPORTS.h>
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace EC2
32 {
33 namespace Model
34 {
35 
40  {
41  public:
42  HistoryRecord();
44  HistoryRecord& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
53  inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
54 
59  inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
60 
65  inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
66 
71  inline HistoryRecord& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
72 
77  inline HistoryRecord& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(value); return *this;}
78 
86  inline const EventType& GetEventType() const{ return m_eventType; }
87 
95  inline void SetEventType(const EventType& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
96 
104  inline void SetEventType(EventType&& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
105 
113  inline HistoryRecord& WithEventType(const EventType& value) { SetEventType(value); return *this;}
114 
122  inline HistoryRecord& WithEventType(EventType&& value) { SetEventType(value); return *this;}
123 
127  inline const EventInformation& GetEventInformation() const{ return m_eventInformation; }
128 
132  inline void SetEventInformation(const EventInformation& value) { m_eventInformationHasBeenSet = true; m_eventInformation = value; }
133 
137  inline void SetEventInformation(EventInformation&& value) { m_eventInformationHasBeenSet = true; m_eventInformation = value; }
138 
142  inline HistoryRecord& WithEventInformation(const EventInformation& value) { SetEventInformation(value); return *this;}
143 
147  inline HistoryRecord& WithEventInformation(EventInformation&& value) { SetEventInformation(value); return *this;}
148 
149  private:
150  Aws::Utils::DateTime m_timestamp;
151  bool m_timestampHasBeenSet;
152  EventType m_eventType;
153  bool m_eventTypeHasBeenSet;
154  EventInformation m_eventInformation;
155  bool m_eventInformationHasBeenSet;
156  };
157 
158 } // namespace Model
159 } // namespace EC2
160 } // namespace Aws
void SetEventType(const EventType &value)
Definition: HistoryRecord.h:95
HistoryRecord & WithEventType(const EventType &value)
const EventType & GetEventType() const
Definition: HistoryRecord.h:86
HistoryRecord & WithTimestamp(Aws::Utils::DateTime &&value)
Definition: HistoryRecord.h:77
void SetEventType(EventType &&value)
void SetEventInformation(const EventInformation &value)
HistoryRecord & WithTimestamp(const Aws::Utils::DateTime &value)
Definition: HistoryRecord.h:71
HistoryRecord & WithEventType(EventType &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const Aws::Utils::DateTime & GetTimestamp() const
Definition: HistoryRecord.h:53
const EventInformation & GetEventInformation() const
void SetTimestamp(const Aws::Utils::DateTime &value)
Definition: HistoryRecord.h:59
HistoryRecord & WithEventInformation(const EventInformation &value)
void SetTimestamp(Aws::Utils::DateTime &&value)
Definition: HistoryRecord.h:65
void SetEventInformation(EventInformation &&value)
HistoryRecord & WithEventInformation(EventInformation &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
JSON (JavaScript Object Notation).