AWS SDK for C++  1.9.132
AWS SDK for C++
VolumeStatusEvent.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetDescription() const{ return m_description; }
47 
51  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
52 
56  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
57 
61  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
62 
66  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
67 
71  inline VolumeStatusEvent& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
72 
76  inline VolumeStatusEvent& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
77 
81  inline VolumeStatusEvent& WithDescription(const char* value) { SetDescription(value); return *this;}
82 
83 
87  inline const Aws::String& GetEventId() const{ return m_eventId; }
88 
92  inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
93 
97  inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
98 
102  inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
103 
107  inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
108 
112  inline VolumeStatusEvent& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
113 
117  inline VolumeStatusEvent& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
118 
122  inline VolumeStatusEvent& WithEventId(const char* value) { SetEventId(value); return *this;}
123 
124 
128  inline const Aws::String& GetEventType() const{ return m_eventType; }
129 
133  inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
134 
138  inline void SetEventType(const Aws::String& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
139 
143  inline void SetEventType(Aws::String&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
144 
148  inline void SetEventType(const char* value) { m_eventTypeHasBeenSet = true; m_eventType.assign(value); }
149 
153  inline VolumeStatusEvent& WithEventType(const Aws::String& value) { SetEventType(value); return *this;}
154 
158  inline VolumeStatusEvent& WithEventType(Aws::String&& value) { SetEventType(std::move(value)); return *this;}
159 
163  inline VolumeStatusEvent& WithEventType(const char* value) { SetEventType(value); return *this;}
164 
165 
169  inline const Aws::Utils::DateTime& GetNotAfter() const{ return m_notAfter; }
170 
174  inline bool NotAfterHasBeenSet() const { return m_notAfterHasBeenSet; }
175 
179  inline void SetNotAfter(const Aws::Utils::DateTime& value) { m_notAfterHasBeenSet = true; m_notAfter = value; }
180 
184  inline void SetNotAfter(Aws::Utils::DateTime&& value) { m_notAfterHasBeenSet = true; m_notAfter = std::move(value); }
185 
189  inline VolumeStatusEvent& WithNotAfter(const Aws::Utils::DateTime& value) { SetNotAfter(value); return *this;}
190 
194  inline VolumeStatusEvent& WithNotAfter(Aws::Utils::DateTime&& value) { SetNotAfter(std::move(value)); return *this;}
195 
196 
200  inline const Aws::Utils::DateTime& GetNotBefore() const{ return m_notBefore; }
201 
205  inline bool NotBeforeHasBeenSet() const { return m_notBeforeHasBeenSet; }
206 
210  inline void SetNotBefore(const Aws::Utils::DateTime& value) { m_notBeforeHasBeenSet = true; m_notBefore = value; }
211 
215  inline void SetNotBefore(Aws::Utils::DateTime&& value) { m_notBeforeHasBeenSet = true; m_notBefore = std::move(value); }
216 
220  inline VolumeStatusEvent& WithNotBefore(const Aws::Utils::DateTime& value) { SetNotBefore(value); return *this;}
221 
225  inline VolumeStatusEvent& WithNotBefore(Aws::Utils::DateTime&& value) { SetNotBefore(std::move(value)); return *this;}
226 
227 
231  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
232 
236  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
237 
241  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
242 
246  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
247 
251  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
252 
256  inline VolumeStatusEvent& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
257 
261  inline VolumeStatusEvent& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
262 
266  inline VolumeStatusEvent& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
267 
268  private:
269 
270  Aws::String m_description;
271  bool m_descriptionHasBeenSet;
272 
273  Aws::String m_eventId;
274  bool m_eventIdHasBeenSet;
275 
276  Aws::String m_eventType;
277  bool m_eventTypeHasBeenSet;
278 
279  Aws::Utils::DateTime m_notAfter;
280  bool m_notAfterHasBeenSet;
281 
282  Aws::Utils::DateTime m_notBefore;
283  bool m_notBeforeHasBeenSet;
284 
285  Aws::String m_instanceId;
286  bool m_instanceIdHasBeenSet;
287  };
288 
289 } // namespace Model
290 } // namespace EC2
291 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::VolumeStatusEvent::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::VolumeStatusEvent::SetNotAfter
void SetNotAfter(const Aws::Utils::DateTime &value)
Definition: VolumeStatusEvent.h:179
Aws::EC2::Model::VolumeStatusEvent::GetDescription
const Aws::String & GetDescription() const
Definition: VolumeStatusEvent.h:46
Aws::EC2::Model::VolumeStatusEvent::WithNotAfter
VolumeStatusEvent & WithNotAfter(Aws::Utils::DateTime &&value)
Definition: VolumeStatusEvent.h:194
Aws::EC2::Model::VolumeStatusEvent::SetDescription
void SetDescription(Aws::String &&value)
Definition: VolumeStatusEvent.h:61
Aws::EC2::Model::VolumeStatusEvent::VolumeStatusEvent
VolumeStatusEvent()
Aws::EC2::Model::VolumeStatusEvent::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: VolumeStatusEvent.h:246
Aws::EC2::Model::VolumeStatusEvent::GetEventId
const Aws::String & GetEventId() const
Definition: VolumeStatusEvent.h:87
DateTime.h
Aws::EC2::Model::VolumeStatusEvent::WithNotBefore
VolumeStatusEvent & WithNotBefore(const Aws::Utils::DateTime &value)
Definition: VolumeStatusEvent.h:220
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::VolumeStatusEvent::WithDescription
VolumeStatusEvent & WithDescription(const Aws::String &value)
Definition: VolumeStatusEvent.h:71
Aws::EC2::Model::VolumeStatusEvent::SetEventType
void SetEventType(Aws::String &&value)
Definition: VolumeStatusEvent.h:143
Aws::EC2::Model::VolumeStatusEvent::SetNotBefore
void SetNotBefore(const Aws::Utils::DateTime &value)
Definition: VolumeStatusEvent.h:210
AWSStreamFwd.h
Aws::EC2::Model::VolumeStatusEvent
Definition: VolumeStatusEvent.h:33
Aws::EC2::Model::VolumeStatusEvent::SetDescription
void SetDescription(const char *value)
Definition: VolumeStatusEvent.h:66
Aws::EC2::Model::VolumeStatusEvent::GetNotBefore
const Aws::Utils::DateTime & GetNotBefore() const
Definition: VolumeStatusEvent.h:200
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::VolumeStatusEvent::WithEventType
VolumeStatusEvent & WithEventType(const Aws::String &value)
Definition: VolumeStatusEvent.h:153
Aws::EC2::Model::VolumeStatusEvent::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: VolumeStatusEvent.h:231
Aws::EC2::Model::VolumeStatusEvent::WithInstanceId
VolumeStatusEvent & WithInstanceId(const char *value)
Definition: VolumeStatusEvent.h:266
Aws::EC2::Model::VolumeStatusEvent::SetEventId
void SetEventId(Aws::String &&value)
Definition: VolumeStatusEvent.h:102
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::VolumeStatusEvent::WithNotBefore
VolumeStatusEvent & WithNotBefore(Aws::Utils::DateTime &&value)
Definition: VolumeStatusEvent.h:225
Aws::EC2::Model::VolumeStatusEvent::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: VolumeStatusEvent.h:51
Aws::EC2::Model::VolumeStatusEvent::WithInstanceId
VolumeStatusEvent & WithInstanceId(const Aws::String &value)
Definition: VolumeStatusEvent.h:256
Aws::EC2::Model::VolumeStatusEvent::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::VolumeStatusEvent::WithNotAfter
VolumeStatusEvent & WithNotAfter(const Aws::Utils::DateTime &value)
Definition: VolumeStatusEvent.h:189
Aws::EC2::Model::VolumeStatusEvent::VolumeStatusEvent
VolumeStatusEvent(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::VolumeStatusEvent::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: VolumeStatusEvent.h:236
Aws::EC2::Model::VolumeStatusEvent::SetNotAfter
void SetNotAfter(Aws::Utils::DateTime &&value)
Definition: VolumeStatusEvent.h:184
Aws::EC2::Model::VolumeStatusEvent::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: VolumeStatusEvent.h:241
Aws::EC2::Model::VolumeStatusEvent::GetEventType
const Aws::String & GetEventType() const
Definition: VolumeStatusEvent.h:128
Aws::EC2::Model::VolumeStatusEvent::NotAfterHasBeenSet
bool NotAfterHasBeenSet() const
Definition: VolumeStatusEvent.h:174
Aws::EC2::Model::VolumeStatusEvent::SetNotBefore
void SetNotBefore(Aws::Utils::DateTime &&value)
Definition: VolumeStatusEvent.h:215
AWSString.h
Aws::EC2::Model::VolumeStatusEvent::SetEventId
void SetEventId(const char *value)
Definition: VolumeStatusEvent.h:107
Aws::EC2::Model::VolumeStatusEvent::WithDescription
VolumeStatusEvent & WithDescription(const char *value)
Definition: VolumeStatusEvent.h:81
Aws::EC2::Model::VolumeStatusEvent::WithEventType
VolumeStatusEvent & WithEventType(const char *value)
Definition: VolumeStatusEvent.h:163
Aws::EC2::Model::VolumeStatusEvent::SetInstanceId
void SetInstanceId(const char *value)
Definition: VolumeStatusEvent.h:251
Aws::EC2::Model::VolumeStatusEvent::EventIdHasBeenSet
bool EventIdHasBeenSet() const
Definition: VolumeStatusEvent.h:92
Aws::EC2::Model::VolumeStatusEvent::WithEventId
VolumeStatusEvent & WithEventId(const char *value)
Definition: VolumeStatusEvent.h:122
Aws::EC2::Model::VolumeStatusEvent::SetEventType
void SetEventType(const Aws::String &value)
Definition: VolumeStatusEvent.h:138
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::VolumeStatusEvent::SetEventId
void SetEventId(const Aws::String &value)
Definition: VolumeStatusEvent.h:97
Aws::EC2::Model::VolumeStatusEvent::WithEventType
VolumeStatusEvent & WithEventType(Aws::String &&value)
Definition: VolumeStatusEvent.h:158
Aws::EC2::Model::VolumeStatusEvent::WithDescription
VolumeStatusEvent & WithDescription(Aws::String &&value)
Definition: VolumeStatusEvent.h:76
Aws::EC2::Model::VolumeStatusEvent::NotBeforeHasBeenSet
bool NotBeforeHasBeenSet() const
Definition: VolumeStatusEvent.h:205
Aws::EC2::Model::VolumeStatusEvent::WithInstanceId
VolumeStatusEvent & WithInstanceId(Aws::String &&value)
Definition: VolumeStatusEvent.h:261
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::VolumeStatusEvent::operator=
VolumeStatusEvent & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::VolumeStatusEvent::GetNotAfter
const Aws::Utils::DateTime & GetNotAfter() const
Definition: VolumeStatusEvent.h:169
Aws::EC2::Model::VolumeStatusEvent::WithEventId
VolumeStatusEvent & WithEventId(Aws::String &&value)
Definition: VolumeStatusEvent.h:117
Aws::EC2::Model::VolumeStatusEvent::SetDescription
void SetDescription(const Aws::String &value)
Definition: VolumeStatusEvent.h:56
Aws::EC2::Model::VolumeStatusEvent::SetEventType
void SetEventType(const char *value)
Definition: VolumeStatusEvent.h:148
EC2_EXPORTS.h
Aws::EC2::Model::VolumeStatusEvent::WithEventId
VolumeStatusEvent & WithEventId(const Aws::String &value)
Definition: VolumeStatusEvent.h:112
Aws::EC2::Model::VolumeStatusEvent::EventTypeHasBeenSet
bool EventTypeHasBeenSet() const
Definition: VolumeStatusEvent.h:133