AWS SDK for C++  1.9.132
AWS SDK for C++
VolumeStatusItem.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlNode;
24 } // namespace Xml
25 } // namespace Utils
26 namespace EC2
27 {
28 namespace Model
29 {
30 
37  {
38  public:
42 
43  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44  void OutputToStream(Aws::OStream& oStream, const char* location) const;
45 
46 
50  inline const Aws::Vector<VolumeStatusAction>& GetActions() const{ return m_actions; }
51 
55  inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
56 
60  inline void SetActions(const Aws::Vector<VolumeStatusAction>& value) { m_actionsHasBeenSet = true; m_actions = value; }
61 
65  inline void SetActions(Aws::Vector<VolumeStatusAction>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
66 
70  inline VolumeStatusItem& WithActions(const Aws::Vector<VolumeStatusAction>& value) { SetActions(value); return *this;}
71 
75  inline VolumeStatusItem& WithActions(Aws::Vector<VolumeStatusAction>&& value) { SetActions(std::move(value)); return *this;}
76 
80  inline VolumeStatusItem& AddActions(const VolumeStatusAction& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
81 
85  inline VolumeStatusItem& AddActions(VolumeStatusAction&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
86 
87 
91  inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
92 
96  inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
97 
101  inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
102 
106  inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
107 
111  inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
112 
116  inline VolumeStatusItem& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
117 
121  inline VolumeStatusItem& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
122 
126  inline VolumeStatusItem& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
127 
128 
132  inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; }
133 
137  inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
138 
142  inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; }
143 
147  inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); }
148 
152  inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); }
153 
157  inline VolumeStatusItem& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;}
158 
162  inline VolumeStatusItem& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;}
163 
167  inline VolumeStatusItem& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;}
168 
169 
173  inline const Aws::Vector<VolumeStatusEvent>& GetEvents() const{ return m_events; }
174 
178  inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
179 
183  inline void SetEvents(const Aws::Vector<VolumeStatusEvent>& value) { m_eventsHasBeenSet = true; m_events = value; }
184 
188  inline void SetEvents(Aws::Vector<VolumeStatusEvent>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
189 
193  inline VolumeStatusItem& WithEvents(const Aws::Vector<VolumeStatusEvent>& value) { SetEvents(value); return *this;}
194 
198  inline VolumeStatusItem& WithEvents(Aws::Vector<VolumeStatusEvent>&& value) { SetEvents(std::move(value)); return *this;}
199 
203  inline VolumeStatusItem& AddEvents(const VolumeStatusEvent& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
204 
208  inline VolumeStatusItem& AddEvents(VolumeStatusEvent&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
209 
210 
214  inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
215 
219  inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
220 
224  inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
225 
229  inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); }
230 
234  inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
235 
239  inline VolumeStatusItem& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
240 
244  inline VolumeStatusItem& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
245 
249  inline VolumeStatusItem& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
250 
251 
255  inline const VolumeStatusInfo& GetVolumeStatus() const{ return m_volumeStatus; }
256 
260  inline bool VolumeStatusHasBeenSet() const { return m_volumeStatusHasBeenSet; }
261 
265  inline void SetVolumeStatus(const VolumeStatusInfo& value) { m_volumeStatusHasBeenSet = true; m_volumeStatus = value; }
266 
270  inline void SetVolumeStatus(VolumeStatusInfo&& value) { m_volumeStatusHasBeenSet = true; m_volumeStatus = std::move(value); }
271 
275  inline VolumeStatusItem& WithVolumeStatus(const VolumeStatusInfo& value) { SetVolumeStatus(value); return *this;}
276 
280  inline VolumeStatusItem& WithVolumeStatus(VolumeStatusInfo&& value) { SetVolumeStatus(std::move(value)); return *this;}
281 
282 
286  inline const Aws::Vector<VolumeStatusAttachmentStatus>& GetAttachmentStatuses() const{ return m_attachmentStatuses; }
287 
291  inline bool AttachmentStatusesHasBeenSet() const { return m_attachmentStatusesHasBeenSet; }
292 
296  inline void SetAttachmentStatuses(const Aws::Vector<VolumeStatusAttachmentStatus>& value) { m_attachmentStatusesHasBeenSet = true; m_attachmentStatuses = value; }
297 
301  inline void SetAttachmentStatuses(Aws::Vector<VolumeStatusAttachmentStatus>&& value) { m_attachmentStatusesHasBeenSet = true; m_attachmentStatuses = std::move(value); }
302 
306  inline VolumeStatusItem& WithAttachmentStatuses(const Aws::Vector<VolumeStatusAttachmentStatus>& value) { SetAttachmentStatuses(value); return *this;}
307 
311  inline VolumeStatusItem& WithAttachmentStatuses(Aws::Vector<VolumeStatusAttachmentStatus>&& value) { SetAttachmentStatuses(std::move(value)); return *this;}
312 
316  inline VolumeStatusItem& AddAttachmentStatuses(const VolumeStatusAttachmentStatus& value) { m_attachmentStatusesHasBeenSet = true; m_attachmentStatuses.push_back(value); return *this; }
317 
321  inline VolumeStatusItem& AddAttachmentStatuses(VolumeStatusAttachmentStatus&& value) { m_attachmentStatusesHasBeenSet = true; m_attachmentStatuses.push_back(std::move(value)); return *this; }
322 
323  private:
324 
326  bool m_actionsHasBeenSet;
327 
328  Aws::String m_availabilityZone;
329  bool m_availabilityZoneHasBeenSet;
330 
331  Aws::String m_outpostArn;
332  bool m_outpostArnHasBeenSet;
333 
335  bool m_eventsHasBeenSet;
336 
337  Aws::String m_volumeId;
338  bool m_volumeIdHasBeenSet;
339 
340  VolumeStatusInfo m_volumeStatus;
341  bool m_volumeStatusHasBeenSet;
342 
343  Aws::Vector<VolumeStatusAttachmentStatus> m_attachmentStatuses;
344  bool m_attachmentStatusesHasBeenSet;
345  };
346 
347 } // namespace Model
348 } // namespace EC2
349 } // namespace Aws
VolumeStatusAction.h
Aws::EC2::Model::VolumeStatusItem::SetAttachmentStatuses
void SetAttachmentStatuses(const Aws::Vector< VolumeStatusAttachmentStatus > &value)
Definition: VolumeStatusItem.h:296
Aws::EC2::Model::VolumeStatusItem::AttachmentStatusesHasBeenSet
bool AttachmentStatusesHasBeenSet() const
Definition: VolumeStatusItem.h:291
Aws::EC2::Model::VolumeStatusItem::WithAvailabilityZone
VolumeStatusItem & WithAvailabilityZone(const char *value)
Definition: VolumeStatusItem.h:126
Aws::EC2::Model::VolumeStatusItem::AddEvents
VolumeStatusItem & AddEvents(VolumeStatusEvent &&value)
Definition: VolumeStatusItem.h:208
Aws::EC2::Model::VolumeStatusItem::VolumeStatusItem
VolumeStatusItem(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::VolumeStatusItem::WithAttachmentStatuses
VolumeStatusItem & WithAttachmentStatuses(const Aws::Vector< VolumeStatusAttachmentStatus > &value)
Definition: VolumeStatusItem.h:306
Aws::EC2::Model::VolumeStatusItem::VolumeIdHasBeenSet
bool VolumeIdHasBeenSet() const
Definition: VolumeStatusItem.h:219
Aws::EC2::Model::VolumeStatusItem::WithOutpostArn
VolumeStatusItem & WithOutpostArn(const char *value)
Definition: VolumeStatusItem.h:167
Aws::EC2::Model::VolumeStatusItem::WithEvents
VolumeStatusItem & WithEvents(Aws::Vector< VolumeStatusEvent > &&value)
Definition: VolumeStatusItem.h:198
VolumeStatusInfo.h
Aws::EC2::Model::VolumeStatusItem::SetActions
void SetActions(const Aws::Vector< VolumeStatusAction > &value)
Definition: VolumeStatusItem.h:60
Aws::EC2::Model::VolumeStatusItem::AddActions
VolumeStatusItem & AddActions(const VolumeStatusAction &value)
Definition: VolumeStatusItem.h:80
Aws::EC2::Model::VolumeStatusItem::WithActions
VolumeStatusItem & WithActions(const Aws::Vector< VolumeStatusAction > &value)
Definition: VolumeStatusItem.h:70
Aws::EC2::Model::VolumeStatusItem::SetEvents
void SetEvents(Aws::Vector< VolumeStatusEvent > &&value)
Definition: VolumeStatusItem.h:188
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::VolumeStatusItem::WithVolumeId
VolumeStatusItem & WithVolumeId(Aws::String &&value)
Definition: VolumeStatusItem.h:244
Aws::EC2::Model::VolumeStatusAttachmentStatus
Definition: VolumeStatusAttachmentStatus.h:33
Aws::EC2::Model::VolumeStatusItem::VolumeStatusItem
VolumeStatusItem()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::EC2::Model::VolumeStatusEvent
Definition: VolumeStatusEvent.h:33
Aws::EC2::Model::VolumeStatusItem::VolumeStatusHasBeenSet
bool VolumeStatusHasBeenSet() const
Definition: VolumeStatusItem.h:260
Aws::EC2::Model::VolumeStatusItem::WithVolumeId
VolumeStatusItem & WithVolumeId(const char *value)
Definition: VolumeStatusItem.h:249
Aws::EC2::Model::VolumeStatusItem::AvailabilityZoneHasBeenSet
bool AvailabilityZoneHasBeenSet() const
Definition: VolumeStatusItem.h:96
AWSVector.h
Aws::EC2::Model::VolumeStatusItem::AddAttachmentStatuses
VolumeStatusItem & AddAttachmentStatuses(VolumeStatusAttachmentStatus &&value)
Definition: VolumeStatusItem.h:321
Aws::EC2::Model::VolumeStatusItem::AddEvents
VolumeStatusItem & AddEvents(const VolumeStatusEvent &value)
Definition: VolumeStatusItem.h:203
Aws::EC2::Model::VolumeStatusItem::GetVolumeId
const Aws::String & GetVolumeId() const
Definition: VolumeStatusItem.h:214
Aws::EC2::Model::VolumeStatusAction
Definition: VolumeStatusAction.h:32
Aws::EC2::Model::VolumeStatusItem::WithAvailabilityZone
VolumeStatusItem & WithAvailabilityZone(Aws::String &&value)
Definition: VolumeStatusItem.h:121
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::VolumeStatusItem::OutpostArnHasBeenSet
bool OutpostArnHasBeenSet() const
Definition: VolumeStatusItem.h:137
Aws::EC2::Model::VolumeStatusItem::GetActions
const Aws::Vector< VolumeStatusAction > & GetActions() const
Definition: VolumeStatusItem.h:50
Aws::EC2::Model::VolumeStatusItem::SetAttachmentStatuses
void SetAttachmentStatuses(Aws::Vector< VolumeStatusAttachmentStatus > &&value)
Definition: VolumeStatusItem.h:301
Aws::EC2::Model::VolumeStatusItem::GetEvents
const Aws::Vector< VolumeStatusEvent > & GetEvents() const
Definition: VolumeStatusItem.h:173
Aws::EC2::Model::VolumeStatusItem::SetVolumeStatus
void SetVolumeStatus(const VolumeStatusInfo &value)
Definition: VolumeStatusItem.h:265
Aws::EC2::Model::VolumeStatusItem::SetOutpostArn
void SetOutpostArn(const char *value)
Definition: VolumeStatusItem.h:152
Aws::EC2::Model::VolumeStatusItem::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::VolumeStatusItem::ActionsHasBeenSet
bool ActionsHasBeenSet() const
Definition: VolumeStatusItem.h:55
Aws::EC2::Model::VolumeStatusItem::SetVolumeId
void SetVolumeId(Aws::String &&value)
Definition: VolumeStatusItem.h:229
Aws::EC2::Model::VolumeStatusItem::WithAvailabilityZone
VolumeStatusItem & WithAvailabilityZone(const Aws::String &value)
Definition: VolumeStatusItem.h:116
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::VolumeStatusItem::operator=
VolumeStatusItem & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::VolumeStatusItem::SetOutpostArn
void SetOutpostArn(const Aws::String &value)
Definition: VolumeStatusItem.h:142
VolumeStatusAttachmentStatus.h
Aws::EC2::Model::VolumeStatusItem::GetAvailabilityZone
const Aws::String & GetAvailabilityZone() const
Definition: VolumeStatusItem.h:91
Aws::EC2::Model::VolumeStatusItem::WithVolumeStatus
VolumeStatusItem & WithVolumeStatus(const VolumeStatusInfo &value)
Definition: VolumeStatusItem.h:275
Aws::EC2::Model::VolumeStatusItem
Definition: VolumeStatusItem.h:37
Aws::EC2::Model::VolumeStatusInfo
Definition: VolumeStatusInfo.h:34
Aws::EC2::Model::VolumeStatusItem::SetAvailabilityZone
void SetAvailabilityZone(const char *value)
Definition: VolumeStatusItem.h:111
AWSString.h
Aws::EC2::Model::VolumeStatusItem::WithAttachmentStatuses
VolumeStatusItem & WithAttachmentStatuses(Aws::Vector< VolumeStatusAttachmentStatus > &&value)
Definition: VolumeStatusItem.h:311
Aws::EC2::Model::VolumeStatusItem::SetEvents
void SetEvents(const Aws::Vector< VolumeStatusEvent > &value)
Definition: VolumeStatusItem.h:183
Aws::EC2::Model::VolumeStatusItem::SetOutpostArn
void SetOutpostArn(Aws::String &&value)
Definition: VolumeStatusItem.h:147
Aws::EC2::Model::VolumeStatusItem::EventsHasBeenSet
bool EventsHasBeenSet() const
Definition: VolumeStatusItem.h:178
Aws::EC2::Model::VolumeStatusItem::WithEvents
VolumeStatusItem & WithEvents(const Aws::Vector< VolumeStatusEvent > &value)
Definition: VolumeStatusItem.h:193
Aws::EC2::Model::VolumeStatusItem::WithOutpostArn
VolumeStatusItem & WithOutpostArn(Aws::String &&value)
Definition: VolumeStatusItem.h:162
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::VolumeStatusItem::SetVolumeId
void SetVolumeId(const Aws::String &value)
Definition: VolumeStatusItem.h:224
Aws::EC2::Model::VolumeStatusItem::WithActions
VolumeStatusItem & WithActions(Aws::Vector< VolumeStatusAction > &&value)
Definition: VolumeStatusItem.h:75
Aws::EC2::Model::VolumeStatusItem::SetAvailabilityZone
void SetAvailabilityZone(Aws::String &&value)
Definition: VolumeStatusItem.h:106
Aws::EC2::Model::VolumeStatusItem::AddActions
VolumeStatusItem & AddActions(VolumeStatusAction &&value)
Definition: VolumeStatusItem.h:85
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::VolumeStatusItem::GetVolumeStatus
const VolumeStatusInfo & GetVolumeStatus() const
Definition: VolumeStatusItem.h:255
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::VolumeStatusItem::SetActions
void SetActions(Aws::Vector< VolumeStatusAction > &&value)
Definition: VolumeStatusItem.h:65
Aws::EC2::Model::VolumeStatusItem::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::VolumeStatusItem::AddAttachmentStatuses
VolumeStatusItem & AddAttachmentStatuses(const VolumeStatusAttachmentStatus &value)
Definition: VolumeStatusItem.h:316
Aws::EC2::Model::VolumeStatusItem::GetOutpostArn
const Aws::String & GetOutpostArn() const
Definition: VolumeStatusItem.h:132
Aws::EC2::Model::VolumeStatusItem::GetAttachmentStatuses
const Aws::Vector< VolumeStatusAttachmentStatus > & GetAttachmentStatuses() const
Definition: VolumeStatusItem.h:286
Aws::EC2::Model::VolumeStatusItem::WithVolumeStatus
VolumeStatusItem & WithVolumeStatus(VolumeStatusInfo &&value)
Definition: VolumeStatusItem.h:280
Aws::EC2::Model::VolumeStatusItem::WithOutpostArn
VolumeStatusItem & WithOutpostArn(const Aws::String &value)
Definition: VolumeStatusItem.h:157
EC2_EXPORTS.h
Aws::EC2::Model::VolumeStatusItem::SetVolumeId
void SetVolumeId(const char *value)
Definition: VolumeStatusItem.h:234
VolumeStatusEvent.h
Aws::EC2::Model::VolumeStatusItem::SetVolumeStatus
void SetVolumeStatus(VolumeStatusInfo &&value)
Definition: VolumeStatusItem.h:270
Aws::EC2::Model::VolumeStatusItem::WithVolumeId
VolumeStatusItem & WithVolumeId(const Aws::String &value)
Definition: VolumeStatusItem.h:239
Aws::EC2::Model::VolumeStatusItem::SetAvailabilityZone
void SetAvailabilityZone(const Aws::String &value)
Definition: VolumeStatusItem.h:101