AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AvailabilityZoneT = Aws::String>
61 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
62 template<typename AvailabilityZoneT = Aws::String>
63 AwsEc2SubnetDetails& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
65
67
70 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
71 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
72 template<typename AvailabilityZoneIdT = Aws::String>
73 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value); }
74 template<typename AvailabilityZoneIdT = Aws::String>
75 AwsEc2SubnetDetails& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) { SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value)); return *this;}
77
79
83 inline int GetAvailableIpAddressCount() const { return m_availableIpAddressCount; }
84 inline bool AvailableIpAddressCountHasBeenSet() const { return m_availableIpAddressCountHasBeenSet; }
85 inline void SetAvailableIpAddressCount(int value) { m_availableIpAddressCountHasBeenSet = true; m_availableIpAddressCount = value; }
88
90
93 inline const Aws::String& GetCidrBlock() const { return m_cidrBlock; }
94 inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
95 template<typename CidrBlockT = Aws::String>
96 void SetCidrBlock(CidrBlockT&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::forward<CidrBlockT>(value); }
97 template<typename CidrBlockT = Aws::String>
98 AwsEc2SubnetDetails& WithCidrBlock(CidrBlockT&& value) { SetCidrBlock(std::forward<CidrBlockT>(value)); return *this;}
100
102
105 inline bool GetDefaultForAz() const { return m_defaultForAz; }
106 inline bool DefaultForAzHasBeenSet() const { return m_defaultForAzHasBeenSet; }
107 inline void SetDefaultForAz(bool value) { m_defaultForAzHasBeenSet = true; m_defaultForAz = value; }
108 inline AwsEc2SubnetDetails& WithDefaultForAz(bool value) { SetDefaultForAz(value); return *this;}
110
112
115 inline bool GetMapPublicIpOnLaunch() const { return m_mapPublicIpOnLaunch; }
116 inline bool MapPublicIpOnLaunchHasBeenSet() const { return m_mapPublicIpOnLaunchHasBeenSet; }
117 inline void SetMapPublicIpOnLaunch(bool value) { m_mapPublicIpOnLaunchHasBeenSet = true; m_mapPublicIpOnLaunch = value; }
118 inline AwsEc2SubnetDetails& WithMapPublicIpOnLaunch(bool value) { SetMapPublicIpOnLaunch(value); return *this;}
120
122
125 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
126 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
127 template<typename OwnerIdT = Aws::String>
128 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
129 template<typename OwnerIdT = Aws::String>
130 AwsEc2SubnetDetails& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
132
134
138 inline const Aws::String& GetState() const { return m_state; }
139 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
140 template<typename StateT = Aws::String>
141 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
142 template<typename StateT = Aws::String>
143 AwsEc2SubnetDetails& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
145
147
150 inline const Aws::String& GetSubnetArn() const { return m_subnetArn; }
151 inline bool SubnetArnHasBeenSet() const { return m_subnetArnHasBeenSet; }
152 template<typename SubnetArnT = Aws::String>
153 void SetSubnetArn(SubnetArnT&& value) { m_subnetArnHasBeenSet = true; m_subnetArn = std::forward<SubnetArnT>(value); }
154 template<typename SubnetArnT = Aws::String>
155 AwsEc2SubnetDetails& WithSubnetArn(SubnetArnT&& value) { SetSubnetArn(std::forward<SubnetArnT>(value)); return *this;}
157
159
162 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
163 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
164 template<typename SubnetIdT = Aws::String>
165 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
166 template<typename SubnetIdT = Aws::String>
167 AwsEc2SubnetDetails& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
169
171
174 inline const Aws::String& GetVpcId() const { return m_vpcId; }
175 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
176 template<typename VpcIdT = Aws::String>
177 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
178 template<typename VpcIdT = Aws::String>
179 AwsEc2SubnetDetails& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
181
183
186 inline const Aws::Vector<Ipv6CidrBlockAssociation>& GetIpv6CidrBlockAssociationSet() const { return m_ipv6CidrBlockAssociationSet; }
187 inline bool Ipv6CidrBlockAssociationSetHasBeenSet() const { return m_ipv6CidrBlockAssociationSetHasBeenSet; }
188 template<typename Ipv6CidrBlockAssociationSetT = Aws::Vector<Ipv6CidrBlockAssociation>>
189 void SetIpv6CidrBlockAssociationSet(Ipv6CidrBlockAssociationSetT&& value) { m_ipv6CidrBlockAssociationSetHasBeenSet = true; m_ipv6CidrBlockAssociationSet = std::forward<Ipv6CidrBlockAssociationSetT>(value); }
190 template<typename Ipv6CidrBlockAssociationSetT = Aws::Vector<Ipv6CidrBlockAssociation>>
191 AwsEc2SubnetDetails& WithIpv6CidrBlockAssociationSet(Ipv6CidrBlockAssociationSetT&& value) { SetIpv6CidrBlockAssociationSet(std::forward<Ipv6CidrBlockAssociationSetT>(value)); return *this;}
192 template<typename Ipv6CidrBlockAssociationSetT = Ipv6CidrBlockAssociation>
193 AwsEc2SubnetDetails& AddIpv6CidrBlockAssociationSet(Ipv6CidrBlockAssociationSetT&& value) { m_ipv6CidrBlockAssociationSetHasBeenSet = true; m_ipv6CidrBlockAssociationSet.emplace_back(std::forward<Ipv6CidrBlockAssociationSetT>(value)); return *this; }
195 private:
196
197 bool m_assignIpv6AddressOnCreation{false};
198 bool m_assignIpv6AddressOnCreationHasBeenSet = false;
199
200 Aws::String m_availabilityZone;
201 bool m_availabilityZoneHasBeenSet = false;
202
203 Aws::String m_availabilityZoneId;
204 bool m_availabilityZoneIdHasBeenSet = false;
205
206 int m_availableIpAddressCount{0};
207 bool m_availableIpAddressCountHasBeenSet = false;
208
209 Aws::String m_cidrBlock;
210 bool m_cidrBlockHasBeenSet = false;
211
212 bool m_defaultForAz{false};
213 bool m_defaultForAzHasBeenSet = false;
214
215 bool m_mapPublicIpOnLaunch{false};
216 bool m_mapPublicIpOnLaunchHasBeenSet = false;
217
218 Aws::String m_ownerId;
219 bool m_ownerIdHasBeenSet = false;
220
221 Aws::String m_state;
222 bool m_stateHasBeenSet = false;
223
224 Aws::String m_subnetArn;
225 bool m_subnetArnHasBeenSet = false;
226
227 Aws::String m_subnetId;
228 bool m_subnetIdHasBeenSet = false;
229
230 Aws::String m_vpcId;
231 bool m_vpcIdHasBeenSet = false;
232
233 Aws::Vector<Ipv6CidrBlockAssociation> m_ipv6CidrBlockAssociationSet;
234 bool m_ipv6CidrBlockAssociationSetHasBeenSet = false;
235 };
236
237} // namespace Model
238} // namespace SecurityHub
239} // 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