AWS SDK for C++  1.9.109
AWS SDK for C++
TargetNetwork.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::String& GetAssociationId() const{ return m_associationId; }
49 
53  inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
54 
58  inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
59 
63  inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
64 
68  inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
69 
73  inline TargetNetwork& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
74 
78  inline TargetNetwork& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
79 
83  inline TargetNetwork& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
84 
85 
89  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
90 
94  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
95 
99  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
100 
104  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
105 
109  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
110 
114  inline TargetNetwork& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
115 
119  inline TargetNetwork& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
120 
124  inline TargetNetwork& WithVpcId(const char* value) { SetVpcId(value); return *this;}
125 
126 
130  inline const Aws::String& GetTargetNetworkId() const{ return m_targetNetworkId; }
131 
135  inline bool TargetNetworkIdHasBeenSet() const { return m_targetNetworkIdHasBeenSet; }
136 
140  inline void SetTargetNetworkId(const Aws::String& value) { m_targetNetworkIdHasBeenSet = true; m_targetNetworkId = value; }
141 
145  inline void SetTargetNetworkId(Aws::String&& value) { m_targetNetworkIdHasBeenSet = true; m_targetNetworkId = std::move(value); }
146 
150  inline void SetTargetNetworkId(const char* value) { m_targetNetworkIdHasBeenSet = true; m_targetNetworkId.assign(value); }
151 
155  inline TargetNetwork& WithTargetNetworkId(const Aws::String& value) { SetTargetNetworkId(value); return *this;}
156 
160  inline TargetNetwork& WithTargetNetworkId(Aws::String&& value) { SetTargetNetworkId(std::move(value)); return *this;}
161 
165  inline TargetNetwork& WithTargetNetworkId(const char* value) { SetTargetNetworkId(value); return *this;}
166 
167 
172  inline const Aws::String& GetClientVpnEndpointId() const{ return m_clientVpnEndpointId; }
173 
178  inline bool ClientVpnEndpointIdHasBeenSet() const { return m_clientVpnEndpointIdHasBeenSet; }
179 
184  inline void SetClientVpnEndpointId(const Aws::String& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = value; }
185 
190  inline void SetClientVpnEndpointId(Aws::String&& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = std::move(value); }
191 
196  inline void SetClientVpnEndpointId(const char* value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId.assign(value); }
197 
202  inline TargetNetwork& WithClientVpnEndpointId(const Aws::String& value) { SetClientVpnEndpointId(value); return *this;}
203 
208  inline TargetNetwork& WithClientVpnEndpointId(Aws::String&& value) { SetClientVpnEndpointId(std::move(value)); return *this;}
209 
214  inline TargetNetwork& WithClientVpnEndpointId(const char* value) { SetClientVpnEndpointId(value); return *this;}
215 
216 
220  inline const AssociationStatus& GetStatus() const{ return m_status; }
221 
225  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
226 
230  inline void SetStatus(const AssociationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
231 
235  inline void SetStatus(AssociationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
236 
240  inline TargetNetwork& WithStatus(const AssociationStatus& value) { SetStatus(value); return *this;}
241 
245  inline TargetNetwork& WithStatus(AssociationStatus&& value) { SetStatus(std::move(value)); return *this;}
246 
247 
251  inline const Aws::Vector<Aws::String>& GetSecurityGroups() const{ return m_securityGroups; }
252 
256  inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
257 
261  inline void SetSecurityGroups(const Aws::Vector<Aws::String>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
262 
266  inline void SetSecurityGroups(Aws::Vector<Aws::String>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
267 
271  inline TargetNetwork& WithSecurityGroups(const Aws::Vector<Aws::String>& value) { SetSecurityGroups(value); return *this;}
272 
276  inline TargetNetwork& WithSecurityGroups(Aws::Vector<Aws::String>&& value) { SetSecurityGroups(std::move(value)); return *this;}
277 
281  inline TargetNetwork& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
282 
286  inline TargetNetwork& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
287 
291  inline TargetNetwork& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
292 
293  private:
294 
295  Aws::String m_associationId;
296  bool m_associationIdHasBeenSet;
297 
298  Aws::String m_vpcId;
299  bool m_vpcIdHasBeenSet;
300 
301  Aws::String m_targetNetworkId;
302  bool m_targetNetworkIdHasBeenSet;
303 
304  Aws::String m_clientVpnEndpointId;
305  bool m_clientVpnEndpointIdHasBeenSet;
306 
307  AssociationStatus m_status;
308  bool m_statusHasBeenSet;
309 
310  Aws::Vector<Aws::String> m_securityGroups;
311  bool m_securityGroupsHasBeenSet;
312  };
313 
314 } // namespace Model
315 } // namespace EC2
316 } // namespace Aws
Aws::EC2::Model::TargetNetwork::WithSecurityGroups
TargetNetwork & WithSecurityGroups(const Aws::Vector< Aws::String > &value)
Definition: TargetNetwork.h:271
Aws::EC2::Model::TargetNetwork::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: TargetNetwork.h:104
Aws::EC2::Model::TargetNetwork::WithSecurityGroups
TargetNetwork & WithSecurityGroups(Aws::Vector< Aws::String > &&value)
Definition: TargetNetwork.h:276
Aws::EC2::Model::TargetNetwork::TargetNetwork
TargetNetwork()
Aws::EC2::Model::TargetNetwork::SetTargetNetworkId
void SetTargetNetworkId(const char *value)
Definition: TargetNetwork.h:150
Aws::EC2::Model::TargetNetwork::SetClientVpnEndpointId
void SetClientVpnEndpointId(Aws::String &&value)
Definition: TargetNetwork.h:190
Aws::EC2::Model::TargetNetwork::TargetNetworkIdHasBeenSet
bool TargetNetworkIdHasBeenSet() const
Definition: TargetNetwork.h:135
Aws::EC2::Model::TargetNetwork
Definition: TargetNetwork.h:35
Aws::EC2::Model::TargetNetwork::WithAssociationId
TargetNetwork & WithAssociationId(const Aws::String &value)
Definition: TargetNetwork.h:73
AssociationStatus.h
Aws::EC2::Model::TargetNetwork::GetVpcId
const Aws::String & GetVpcId() const
Definition: TargetNetwork.h:89
Aws::EC2::Model::TargetNetwork::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TargetNetwork::SetStatus
void SetStatus(AssociationStatus &&value)
Definition: TargetNetwork.h:235
Aws::EC2::Model::TargetNetwork::ClientVpnEndpointIdHasBeenSet
bool ClientVpnEndpointIdHasBeenSet() const
Definition: TargetNetwork.h:178
Aws::EC2::Model::TargetNetwork::GetTargetNetworkId
const Aws::String & GetTargetNetworkId() const
Definition: TargetNetwork.h:130
Aws::EC2::Model::TargetNetwork::SetTargetNetworkId
void SetTargetNetworkId(const Aws::String &value)
Definition: TargetNetwork.h:140
Aws::EC2::Model::TargetNetwork::AssociationIdHasBeenSet
bool AssociationIdHasBeenSet() const
Definition: TargetNetwork.h:53
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::EC2::Model::TargetNetwork::WithTargetNetworkId
TargetNetwork & WithTargetNetworkId(const char *value)
Definition: TargetNetwork.h:165
Aws::EC2::Model::TargetNetwork::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::TargetNetwork::WithClientVpnEndpointId
TargetNetwork & WithClientVpnEndpointId(const Aws::String &value)
Definition: TargetNetwork.h:202
AWSVector.h
Aws::EC2::Model::TargetNetwork::GetAssociationId
const Aws::String & GetAssociationId() const
Definition: TargetNetwork.h:48
Aws::EC2::Model::TargetNetwork::SetSecurityGroups
void SetSecurityGroups(Aws::Vector< Aws::String > &&value)
Definition: TargetNetwork.h:266
Aws::EC2::Model::TargetNetwork::SetClientVpnEndpointId
void SetClientVpnEndpointId(const Aws::String &value)
Definition: TargetNetwork.h:184
Aws::EC2::Model::TargetNetwork::SetVpcId
void SetVpcId(const char *value)
Definition: TargetNetwork.h:109
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::TargetNetwork::AddSecurityGroups
TargetNetwork & AddSecurityGroups(Aws::String &&value)
Definition: TargetNetwork.h:286
Aws::EC2::Model::TargetNetwork::SecurityGroupsHasBeenSet
bool SecurityGroupsHasBeenSet() const
Definition: TargetNetwork.h:256
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TargetNetwork::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: TargetNetwork.h:99
Aws::EC2::Model::TargetNetwork::WithAssociationId
TargetNetwork & WithAssociationId(Aws::String &&value)
Definition: TargetNetwork.h:78
Aws::EC2::Model::TargetNetwork::WithClientVpnEndpointId
TargetNetwork & WithClientVpnEndpointId(const char *value)
Definition: TargetNetwork.h:214
Aws::EC2::Model::TargetNetwork::GetStatus
const AssociationStatus & GetStatus() const
Definition: TargetNetwork.h:220
AWSString.h
Aws::EC2::Model::TargetNetwork::WithClientVpnEndpointId
TargetNetwork & WithClientVpnEndpointId(Aws::String &&value)
Definition: TargetNetwork.h:208
Aws::EC2::Model::TargetNetwork::WithVpcId
TargetNetwork & WithVpcId(Aws::String &&value)
Definition: TargetNetwork.h:119
Aws::EC2::Model::TargetNetwork::AddSecurityGroups
TargetNetwork & AddSecurityGroups(const char *value)
Definition: TargetNetwork.h:291
Aws::EC2::Model::TargetNetwork::WithTargetNetworkId
TargetNetwork & WithTargetNetworkId(const Aws::String &value)
Definition: TargetNetwork.h:155
Aws::EC2::Model::TargetNetwork::AddSecurityGroups
TargetNetwork & AddSecurityGroups(const Aws::String &value)
Definition: TargetNetwork.h:281
Aws::EC2::Model::TargetNetwork::SetSecurityGroups
void SetSecurityGroups(const Aws::Vector< Aws::String > &value)
Definition: TargetNetwork.h:261
Aws::EC2::Model::AssociationStatus
Definition: AssociationStatus.h:34
Aws::EC2::Model::TargetNetwork::WithTargetNetworkId
TargetNetwork & WithTargetNetworkId(Aws::String &&value)
Definition: TargetNetwork.h:160
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TargetNetwork::GetSecurityGroups
const Aws::Vector< Aws::String > & GetSecurityGroups() const
Definition: TargetNetwork.h:251
Aws::EC2::Model::TargetNetwork::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: TargetNetwork.h:225
Aws::EC2::Model::TargetNetwork::SetAssociationId
void SetAssociationId(Aws::String &&value)
Definition: TargetNetwork.h:63
Aws::EC2::Model::TargetNetwork::SetStatus
void SetStatus(const AssociationStatus &value)
Definition: TargetNetwork.h:230
Aws::EC2::Model::TargetNetwork::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: TargetNetwork.h:94
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::TargetNetwork::TargetNetwork
TargetNetwork(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TargetNetwork::SetAssociationId
void SetAssociationId(const char *value)
Definition: TargetNetwork.h:68
Aws::EC2::Model::TargetNetwork::WithStatus
TargetNetwork & WithStatus(AssociationStatus &&value)
Definition: TargetNetwork.h:245
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::TargetNetwork::WithVpcId
TargetNetwork & WithVpcId(const char *value)
Definition: TargetNetwork.h:124
Aws::EC2::Model::TargetNetwork::GetClientVpnEndpointId
const Aws::String & GetClientVpnEndpointId() const
Definition: TargetNetwork.h:172
Aws::EC2::Model::TargetNetwork::SetAssociationId
void SetAssociationId(const Aws::String &value)
Definition: TargetNetwork.h:58
Aws::EC2::Model::TargetNetwork::WithAssociationId
TargetNetwork & WithAssociationId(const char *value)
Definition: TargetNetwork.h:83
Aws::EC2::Model::TargetNetwork::WithVpcId
TargetNetwork & WithVpcId(const Aws::String &value)
Definition: TargetNetwork.h:114
Aws::EC2::Model::TargetNetwork::SetClientVpnEndpointId
void SetClientVpnEndpointId(const char *value)
Definition: TargetNetwork.h:196
EC2_EXPORTS.h
Aws::EC2::Model::TargetNetwork::SetTargetNetworkId
void SetTargetNetworkId(Aws::String &&value)
Definition: TargetNetwork.h:145
Aws::EC2::Model::TargetNetwork::WithStatus
TargetNetwork & WithStatus(const AssociationStatus &value)
Definition: TargetNetwork.h:240
Aws::EC2::Model::TargetNetwork::operator=
TargetNetwork & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)