AWS SDK for C++  1.9.153
AWS SDK for C++
InstanceStatusEvent.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 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetInstanceEventId() const{ return m_instanceEventId; }
48 
52  inline bool InstanceEventIdHasBeenSet() const { return m_instanceEventIdHasBeenSet; }
53 
57  inline void SetInstanceEventId(const Aws::String& value) { m_instanceEventIdHasBeenSet = true; m_instanceEventId = value; }
58 
62  inline void SetInstanceEventId(Aws::String&& value) { m_instanceEventIdHasBeenSet = true; m_instanceEventId = std::move(value); }
63 
67  inline void SetInstanceEventId(const char* value) { m_instanceEventIdHasBeenSet = true; m_instanceEventId.assign(value); }
68 
72  inline InstanceStatusEvent& WithInstanceEventId(const Aws::String& value) { SetInstanceEventId(value); return *this;}
73 
77  inline InstanceStatusEvent& WithInstanceEventId(Aws::String&& value) { SetInstanceEventId(std::move(value)); return *this;}
78 
82  inline InstanceStatusEvent& WithInstanceEventId(const char* value) { SetInstanceEventId(value); return *this;}
83 
84 
88  inline const EventCode& GetCode() const{ return m_code; }
89 
93  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
94 
98  inline void SetCode(const EventCode& value) { m_codeHasBeenSet = true; m_code = value; }
99 
103  inline void SetCode(EventCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
104 
108  inline InstanceStatusEvent& WithCode(const EventCode& value) { SetCode(value); return *this;}
109 
113  inline InstanceStatusEvent& WithCode(EventCode&& value) { SetCode(std::move(value)); return *this;}
114 
115 
121  inline const Aws::String& GetDescription() const{ return m_description; }
122 
128  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
129 
135  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
136 
142  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
143 
149  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
150 
156  inline InstanceStatusEvent& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
157 
163  inline InstanceStatusEvent& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
164 
170  inline InstanceStatusEvent& WithDescription(const char* value) { SetDescription(value); return *this;}
171 
172 
176  inline const Aws::Utils::DateTime& GetNotAfter() const{ return m_notAfter; }
177 
181  inline bool NotAfterHasBeenSet() const { return m_notAfterHasBeenSet; }
182 
186  inline void SetNotAfter(const Aws::Utils::DateTime& value) { m_notAfterHasBeenSet = true; m_notAfter = value; }
187 
191  inline void SetNotAfter(Aws::Utils::DateTime&& value) { m_notAfterHasBeenSet = true; m_notAfter = std::move(value); }
192 
196  inline InstanceStatusEvent& WithNotAfter(const Aws::Utils::DateTime& value) { SetNotAfter(value); return *this;}
197 
201  inline InstanceStatusEvent& WithNotAfter(Aws::Utils::DateTime&& value) { SetNotAfter(std::move(value)); return *this;}
202 
203 
207  inline const Aws::Utils::DateTime& GetNotBefore() const{ return m_notBefore; }
208 
212  inline bool NotBeforeHasBeenSet() const { return m_notBeforeHasBeenSet; }
213 
217  inline void SetNotBefore(const Aws::Utils::DateTime& value) { m_notBeforeHasBeenSet = true; m_notBefore = value; }
218 
222  inline void SetNotBefore(Aws::Utils::DateTime&& value) { m_notBeforeHasBeenSet = true; m_notBefore = std::move(value); }
223 
227  inline InstanceStatusEvent& WithNotBefore(const Aws::Utils::DateTime& value) { SetNotBefore(value); return *this;}
228 
232  inline InstanceStatusEvent& WithNotBefore(Aws::Utils::DateTime&& value) { SetNotBefore(std::move(value)); return *this;}
233 
234 
238  inline const Aws::Utils::DateTime& GetNotBeforeDeadline() const{ return m_notBeforeDeadline; }
239 
243  inline bool NotBeforeDeadlineHasBeenSet() const { return m_notBeforeDeadlineHasBeenSet; }
244 
248  inline void SetNotBeforeDeadline(const Aws::Utils::DateTime& value) { m_notBeforeDeadlineHasBeenSet = true; m_notBeforeDeadline = value; }
249 
253  inline void SetNotBeforeDeadline(Aws::Utils::DateTime&& value) { m_notBeforeDeadlineHasBeenSet = true; m_notBeforeDeadline = std::move(value); }
254 
258  inline InstanceStatusEvent& WithNotBeforeDeadline(const Aws::Utils::DateTime& value) { SetNotBeforeDeadline(value); return *this;}
259 
263  inline InstanceStatusEvent& WithNotBeforeDeadline(Aws::Utils::DateTime&& value) { SetNotBeforeDeadline(std::move(value)); return *this;}
264 
265  private:
266 
267  Aws::String m_instanceEventId;
268  bool m_instanceEventIdHasBeenSet;
269 
270  EventCode m_code;
271  bool m_codeHasBeenSet;
272 
273  Aws::String m_description;
274  bool m_descriptionHasBeenSet;
275 
276  Aws::Utils::DateTime m_notAfter;
277  bool m_notAfterHasBeenSet;
278 
279  Aws::Utils::DateTime m_notBefore;
280  bool m_notBeforeHasBeenSet;
281 
282  Aws::Utils::DateTime m_notBeforeDeadline;
283  bool m_notBeforeDeadlineHasBeenSet;
284  };
285 
286 } // namespace Model
287 } // namespace EC2
288 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::InstanceStatusEvent::WithInstanceEventId
InstanceStatusEvent & WithInstanceEventId(const Aws::String &value)
Definition: InstanceStatusEvent.h:72
Aws::EC2::Model::InstanceStatusEvent::WithNotAfter
InstanceStatusEvent & WithNotAfter(const Aws::Utils::DateTime &value)
Definition: InstanceStatusEvent.h:196
Aws::EC2::Model::InstanceStatusEvent::SetInstanceEventId
void SetInstanceEventId(Aws::String &&value)
Definition: InstanceStatusEvent.h:62
Aws::EC2::Model::InstanceStatusEvent::SetInstanceEventId
void SetInstanceEventId(const Aws::String &value)
Definition: InstanceStatusEvent.h:57
Aws::EC2::Model::InstanceStatusEvent::NotBeforeHasBeenSet
bool NotBeforeHasBeenSet() const
Definition: InstanceStatusEvent.h:212
Aws::EC2::Model::InstanceStatusEvent::InstanceStatusEvent
InstanceStatusEvent()
Aws::EC2::Model::InstanceStatusEvent::GetNotAfter
const Aws::Utils::DateTime & GetNotAfter() const
Definition: InstanceStatusEvent.h:176
Aws::EC2::Model::InstanceStatusEvent::WithNotBefore
InstanceStatusEvent & WithNotBefore(Aws::Utils::DateTime &&value)
Definition: InstanceStatusEvent.h:232
Aws::EC2::Model::InstanceStatusEvent
Definition: InstanceStatusEvent.h:34
DateTime.h
Aws::EC2::Model::EventCode
EventCode
Definition: EventCode.h:17
Aws::EC2::Model::InstanceStatusEvent::WithDescription
InstanceStatusEvent & WithDescription(const Aws::String &value)
Definition: InstanceStatusEvent.h:156
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::InstanceStatusEvent::NotAfterHasBeenSet
bool NotAfterHasBeenSet() const
Definition: InstanceStatusEvent.h:181
Aws::EC2::Model::InstanceStatusEvent::SetDescription
void SetDescription(const char *value)
Definition: InstanceStatusEvent.h:149
Aws::EC2::Model::InstanceStatusEvent::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: InstanceStatusEvent.h:93
Aws::EC2::Model::InstanceStatusEvent::GetNotBeforeDeadline
const Aws::Utils::DateTime & GetNotBeforeDeadline() const
Definition: InstanceStatusEvent.h:238
AWSStreamFwd.h
Aws::EC2::Model::InstanceStatusEvent::operator=
InstanceStatusEvent & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InstanceStatusEvent::SetInstanceEventId
void SetInstanceEventId(const char *value)
Definition: InstanceStatusEvent.h:67
Aws::EC2::Model::InstanceStatusEvent::WithNotBeforeDeadline
InstanceStatusEvent & WithNotBeforeDeadline(const Aws::Utils::DateTime &value)
Definition: InstanceStatusEvent.h:258
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::InstanceStatusEvent::WithCode
InstanceStatusEvent & WithCode(EventCode &&value)
Definition: InstanceStatusEvent.h:113
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::InstanceStatusEvent::WithDescription
InstanceStatusEvent & WithDescription(const char *value)
Definition: InstanceStatusEvent.h:170
Aws::EC2::Model::InstanceStatusEvent::SetNotBeforeDeadline
void SetNotBeforeDeadline(const Aws::Utils::DateTime &value)
Definition: InstanceStatusEvent.h:248
Aws::EC2::Model::InstanceStatusEvent::GetNotBefore
const Aws::Utils::DateTime & GetNotBefore() const
Definition: InstanceStatusEvent.h:207
Aws::EC2::Model::InstanceStatusEvent::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::InstanceStatusEvent::SetNotBeforeDeadline
void SetNotBeforeDeadline(Aws::Utils::DateTime &&value)
Definition: InstanceStatusEvent.h:253
Aws::EC2::Model::InstanceStatusEvent::GetInstanceEventId
const Aws::String & GetInstanceEventId() const
Definition: InstanceStatusEvent.h:47
Aws::EC2::Model::InstanceStatusEvent::SetNotAfter
void SetNotAfter(const Aws::Utils::DateTime &value)
Definition: InstanceStatusEvent.h:186
Aws::EC2::Model::InstanceStatusEvent::SetDescription
void SetDescription(Aws::String &&value)
Definition: InstanceStatusEvent.h:142
AWSString.h
Aws::EC2::Model::InstanceStatusEvent::GetCode
const EventCode & GetCode() const
Definition: InstanceStatusEvent.h:88
Aws::EC2::Model::InstanceStatusEvent::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::InstanceStatusEvent::SetNotAfter
void SetNotAfter(Aws::Utils::DateTime &&value)
Definition: InstanceStatusEvent.h:191
Aws::EC2::Model::InstanceStatusEvent::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: InstanceStatusEvent.h:128
EventCode.h
Aws::EC2::Model::InstanceStatusEvent::WithNotBefore
InstanceStatusEvent & WithNotBefore(const Aws::Utils::DateTime &value)
Definition: InstanceStatusEvent.h:227
Aws::EC2::Model::InstanceStatusEvent::InstanceStatusEvent
InstanceStatusEvent(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::InstanceStatusEvent::WithDescription
InstanceStatusEvent & WithDescription(Aws::String &&value)
Definition: InstanceStatusEvent.h:163
Aws::EC2::Model::InstanceStatusEvent::WithNotAfter
InstanceStatusEvent & WithNotAfter(Aws::Utils::DateTime &&value)
Definition: InstanceStatusEvent.h:201
Aws::EC2::Model::InstanceStatusEvent::SetCode
void SetCode(EventCode &&value)
Definition: InstanceStatusEvent.h:103
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::InstanceStatusEvent::WithInstanceEventId
InstanceStatusEvent & WithInstanceEventId(Aws::String &&value)
Definition: InstanceStatusEvent.h:77
Aws::EC2::Model::InstanceStatusEvent::InstanceEventIdHasBeenSet
bool InstanceEventIdHasBeenSet() const
Definition: InstanceStatusEvent.h:52
Aws::EC2::Model::InstanceStatusEvent::GetDescription
const Aws::String & GetDescription() const
Definition: InstanceStatusEvent.h:121
Aws::EC2::Model::InstanceStatusEvent::SetNotBefore
void SetNotBefore(Aws::Utils::DateTime &&value)
Definition: InstanceStatusEvent.h:222
Aws::EC2::Model::InstanceStatusEvent::WithNotBeforeDeadline
InstanceStatusEvent & WithNotBeforeDeadline(Aws::Utils::DateTime &&value)
Definition: InstanceStatusEvent.h:263
EC2_EXPORTS.h
Aws::EC2::Model::InstanceStatusEvent::SetDescription
void SetDescription(const Aws::String &value)
Definition: InstanceStatusEvent.h:135
Aws::EC2::Model::InstanceStatusEvent::NotBeforeDeadlineHasBeenSet
bool NotBeforeDeadlineHasBeenSet() const
Definition: InstanceStatusEvent.h:243
Aws::EC2::Model::InstanceStatusEvent::SetNotBefore
void SetNotBefore(const Aws::Utils::DateTime &value)
Definition: InstanceStatusEvent.h:217
Aws::EC2::Model::InstanceStatusEvent::WithCode
InstanceStatusEvent & WithCode(const EventCode &value)
Definition: InstanceStatusEvent.h:108
Aws::EC2::Model::InstanceStatusEvent::WithInstanceEventId
InstanceStatusEvent & WithInstanceEventId(const char *value)
Definition: InstanceStatusEvent.h:82
Aws::EC2::Model::InstanceStatusEvent::SetCode
void SetCode(const EventCode &value)
Definition: InstanceStatusEvent.h:98