AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AwsEc2SubnetDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/Ipv6CidrBlockAssociation.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
31 public:
32 AWS_SECURITYHUB_API AwsEc2SubnetDetails() = default;
33 AWS_SECURITYHUB_API AwsEc2SubnetDetails(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline bool GetAssignIpv6AddressOnCreation() const { return m_assignIpv6AddressOnCreation; }
43 inline bool AssignIpv6AddressOnCreationHasBeenSet() const { return m_assignIpv6AddressOnCreationHasBeenSet; }
44 inline void SetAssignIpv6AddressOnCreation(bool value) {
45 m_assignIpv6AddressOnCreationHasBeenSet = true;
46 m_assignIpv6AddressOnCreation = value;
47 }
50 return *this;
51 }
53
55
58 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
59 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
60 template <typename AvailabilityZoneT = Aws::String>
61 void SetAvailabilityZone(AvailabilityZoneT&& value) {
62 m_availabilityZoneHasBeenSet = true;
63 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
64 }
65 template <typename AvailabilityZoneT = Aws::String>
66 AwsEc2SubnetDetails& WithAvailabilityZone(AvailabilityZoneT&& value) {
67 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
77 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
78 template <typename AvailabilityZoneIdT = Aws::String>
79 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
80 m_availabilityZoneIdHasBeenSet = true;
81 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
82 }
83 template <typename AvailabilityZoneIdT = Aws::String>
84 AwsEc2SubnetDetails& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
85 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
86 return *this;
87 }
89
91
95 inline int GetAvailableIpAddressCount() const { return m_availableIpAddressCount; }
96 inline bool AvailableIpAddressCountHasBeenSet() const { return m_availableIpAddressCountHasBeenSet; }
97 inline void SetAvailableIpAddressCount(int value) {
98 m_availableIpAddressCountHasBeenSet = true;
99 m_availableIpAddressCount = value;
100 }
103 return *this;
104 }
106
108
111 inline const Aws::String& GetCidrBlock() const { return m_cidrBlock; }
112 inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
113 template <typename CidrBlockT = Aws::String>
114 void SetCidrBlock(CidrBlockT&& value) {
115 m_cidrBlockHasBeenSet = true;
116 m_cidrBlock = std::forward<CidrBlockT>(value);
117 }
118 template <typename CidrBlockT = Aws::String>
119 AwsEc2SubnetDetails& WithCidrBlock(CidrBlockT&& value) {
120 SetCidrBlock(std::forward<CidrBlockT>(value));
121 return *this;
122 }
124
126
129 inline bool GetDefaultForAz() const { return m_defaultForAz; }
130 inline bool DefaultForAzHasBeenSet() const { return m_defaultForAzHasBeenSet; }
131 inline void SetDefaultForAz(bool value) {
132 m_defaultForAzHasBeenSet = true;
133 m_defaultForAz = value;
134 }
136 SetDefaultForAz(value);
137 return *this;
138 }
140
142
145 inline bool GetMapPublicIpOnLaunch() const { return m_mapPublicIpOnLaunch; }
146 inline bool MapPublicIpOnLaunchHasBeenSet() const { return m_mapPublicIpOnLaunchHasBeenSet; }
147 inline void SetMapPublicIpOnLaunch(bool value) {
148 m_mapPublicIpOnLaunchHasBeenSet = true;
149 m_mapPublicIpOnLaunch = value;
150 }
153 return *this;
154 }
156
158
161 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
162 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
163 template <typename OwnerIdT = Aws::String>
164 void SetOwnerId(OwnerIdT&& value) {
165 m_ownerIdHasBeenSet = true;
166 m_ownerId = std::forward<OwnerIdT>(value);
167 }
168 template <typename OwnerIdT = Aws::String>
169 AwsEc2SubnetDetails& WithOwnerId(OwnerIdT&& value) {
170 SetOwnerId(std::forward<OwnerIdT>(value));
171 return *this;
172 }
174
176
180 inline const Aws::String& GetState() const { return m_state; }
181 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
182 template <typename StateT = Aws::String>
183 void SetState(StateT&& value) {
184 m_stateHasBeenSet = true;
185 m_state = std::forward<StateT>(value);
186 }
187 template <typename StateT = Aws::String>
189 SetState(std::forward<StateT>(value));
190 return *this;
191 }
193
195
198 inline const Aws::String& GetSubnetArn() const { return m_subnetArn; }
199 inline bool SubnetArnHasBeenSet() const { return m_subnetArnHasBeenSet; }
200 template <typename SubnetArnT = Aws::String>
201 void SetSubnetArn(SubnetArnT&& value) {
202 m_subnetArnHasBeenSet = true;
203 m_subnetArn = std::forward<SubnetArnT>(value);
204 }
205 template <typename SubnetArnT = Aws::String>
206 AwsEc2SubnetDetails& WithSubnetArn(SubnetArnT&& value) {
207 SetSubnetArn(std::forward<SubnetArnT>(value));
208 return *this;
209 }
211
213
216 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
217 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
218 template <typename SubnetIdT = Aws::String>
219 void SetSubnetId(SubnetIdT&& value) {
220 m_subnetIdHasBeenSet = true;
221 m_subnetId = std::forward<SubnetIdT>(value);
222 }
223 template <typename SubnetIdT = Aws::String>
224 AwsEc2SubnetDetails& WithSubnetId(SubnetIdT&& value) {
225 SetSubnetId(std::forward<SubnetIdT>(value));
226 return *this;
227 }
229
231
234 inline const Aws::String& GetVpcId() const { return m_vpcId; }
235 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
236 template <typename VpcIdT = Aws::String>
237 void SetVpcId(VpcIdT&& value) {
238 m_vpcIdHasBeenSet = true;
239 m_vpcId = std::forward<VpcIdT>(value);
240 }
241 template <typename VpcIdT = Aws::String>
243 SetVpcId(std::forward<VpcIdT>(value));
244 return *this;
245 }
247
249
252 inline const Aws::Vector<Ipv6CidrBlockAssociation>& GetIpv6CidrBlockAssociationSet() const { return m_ipv6CidrBlockAssociationSet; }
253 inline bool Ipv6CidrBlockAssociationSetHasBeenSet() const { return m_ipv6CidrBlockAssociationSetHasBeenSet; }
254 template <typename Ipv6CidrBlockAssociationSetT = Aws::Vector<Ipv6CidrBlockAssociation>>
255 void SetIpv6CidrBlockAssociationSet(Ipv6CidrBlockAssociationSetT&& value) {
256 m_ipv6CidrBlockAssociationSetHasBeenSet = true;
257 m_ipv6CidrBlockAssociationSet = std::forward<Ipv6CidrBlockAssociationSetT>(value);
258 }
259 template <typename Ipv6CidrBlockAssociationSetT = Aws::Vector<Ipv6CidrBlockAssociation>>
260 AwsEc2SubnetDetails& WithIpv6CidrBlockAssociationSet(Ipv6CidrBlockAssociationSetT&& value) {
261 SetIpv6CidrBlockAssociationSet(std::forward<Ipv6CidrBlockAssociationSetT>(value));
262 return *this;
263 }
264 template <typename Ipv6CidrBlockAssociationSetT = Ipv6CidrBlockAssociation>
265 AwsEc2SubnetDetails& AddIpv6CidrBlockAssociationSet(Ipv6CidrBlockAssociationSetT&& value) {
266 m_ipv6CidrBlockAssociationSetHasBeenSet = true;
267 m_ipv6CidrBlockAssociationSet.emplace_back(std::forward<Ipv6CidrBlockAssociationSetT>(value));
268 return *this;
269 }
271 private:
272 bool m_assignIpv6AddressOnCreation{false};
273
274 Aws::String m_availabilityZone;
275
276 Aws::String m_availabilityZoneId;
277
278 int m_availableIpAddressCount{0};
279
280 Aws::String m_cidrBlock;
281
282 bool m_defaultForAz{false};
283
284 bool m_mapPublicIpOnLaunch{false};
285
286 Aws::String m_ownerId;
287
288 Aws::String m_state;
289
290 Aws::String m_subnetArn;
291
292 Aws::String m_subnetId;
293
294 Aws::String m_vpcId;
295
296 Aws::Vector<Ipv6CidrBlockAssociation> m_ipv6CidrBlockAssociationSet;
297 bool m_assignIpv6AddressOnCreationHasBeenSet = false;
298 bool m_availabilityZoneHasBeenSet = false;
299 bool m_availabilityZoneIdHasBeenSet = false;
300 bool m_availableIpAddressCountHasBeenSet = false;
301 bool m_cidrBlockHasBeenSet = false;
302 bool m_defaultForAzHasBeenSet = false;
303 bool m_mapPublicIpOnLaunchHasBeenSet = false;
304 bool m_ownerIdHasBeenSet = false;
305 bool m_stateHasBeenSet = false;
306 bool m_subnetArnHasBeenSet = false;
307 bool m_subnetIdHasBeenSet = false;
308 bool m_vpcIdHasBeenSet = false;
309 bool m_ipv6CidrBlockAssociationSetHasBeenSet = false;
310};
311
312} // namespace Model
313} // namespace SecurityHub
314} // namespace Aws
AwsEc2SubnetDetails & AddIpv6CidrBlockAssociationSet(Ipv6CidrBlockAssociationSetT &&value)
AwsEc2SubnetDetails & WithSubnetArn(SubnetArnT &&value)
AwsEc2SubnetDetails & WithOwnerId(OwnerIdT &&value)
AwsEc2SubnetDetails & WithSubnetId(SubnetIdT &&value)
void SetIpv6CidrBlockAssociationSet(Ipv6CidrBlockAssociationSetT &&value)
AwsEc2SubnetDetails & WithVpcId(VpcIdT &&value)
const Aws::Vector< Ipv6CidrBlockAssociation > & GetIpv6CidrBlockAssociationSet() const
AWS_SECURITYHUB_API AwsEc2SubnetDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEc2SubnetDetails & WithDefaultForAz(bool value)
AwsEc2SubnetDetails & WithAvailableIpAddressCount(int value)
AwsEc2SubnetDetails & WithAssignIpv6AddressOnCreation(bool value)
AwsEc2SubnetDetails & WithState(StateT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API AwsEc2SubnetDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AwsEc2SubnetDetails()=default
AwsEc2SubnetDetails & WithCidrBlock(CidrBlockT &&value)
AwsEc2SubnetDetails & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
AwsEc2SubnetDetails & WithAvailabilityZone(AvailabilityZoneT &&value)
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
void SetAvailabilityZone(AvailabilityZoneT &&value)
AwsEc2SubnetDetails & WithIpv6CidrBlockAssociationSet(Ipv6CidrBlockAssociationSetT &&value)
AwsEc2SubnetDetails & WithMapPublicIpOnLaunch(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue