AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsEc2SubnetDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/Ipv6CidrBlockAssociation.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SECURITYHUB_API AwsEc2SubnetDetails();
38 AWS_SECURITYHUB_API AwsEc2SubnetDetails(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline bool GetAssignIpv6AddressOnCreation() const{ return m_assignIpv6AddressOnCreation; }
49 inline bool AssignIpv6AddressOnCreationHasBeenSet() const { return m_assignIpv6AddressOnCreationHasBeenSet; }
50 inline void SetAssignIpv6AddressOnCreation(bool value) { m_assignIpv6AddressOnCreationHasBeenSet = true; m_assignIpv6AddressOnCreation = value; }
53
55
58 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
59 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
60 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
61 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
62 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
63 inline AwsEc2SubnetDetails& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
64 inline AwsEc2SubnetDetails& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
65 inline AwsEc2SubnetDetails& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
67
69
72 inline const Aws::String& GetAvailabilityZoneId() const{ return m_availabilityZoneId; }
73 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
74 inline void SetAvailabilityZoneId(const Aws::String& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = value; }
75 inline void SetAvailabilityZoneId(Aws::String&& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::move(value); }
76 inline void SetAvailabilityZoneId(const char* value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId.assign(value); }
77 inline AwsEc2SubnetDetails& WithAvailabilityZoneId(const Aws::String& value) { SetAvailabilityZoneId(value); return *this;}
78 inline AwsEc2SubnetDetails& WithAvailabilityZoneId(Aws::String&& value) { SetAvailabilityZoneId(std::move(value)); return *this;}
79 inline AwsEc2SubnetDetails& WithAvailabilityZoneId(const char* value) { SetAvailabilityZoneId(value); return *this;}
81
83
87 inline int GetAvailableIpAddressCount() const{ return m_availableIpAddressCount; }
88 inline bool AvailableIpAddressCountHasBeenSet() const { return m_availableIpAddressCountHasBeenSet; }
89 inline void SetAvailableIpAddressCount(int value) { m_availableIpAddressCountHasBeenSet = true; m_availableIpAddressCount = value; }
92
94
97 inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; }
98 inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
99 inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
100 inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); }
101 inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
102 inline AwsEc2SubnetDetails& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
103 inline AwsEc2SubnetDetails& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;}
104 inline AwsEc2SubnetDetails& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
106
108
111 inline bool GetDefaultForAz() const{ return m_defaultForAz; }
112 inline bool DefaultForAzHasBeenSet() const { return m_defaultForAzHasBeenSet; }
113 inline void SetDefaultForAz(bool value) { m_defaultForAzHasBeenSet = true; m_defaultForAz = value; }
114 inline AwsEc2SubnetDetails& WithDefaultForAz(bool value) { SetDefaultForAz(value); return *this;}
116
118
121 inline bool GetMapPublicIpOnLaunch() const{ return m_mapPublicIpOnLaunch; }
122 inline bool MapPublicIpOnLaunchHasBeenSet() const { return m_mapPublicIpOnLaunchHasBeenSet; }
123 inline void SetMapPublicIpOnLaunch(bool value) { m_mapPublicIpOnLaunchHasBeenSet = true; m_mapPublicIpOnLaunch = value; }
124 inline AwsEc2SubnetDetails& WithMapPublicIpOnLaunch(bool value) { SetMapPublicIpOnLaunch(value); return *this;}
126
128
131 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
132 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
133 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
134 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
135 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
136 inline AwsEc2SubnetDetails& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
137 inline AwsEc2SubnetDetails& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
138 inline AwsEc2SubnetDetails& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
140
142
146 inline const Aws::String& GetState() const{ return m_state; }
147 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
148 inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
149 inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
150 inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
151 inline AwsEc2SubnetDetails& WithState(const Aws::String& value) { SetState(value); return *this;}
152 inline AwsEc2SubnetDetails& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
153 inline AwsEc2SubnetDetails& WithState(const char* value) { SetState(value); return *this;}
155
157
160 inline const Aws::String& GetSubnetArn() const{ return m_subnetArn; }
161 inline bool SubnetArnHasBeenSet() const { return m_subnetArnHasBeenSet; }
162 inline void SetSubnetArn(const Aws::String& value) { m_subnetArnHasBeenSet = true; m_subnetArn = value; }
163 inline void SetSubnetArn(Aws::String&& value) { m_subnetArnHasBeenSet = true; m_subnetArn = std::move(value); }
164 inline void SetSubnetArn(const char* value) { m_subnetArnHasBeenSet = true; m_subnetArn.assign(value); }
165 inline AwsEc2SubnetDetails& WithSubnetArn(const Aws::String& value) { SetSubnetArn(value); return *this;}
166 inline AwsEc2SubnetDetails& WithSubnetArn(Aws::String&& value) { SetSubnetArn(std::move(value)); return *this;}
167 inline AwsEc2SubnetDetails& WithSubnetArn(const char* value) { SetSubnetArn(value); return *this;}
169
171
174 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
175 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
176 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
177 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
178 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
179 inline AwsEc2SubnetDetails& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
180 inline AwsEc2SubnetDetails& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
181 inline AwsEc2SubnetDetails& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
183
185
188 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
189 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
190 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
191 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
192 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
193 inline AwsEc2SubnetDetails& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
194 inline AwsEc2SubnetDetails& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
195 inline AwsEc2SubnetDetails& WithVpcId(const char* value) { SetVpcId(value); return *this;}
197
199
202 inline const Aws::Vector<Ipv6CidrBlockAssociation>& GetIpv6CidrBlockAssociationSet() const{ return m_ipv6CidrBlockAssociationSet; }
203 inline bool Ipv6CidrBlockAssociationSetHasBeenSet() const { return m_ipv6CidrBlockAssociationSetHasBeenSet; }
204 inline void SetIpv6CidrBlockAssociationSet(const Aws::Vector<Ipv6CidrBlockAssociation>& value) { m_ipv6CidrBlockAssociationSetHasBeenSet = true; m_ipv6CidrBlockAssociationSet = value; }
205 inline void SetIpv6CidrBlockAssociationSet(Aws::Vector<Ipv6CidrBlockAssociation>&& value) { m_ipv6CidrBlockAssociationSetHasBeenSet = true; m_ipv6CidrBlockAssociationSet = std::move(value); }
208 inline AwsEc2SubnetDetails& AddIpv6CidrBlockAssociationSet(const Ipv6CidrBlockAssociation& value) { m_ipv6CidrBlockAssociationSetHasBeenSet = true; m_ipv6CidrBlockAssociationSet.push_back(value); return *this; }
209 inline AwsEc2SubnetDetails& AddIpv6CidrBlockAssociationSet(Ipv6CidrBlockAssociation&& value) { m_ipv6CidrBlockAssociationSetHasBeenSet = true; m_ipv6CidrBlockAssociationSet.push_back(std::move(value)); return *this; }
211 private:
212
213 bool m_assignIpv6AddressOnCreation;
214 bool m_assignIpv6AddressOnCreationHasBeenSet = false;
215
216 Aws::String m_availabilityZone;
217 bool m_availabilityZoneHasBeenSet = false;
218
219 Aws::String m_availabilityZoneId;
220 bool m_availabilityZoneIdHasBeenSet = false;
221
222 int m_availableIpAddressCount;
223 bool m_availableIpAddressCountHasBeenSet = false;
224
225 Aws::String m_cidrBlock;
226 bool m_cidrBlockHasBeenSet = false;
227
228 bool m_defaultForAz;
229 bool m_defaultForAzHasBeenSet = false;
230
231 bool m_mapPublicIpOnLaunch;
232 bool m_mapPublicIpOnLaunchHasBeenSet = false;
233
234 Aws::String m_ownerId;
235 bool m_ownerIdHasBeenSet = false;
236
237 Aws::String m_state;
238 bool m_stateHasBeenSet = false;
239
240 Aws::String m_subnetArn;
241 bool m_subnetArnHasBeenSet = false;
242
243 Aws::String m_subnetId;
244 bool m_subnetIdHasBeenSet = false;
245
246 Aws::String m_vpcId;
247 bool m_vpcIdHasBeenSet = false;
248
249 Aws::Vector<Ipv6CidrBlockAssociation> m_ipv6CidrBlockAssociationSet;
250 bool m_ipv6CidrBlockAssociationSetHasBeenSet = false;
251 };
252
253} // namespace Model
254} // namespace SecurityHub
255} // namespace Aws
AwsEc2SubnetDetails & WithSubnetArn(const Aws::String &value)
AwsEc2SubnetDetails & WithCidrBlock(const Aws::String &value)
AwsEc2SubnetDetails & WithCidrBlock(const char *value)
AwsEc2SubnetDetails & WithVpcId(const char *value)
AwsEc2SubnetDetails & WithSubnetId(const Aws::String &value)
AwsEc2SubnetDetails & WithState(const char *value)
const Aws::Vector< Ipv6CidrBlockAssociation > & GetIpv6CidrBlockAssociationSet() const
AWS_SECURITYHUB_API AwsEc2SubnetDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEc2SubnetDetails & WithAvailabilityZone(const Aws::String &value)
AwsEc2SubnetDetails & AddIpv6CidrBlockAssociationSet(const Ipv6CidrBlockAssociation &value)
void SetIpv6CidrBlockAssociationSet(const Aws::Vector< Ipv6CidrBlockAssociation > &value)
void SetIpv6CidrBlockAssociationSet(Aws::Vector< Ipv6CidrBlockAssociation > &&value)
AwsEc2SubnetDetails & WithSubnetArn(const char *value)
AwsEc2SubnetDetails & WithAvailabilityZone(Aws::String &&value)
AwsEc2SubnetDetails & WithSubnetArn(Aws::String &&value)
AwsEc2SubnetDetails & WithState(const Aws::String &value)
void SetAvailabilityZoneId(const Aws::String &value)
AwsEc2SubnetDetails & WithVpcId(Aws::String &&value)
AwsEc2SubnetDetails & WithVpcId(const Aws::String &value)
AwsEc2SubnetDetails & WithDefaultForAz(bool value)
AwsEc2SubnetDetails & WithState(Aws::String &&value)
AwsEc2SubnetDetails & WithOwnerId(Aws::String &&value)
AwsEc2SubnetDetails & WithAvailabilityZoneId(Aws::String &&value)
AwsEc2SubnetDetails & WithIpv6CidrBlockAssociationSet(Aws::Vector< Ipv6CidrBlockAssociation > &&value)
AwsEc2SubnetDetails & WithAvailableIpAddressCount(int value)
AwsEc2SubnetDetails & WithCidrBlock(Aws::String &&value)
AwsEc2SubnetDetails & WithAssignIpv6AddressOnCreation(bool value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API AwsEc2SubnetDetails(Aws::Utils::Json::JsonView jsonValue)
AwsEc2SubnetDetails & WithOwnerId(const char *value)
AwsEc2SubnetDetails & WithAvailabilityZoneId(const Aws::String &value)
AwsEc2SubnetDetails & WithAvailabilityZoneId(const char *value)
AwsEc2SubnetDetails & AddIpv6CidrBlockAssociationSet(Ipv6CidrBlockAssociation &&value)
AwsEc2SubnetDetails & WithSubnetId(const char *value)
void SetAvailabilityZone(const Aws::String &value)
AwsEc2SubnetDetails & WithSubnetId(Aws::String &&value)
AwsEc2SubnetDetails & WithOwnerId(const Aws::String &value)
AwsEc2SubnetDetails & WithAvailabilityZone(const char *value)
AwsEc2SubnetDetails & WithMapPublicIpOnLaunch(bool value)
AwsEc2SubnetDetails & WithIpv6CidrBlockAssociationSet(const Aws::Vector< Ipv6CidrBlockAssociation > &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