AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VolumeStatusItem.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/VolumeStatusInfo.h>
12#include <aws/ec2/model/VolumeStatusAction.h>
13#include <aws/ec2/model/VolumeStatusEvent.h>
14#include <aws/ec2/model/VolumeStatusAttachmentStatus.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace EC2
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_EC2_API VolumeStatusItem();
40 AWS_EC2_API VolumeStatusItem(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::Vector<VolumeStatusAction>& GetActions() const{ return m_actions; }
52 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
53 inline void SetActions(const Aws::Vector<VolumeStatusAction>& value) { m_actionsHasBeenSet = true; m_actions = value; }
54 inline void SetActions(Aws::Vector<VolumeStatusAction>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
55 inline VolumeStatusItem& WithActions(const Aws::Vector<VolumeStatusAction>& value) { SetActions(value); return *this;}
56 inline VolumeStatusItem& WithActions(Aws::Vector<VolumeStatusAction>&& value) { SetActions(std::move(value)); return *this;}
57 inline VolumeStatusItem& AddActions(const VolumeStatusAction& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
58 inline VolumeStatusItem& AddActions(VolumeStatusAction&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
60
62
65 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
66 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
67 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
68 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
69 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
70 inline VolumeStatusItem& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
71 inline VolumeStatusItem& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
72 inline VolumeStatusItem& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
74
76
79 inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; }
80 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
81 inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; }
82 inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); }
83 inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); }
84 inline VolumeStatusItem& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;}
85 inline VolumeStatusItem& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;}
86 inline VolumeStatusItem& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;}
88
90
93 inline const Aws::Vector<VolumeStatusEvent>& GetEvents() const{ return m_events; }
94 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
95 inline void SetEvents(const Aws::Vector<VolumeStatusEvent>& value) { m_eventsHasBeenSet = true; m_events = value; }
96 inline void SetEvents(Aws::Vector<VolumeStatusEvent>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
97 inline VolumeStatusItem& WithEvents(const Aws::Vector<VolumeStatusEvent>& value) { SetEvents(value); return *this;}
98 inline VolumeStatusItem& WithEvents(Aws::Vector<VolumeStatusEvent>&& value) { SetEvents(std::move(value)); return *this;}
99 inline VolumeStatusItem& AddEvents(const VolumeStatusEvent& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
100 inline VolumeStatusItem& AddEvents(VolumeStatusEvent&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
102
104
107 inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
108 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
109 inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
110 inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); }
111 inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
112 inline VolumeStatusItem& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
113 inline VolumeStatusItem& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
114 inline VolumeStatusItem& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
116
118
121 inline const VolumeStatusInfo& GetVolumeStatus() const{ return m_volumeStatus; }
122 inline bool VolumeStatusHasBeenSet() const { return m_volumeStatusHasBeenSet; }
123 inline void SetVolumeStatus(const VolumeStatusInfo& value) { m_volumeStatusHasBeenSet = true; m_volumeStatus = value; }
124 inline void SetVolumeStatus(VolumeStatusInfo&& value) { m_volumeStatusHasBeenSet = true; m_volumeStatus = std::move(value); }
125 inline VolumeStatusItem& WithVolumeStatus(const VolumeStatusInfo& value) { SetVolumeStatus(value); return *this;}
126 inline VolumeStatusItem& WithVolumeStatus(VolumeStatusInfo&& value) { SetVolumeStatus(std::move(value)); return *this;}
128
130
133 inline const Aws::Vector<VolumeStatusAttachmentStatus>& GetAttachmentStatuses() const{ return m_attachmentStatuses; }
134 inline bool AttachmentStatusesHasBeenSet() const { return m_attachmentStatusesHasBeenSet; }
135 inline void SetAttachmentStatuses(const Aws::Vector<VolumeStatusAttachmentStatus>& value) { m_attachmentStatusesHasBeenSet = true; m_attachmentStatuses = value; }
136 inline void SetAttachmentStatuses(Aws::Vector<VolumeStatusAttachmentStatus>&& value) { m_attachmentStatusesHasBeenSet = true; m_attachmentStatuses = std::move(value); }
139 inline VolumeStatusItem& AddAttachmentStatuses(const VolumeStatusAttachmentStatus& value) { m_attachmentStatusesHasBeenSet = true; m_attachmentStatuses.push_back(value); return *this; }
140 inline VolumeStatusItem& AddAttachmentStatuses(VolumeStatusAttachmentStatus&& value) { m_attachmentStatusesHasBeenSet = true; m_attachmentStatuses.push_back(std::move(value)); return *this; }
142 private:
143
145 bool m_actionsHasBeenSet = false;
146
147 Aws::String m_availabilityZone;
148 bool m_availabilityZoneHasBeenSet = false;
149
150 Aws::String m_outpostArn;
151 bool m_outpostArnHasBeenSet = false;
152
154 bool m_eventsHasBeenSet = false;
155
156 Aws::String m_volumeId;
157 bool m_volumeIdHasBeenSet = false;
158
159 VolumeStatusInfo m_volumeStatus;
160 bool m_volumeStatusHasBeenSet = false;
161
163 bool m_attachmentStatusesHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace EC2
168} // namespace Aws
VolumeStatusItem & AddAttachmentStatuses(const VolumeStatusAttachmentStatus &value)
void SetEvents(Aws::Vector< VolumeStatusEvent > &&value)
const Aws::Vector< VolumeStatusEvent > & GetEvents() const
VolumeStatusItem & WithVolumeId(Aws::String &&value)
void SetVolumeStatus(VolumeStatusInfo &&value)
VolumeStatusItem & WithAvailabilityZone(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetOutpostArn(Aws::String &&value)
void SetAttachmentStatuses(const Aws::Vector< VolumeStatusAttachmentStatus > &value)
VolumeStatusItem & WithOutpostArn(Aws::String &&value)
VolumeStatusItem & WithEvents(const Aws::Vector< VolumeStatusEvent > &value)
VolumeStatusItem & AddActions(const VolumeStatusAction &value)
VolumeStatusItem & WithVolumeId(const char *value)
VolumeStatusItem & WithOutpostArn(const char *value)
void SetOutpostArn(const char *value)
VolumeStatusItem & AddEvents(VolumeStatusEvent &&value)
void SetActions(const Aws::Vector< VolumeStatusAction > &value)
void SetAvailabilityZone(const char *value)
VolumeStatusItem & WithActions(const Aws::Vector< VolumeStatusAction > &value)
void SetVolumeId(Aws::String &&value)
AWS_EC2_API VolumeStatusItem(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetOutpostArn() const
void SetVolumeId(const char *value)
VolumeStatusItem & WithEvents(Aws::Vector< VolumeStatusEvent > &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
VolumeStatusItem & AddEvents(const VolumeStatusEvent &value)
void SetVolumeId(const Aws::String &value)
void SetOutpostArn(const Aws::String &value)
void SetActions(Aws::Vector< VolumeStatusAction > &&value)
VolumeStatusItem & WithVolumeStatus(const VolumeStatusInfo &value)
VolumeStatusItem & WithAvailabilityZone(const Aws::String &value)
VolumeStatusItem & WithAttachmentStatuses(Aws::Vector< VolumeStatusAttachmentStatus > &&value)
void SetAttachmentStatuses(Aws::Vector< VolumeStatusAttachmentStatus > &&value)
void SetAvailabilityZone(Aws::String &&value)
const Aws::String & GetAvailabilityZone() const
VolumeStatusItem & WithOutpostArn(const Aws::String &value)
VolumeStatusItem & AddAttachmentStatuses(VolumeStatusAttachmentStatus &&value)
void SetEvents(const Aws::Vector< VolumeStatusEvent > &value)
VolumeStatusItem & AddActions(VolumeStatusAction &&value)
VolumeStatusItem & WithAttachmentStatuses(const Aws::Vector< VolumeStatusAttachmentStatus > &value)
const Aws::Vector< VolumeStatusAttachmentStatus > & GetAttachmentStatuses() const
VolumeStatusItem & WithAvailabilityZone(const char *value)
const Aws::Vector< VolumeStatusAction > & GetActions() const
void SetAvailabilityZone(const Aws::String &value)
VolumeStatusItem & WithActions(Aws::Vector< VolumeStatusAction > &&value)
VolumeStatusItem & WithVolumeStatus(VolumeStatusInfo &&value)
void SetVolumeStatus(const VolumeStatusInfo &value)
const VolumeStatusInfo & GetVolumeStatus() const
AWS_EC2_API VolumeStatusItem & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VolumeStatusItem & WithVolumeId(const Aws::String &value)
const Aws::String & GetVolumeId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream