AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AvailabilityZone.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/AvailabilityZoneOptInStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/ec2/model/AvailabilityZoneState.h>
13#include <aws/ec2/model/AvailabilityZoneMessage.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace EC2
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_EC2_API AvailabilityZone();
40 AWS_EC2_API AvailabilityZone(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
54 inline const AvailabilityZoneOptInStatus& GetOptInStatus() const{ return m_optInStatus; }
55 inline bool OptInStatusHasBeenSet() const { return m_optInStatusHasBeenSet; }
56 inline void SetOptInStatus(const AvailabilityZoneOptInStatus& value) { m_optInStatusHasBeenSet = true; m_optInStatus = value; }
57 inline void SetOptInStatus(AvailabilityZoneOptInStatus&& value) { m_optInStatusHasBeenSet = true; m_optInStatus = std::move(value); }
58 inline AvailabilityZone& WithOptInStatus(const AvailabilityZoneOptInStatus& value) { SetOptInStatus(value); return *this;}
59 inline AvailabilityZone& WithOptInStatus(AvailabilityZoneOptInStatus&& value) { SetOptInStatus(std::move(value)); return *this;}
61
63
66 inline const Aws::Vector<AvailabilityZoneMessage>& GetMessages() const{ return m_messages; }
67 inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; }
68 inline void SetMessages(const Aws::Vector<AvailabilityZoneMessage>& value) { m_messagesHasBeenSet = true; m_messages = value; }
69 inline void SetMessages(Aws::Vector<AvailabilityZoneMessage>&& value) { m_messagesHasBeenSet = true; m_messages = std::move(value); }
71 inline AvailabilityZone& WithMessages(Aws::Vector<AvailabilityZoneMessage>&& value) { SetMessages(std::move(value)); return *this;}
72 inline AvailabilityZone& AddMessages(const AvailabilityZoneMessage& value) { m_messagesHasBeenSet = true; m_messages.push_back(value); return *this; }
73 inline AvailabilityZone& AddMessages(AvailabilityZoneMessage&& value) { m_messagesHasBeenSet = true; m_messages.push_back(std::move(value)); return *this; }
75
77
80 inline const Aws::String& GetRegionName() const{ return m_regionName; }
81 inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
82 inline void SetRegionName(const Aws::String& value) { m_regionNameHasBeenSet = true; m_regionName = value; }
83 inline void SetRegionName(Aws::String&& value) { m_regionNameHasBeenSet = true; m_regionName = std::move(value); }
84 inline void SetRegionName(const char* value) { m_regionNameHasBeenSet = true; m_regionName.assign(value); }
85 inline AvailabilityZone& WithRegionName(const Aws::String& value) { SetRegionName(value); return *this;}
86 inline AvailabilityZone& WithRegionName(Aws::String&& value) { SetRegionName(std::move(value)); return *this;}
87 inline AvailabilityZone& WithRegionName(const char* value) { SetRegionName(value); return *this;}
89
91
94 inline const Aws::String& GetZoneName() const{ return m_zoneName; }
95 inline bool ZoneNameHasBeenSet() const { return m_zoneNameHasBeenSet; }
96 inline void SetZoneName(const Aws::String& value) { m_zoneNameHasBeenSet = true; m_zoneName = value; }
97 inline void SetZoneName(Aws::String&& value) { m_zoneNameHasBeenSet = true; m_zoneName = std::move(value); }
98 inline void SetZoneName(const char* value) { m_zoneNameHasBeenSet = true; m_zoneName.assign(value); }
99 inline AvailabilityZone& WithZoneName(const Aws::String& value) { SetZoneName(value); return *this;}
100 inline AvailabilityZone& WithZoneName(Aws::String&& value) { SetZoneName(std::move(value)); return *this;}
101 inline AvailabilityZone& WithZoneName(const char* value) { SetZoneName(value); return *this;}
103
105
108 inline const Aws::String& GetZoneId() const{ return m_zoneId; }
109 inline bool ZoneIdHasBeenSet() const { return m_zoneIdHasBeenSet; }
110 inline void SetZoneId(const Aws::String& value) { m_zoneIdHasBeenSet = true; m_zoneId = value; }
111 inline void SetZoneId(Aws::String&& value) { m_zoneIdHasBeenSet = true; m_zoneId = std::move(value); }
112 inline void SetZoneId(const char* value) { m_zoneIdHasBeenSet = true; m_zoneId.assign(value); }
113 inline AvailabilityZone& WithZoneId(const Aws::String& value) { SetZoneId(value); return *this;}
114 inline AvailabilityZone& WithZoneId(Aws::String&& value) { SetZoneId(std::move(value)); return *this;}
115 inline AvailabilityZone& WithZoneId(const char* value) { SetZoneId(value); return *this;}
117
119
125 inline const Aws::String& GetGroupName() const{ return m_groupName; }
126 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
127 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
128 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
129 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
130 inline AvailabilityZone& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
131 inline AvailabilityZone& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
132 inline AvailabilityZone& WithGroupName(const char* value) { SetGroupName(value); return *this;}
134
136
139 inline const Aws::String& GetNetworkBorderGroup() const{ return m_networkBorderGroup; }
140 inline bool NetworkBorderGroupHasBeenSet() const { return m_networkBorderGroupHasBeenSet; }
141 inline void SetNetworkBorderGroup(const Aws::String& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = value; }
142 inline void SetNetworkBorderGroup(Aws::String&& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = std::move(value); }
143 inline void SetNetworkBorderGroup(const char* value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup.assign(value); }
144 inline AvailabilityZone& WithNetworkBorderGroup(const Aws::String& value) { SetNetworkBorderGroup(value); return *this;}
145 inline AvailabilityZone& WithNetworkBorderGroup(Aws::String&& value) { SetNetworkBorderGroup(std::move(value)); return *this;}
146 inline AvailabilityZone& WithNetworkBorderGroup(const char* value) { SetNetworkBorderGroup(value); return *this;}
148
150
154 inline const Aws::String& GetZoneType() const{ return m_zoneType; }
155 inline bool ZoneTypeHasBeenSet() const { return m_zoneTypeHasBeenSet; }
156 inline void SetZoneType(const Aws::String& value) { m_zoneTypeHasBeenSet = true; m_zoneType = value; }
157 inline void SetZoneType(Aws::String&& value) { m_zoneTypeHasBeenSet = true; m_zoneType = std::move(value); }
158 inline void SetZoneType(const char* value) { m_zoneTypeHasBeenSet = true; m_zoneType.assign(value); }
159 inline AvailabilityZone& WithZoneType(const Aws::String& value) { SetZoneType(value); return *this;}
160 inline AvailabilityZone& WithZoneType(Aws::String&& value) { SetZoneType(std::move(value)); return *this;}
161 inline AvailabilityZone& WithZoneType(const char* value) { SetZoneType(value); return *this;}
163
165
169 inline const Aws::String& GetParentZoneName() const{ return m_parentZoneName; }
170 inline bool ParentZoneNameHasBeenSet() const { return m_parentZoneNameHasBeenSet; }
171 inline void SetParentZoneName(const Aws::String& value) { m_parentZoneNameHasBeenSet = true; m_parentZoneName = value; }
172 inline void SetParentZoneName(Aws::String&& value) { m_parentZoneNameHasBeenSet = true; m_parentZoneName = std::move(value); }
173 inline void SetParentZoneName(const char* value) { m_parentZoneNameHasBeenSet = true; m_parentZoneName.assign(value); }
174 inline AvailabilityZone& WithParentZoneName(const Aws::String& value) { SetParentZoneName(value); return *this;}
175 inline AvailabilityZone& WithParentZoneName(Aws::String&& value) { SetParentZoneName(std::move(value)); return *this;}
176 inline AvailabilityZone& WithParentZoneName(const char* value) { SetParentZoneName(value); return *this;}
178
180
184 inline const Aws::String& GetParentZoneId() const{ return m_parentZoneId; }
185 inline bool ParentZoneIdHasBeenSet() const { return m_parentZoneIdHasBeenSet; }
186 inline void SetParentZoneId(const Aws::String& value) { m_parentZoneIdHasBeenSet = true; m_parentZoneId = value; }
187 inline void SetParentZoneId(Aws::String&& value) { m_parentZoneIdHasBeenSet = true; m_parentZoneId = std::move(value); }
188 inline void SetParentZoneId(const char* value) { m_parentZoneIdHasBeenSet = true; m_parentZoneId.assign(value); }
189 inline AvailabilityZone& WithParentZoneId(const Aws::String& value) { SetParentZoneId(value); return *this;}
190 inline AvailabilityZone& WithParentZoneId(Aws::String&& value) { SetParentZoneId(std::move(value)); return *this;}
191 inline AvailabilityZone& WithParentZoneId(const char* value) { SetParentZoneId(value); return *this;}
193
195
199 inline const AvailabilityZoneState& GetState() const{ return m_state; }
200 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
201 inline void SetState(const AvailabilityZoneState& value) { m_stateHasBeenSet = true; m_state = value; }
202 inline void SetState(AvailabilityZoneState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
203 inline AvailabilityZone& WithState(const AvailabilityZoneState& value) { SetState(value); return *this;}
204 inline AvailabilityZone& WithState(AvailabilityZoneState&& value) { SetState(std::move(value)); return *this;}
206 private:
207
208 AvailabilityZoneOptInStatus m_optInStatus;
209 bool m_optInStatusHasBeenSet = false;
210
212 bool m_messagesHasBeenSet = false;
213
214 Aws::String m_regionName;
215 bool m_regionNameHasBeenSet = false;
216
217 Aws::String m_zoneName;
218 bool m_zoneNameHasBeenSet = false;
219
220 Aws::String m_zoneId;
221 bool m_zoneIdHasBeenSet = false;
222
223 Aws::String m_groupName;
224 bool m_groupNameHasBeenSet = false;
225
226 Aws::String m_networkBorderGroup;
227 bool m_networkBorderGroupHasBeenSet = false;
228
229 Aws::String m_zoneType;
230 bool m_zoneTypeHasBeenSet = false;
231
232 Aws::String m_parentZoneName;
233 bool m_parentZoneNameHasBeenSet = false;
234
235 Aws::String m_parentZoneId;
236 bool m_parentZoneIdHasBeenSet = false;
237
238 AvailabilityZoneState m_state;
239 bool m_stateHasBeenSet = false;
240 };
241
242} // namespace Model
243} // namespace EC2
244} // namespace Aws
const Aws::String & GetZoneId() const
const Aws::String & GetParentZoneId() const
AvailabilityZone & WithZoneName(Aws::String &&value)
void SetNetworkBorderGroup(const char *value)
void SetParentZoneName(Aws::String &&value)
void SetParentZoneId(const char *value)
const Aws::Vector< AvailabilityZoneMessage > & GetMessages() const
void SetParentZoneName(const Aws::String &value)
void SetRegionName(const char *value)
const Aws::String & GetGroupName() const
const AvailabilityZoneOptInStatus & GetOptInStatus() const
AvailabilityZone & WithGroupName(const Aws::String &value)
AvailabilityZone & WithMessages(const Aws::Vector< AvailabilityZoneMessage > &value)
AvailabilityZone & WithNetworkBorderGroup(const Aws::String &value)
void SetGroupName(const char *value)
AvailabilityZone & WithRegionName(const char *value)
AvailabilityZone & WithParentZoneName(Aws::String &&value)
AvailabilityZone & WithGroupName(Aws::String &&value)
const Aws::String & GetZoneType() const
void SetZoneName(Aws::String &&value)
void SetParentZoneId(Aws::String &&value)
void SetZoneName(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AvailabilityZone & WithZoneType(const Aws::String &value)
void SetZoneName(const char *value)
void SetParentZoneName(const char *value)
void SetZoneId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AvailabilityZone & WithZoneType(const char *value)
AvailabilityZone & AddMessages(AvailabilityZoneMessage &&value)
AvailabilityZone & WithOptInStatus(AvailabilityZoneOptInStatus &&value)
const Aws::String & GetZoneName() const
void SetRegionName(const Aws::String &value)
AvailabilityZone & WithZoneId(const Aws::String &value)
void SetZoneId(Aws::String &&value)
void SetOptInStatus(const AvailabilityZoneOptInStatus &value)
AvailabilityZone & WithRegionName(const Aws::String &value)
void SetRegionName(Aws::String &&value)
AWS_EC2_API AvailabilityZone(const Aws::Utils::Xml::XmlNode &xmlNode)
const AvailabilityZoneState & GetState() const
void SetZoneId(const char *value)
void SetZoneType(const Aws::String &value)
const Aws::String & GetRegionName() const
AvailabilityZone & WithOptInStatus(const AvailabilityZoneOptInStatus &value)
AvailabilityZone & WithZoneName(const char *value)
void SetNetworkBorderGroup(const Aws::String &value)
AvailabilityZone & AddMessages(const AvailabilityZoneMessage &value)
void SetState(AvailabilityZoneState &&value)
void SetGroupName(const Aws::String &value)
AvailabilityZone & WithMessages(Aws::Vector< AvailabilityZoneMessage > &&value)
void SetNetworkBorderGroup(Aws::String &&value)
AvailabilityZone & WithParentZoneId(Aws::String &&value)
void SetZoneType(Aws::String &&value)
AvailabilityZone & WithZoneType(Aws::String &&value)
AvailabilityZone & WithParentZoneName(const char *value)
AvailabilityZone & WithParentZoneId(const char *value)
AvailabilityZone & WithZoneId(Aws::String &&value)
AvailabilityZone & WithState(const AvailabilityZoneState &value)
AvailabilityZone & WithNetworkBorderGroup(Aws::String &&value)
AvailabilityZone & WithRegionName(Aws::String &&value)
const Aws::String & GetParentZoneName() const
AvailabilityZone & WithParentZoneId(const Aws::String &value)
AvailabilityZone & WithZoneName(const Aws::String &value)
void SetOptInStatus(AvailabilityZoneOptInStatus &&value)
void SetZoneType(const char *value)
void SetMessages(const Aws::Vector< AvailabilityZoneMessage > &value)
void SetMessages(Aws::Vector< AvailabilityZoneMessage > &&value)
const Aws::String & GetNetworkBorderGroup() const
void SetParentZoneId(const Aws::String &value)
AvailabilityZone & WithParentZoneName(const Aws::String &value)
AvailabilityZone & WithNetworkBorderGroup(const char *value)
AvailabilityZone & WithGroupName(const char *value)
void SetState(const AvailabilityZoneState &value)
AvailabilityZone & WithState(AvailabilityZoneState &&value)
void SetGroupName(Aws::String &&value)
AvailabilityZone & WithZoneId(const char *value)
AWS_EC2_API AvailabilityZone & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
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