AWS SDK for C++  1.9.66
AWS SDK for C++
ClientVpnRoute.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetClientVpnEndpointId() const{ return m_clientVpnEndpointId; }
47 
51  inline bool ClientVpnEndpointIdHasBeenSet() const { return m_clientVpnEndpointIdHasBeenSet; }
52 
56  inline void SetClientVpnEndpointId(const Aws::String& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = value; }
57 
61  inline void SetClientVpnEndpointId(Aws::String&& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = std::move(value); }
62 
66  inline void SetClientVpnEndpointId(const char* value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId.assign(value); }
67 
71  inline ClientVpnRoute& WithClientVpnEndpointId(const Aws::String& value) { SetClientVpnEndpointId(value); return *this;}
72 
76  inline ClientVpnRoute& WithClientVpnEndpointId(Aws::String&& value) { SetClientVpnEndpointId(std::move(value)); return *this;}
77 
81  inline ClientVpnRoute& WithClientVpnEndpointId(const char* value) { SetClientVpnEndpointId(value); return *this;}
82 
83 
87  inline const Aws::String& GetDestinationCidr() const{ return m_destinationCidr; }
88 
92  inline bool DestinationCidrHasBeenSet() const { return m_destinationCidrHasBeenSet; }
93 
97  inline void SetDestinationCidr(const Aws::String& value) { m_destinationCidrHasBeenSet = true; m_destinationCidr = value; }
98 
102  inline void SetDestinationCidr(Aws::String&& value) { m_destinationCidrHasBeenSet = true; m_destinationCidr = std::move(value); }
103 
107  inline void SetDestinationCidr(const char* value) { m_destinationCidrHasBeenSet = true; m_destinationCidr.assign(value); }
108 
112  inline ClientVpnRoute& WithDestinationCidr(const Aws::String& value) { SetDestinationCidr(value); return *this;}
113 
117  inline ClientVpnRoute& WithDestinationCidr(Aws::String&& value) { SetDestinationCidr(std::move(value)); return *this;}
118 
122  inline ClientVpnRoute& WithDestinationCidr(const char* value) { SetDestinationCidr(value); return *this;}
123 
124 
128  inline const Aws::String& GetTargetSubnet() const{ return m_targetSubnet; }
129 
133  inline bool TargetSubnetHasBeenSet() const { return m_targetSubnetHasBeenSet; }
134 
138  inline void SetTargetSubnet(const Aws::String& value) { m_targetSubnetHasBeenSet = true; m_targetSubnet = value; }
139 
143  inline void SetTargetSubnet(Aws::String&& value) { m_targetSubnetHasBeenSet = true; m_targetSubnet = std::move(value); }
144 
148  inline void SetTargetSubnet(const char* value) { m_targetSubnetHasBeenSet = true; m_targetSubnet.assign(value); }
149 
153  inline ClientVpnRoute& WithTargetSubnet(const Aws::String& value) { SetTargetSubnet(value); return *this;}
154 
158  inline ClientVpnRoute& WithTargetSubnet(Aws::String&& value) { SetTargetSubnet(std::move(value)); return *this;}
159 
163  inline ClientVpnRoute& WithTargetSubnet(const char* value) { SetTargetSubnet(value); return *this;}
164 
165 
169  inline const Aws::String& GetType() const{ return m_type; }
170 
174  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
175 
179  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
180 
184  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
185 
189  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
190 
194  inline ClientVpnRoute& WithType(const Aws::String& value) { SetType(value); return *this;}
195 
199  inline ClientVpnRoute& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
200 
204  inline ClientVpnRoute& WithType(const char* value) { SetType(value); return *this;}
205 
206 
214  inline const Aws::String& GetOrigin() const{ return m_origin; }
215 
223  inline bool OriginHasBeenSet() const { return m_originHasBeenSet; }
224 
232  inline void SetOrigin(const Aws::String& value) { m_originHasBeenSet = true; m_origin = value; }
233 
241  inline void SetOrigin(Aws::String&& value) { m_originHasBeenSet = true; m_origin = std::move(value); }
242 
250  inline void SetOrigin(const char* value) { m_originHasBeenSet = true; m_origin.assign(value); }
251 
259  inline ClientVpnRoute& WithOrigin(const Aws::String& value) { SetOrigin(value); return *this;}
260 
268  inline ClientVpnRoute& WithOrigin(Aws::String&& value) { SetOrigin(std::move(value)); return *this;}
269 
277  inline ClientVpnRoute& WithOrigin(const char* value) { SetOrigin(value); return *this;}
278 
279 
283  inline const ClientVpnRouteStatus& GetStatus() const{ return m_status; }
284 
288  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
289 
293  inline void SetStatus(const ClientVpnRouteStatus& value) { m_statusHasBeenSet = true; m_status = value; }
294 
298  inline void SetStatus(ClientVpnRouteStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
299 
303  inline ClientVpnRoute& WithStatus(const ClientVpnRouteStatus& value) { SetStatus(value); return *this;}
304 
308  inline ClientVpnRoute& WithStatus(ClientVpnRouteStatus&& value) { SetStatus(std::move(value)); return *this;}
309 
310 
314  inline const Aws::String& GetDescription() const{ return m_description; }
315 
319  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
320 
324  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
325 
329  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
330 
334  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
335 
339  inline ClientVpnRoute& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
340 
344  inline ClientVpnRoute& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
345 
349  inline ClientVpnRoute& WithDescription(const char* value) { SetDescription(value); return *this;}
350 
351  private:
352 
353  Aws::String m_clientVpnEndpointId;
354  bool m_clientVpnEndpointIdHasBeenSet;
355 
356  Aws::String m_destinationCidr;
357  bool m_destinationCidrHasBeenSet;
358 
359  Aws::String m_targetSubnet;
360  bool m_targetSubnetHasBeenSet;
361 
362  Aws::String m_type;
363  bool m_typeHasBeenSet;
364 
365  Aws::String m_origin;
366  bool m_originHasBeenSet;
367 
368  ClientVpnRouteStatus m_status;
369  bool m_statusHasBeenSet;
370 
371  Aws::String m_description;
372  bool m_descriptionHasBeenSet;
373  };
374 
375 } // namespace Model
376 } // namespace EC2
377 } // namespace Aws
Aws::EC2::Model::ClientVpnRoute::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: ClientVpnRoute.h:319
Aws::EC2::Model::ClientVpnRoute::SetTargetSubnet
void SetTargetSubnet(Aws::String &&value)
Definition: ClientVpnRoute.h:143
Aws::EC2::Model::ClientVpnRoute::WithDescription
ClientVpnRoute & WithDescription(const char *value)
Definition: ClientVpnRoute.h:349
Aws::EC2::Model::ClientVpnRoute::TargetSubnetHasBeenSet
bool TargetSubnetHasBeenSet() const
Definition: ClientVpnRoute.h:133
Aws::EC2::Model::ClientVpnRoute::WithOrigin
ClientVpnRoute & WithOrigin(Aws::String &&value)
Definition: ClientVpnRoute.h:268
Aws::EC2::Model::ClientVpnRoute::OriginHasBeenSet
bool OriginHasBeenSet() const
Definition: ClientVpnRoute.h:223
Aws::EC2::Model::ClientVpnRoute::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ClientVpnRoute::SetType
void SetType(const Aws::String &value)
Definition: ClientVpnRoute.h:179
Aws::EC2::Model::ClientVpnRoute::DestinationCidrHasBeenSet
bool DestinationCidrHasBeenSet() const
Definition: ClientVpnRoute.h:92
Aws::EC2::Model::ClientVpnRoute::GetOrigin
const Aws::String & GetOrigin() const
Definition: ClientVpnRoute.h:214
Aws::EC2::Model::ClientVpnRoute::WithTargetSubnet
ClientVpnRoute & WithTargetSubnet(const char *value)
Definition: ClientVpnRoute.h:163
Aws::EC2::Model::ClientVpnRoute::operator=
ClientVpnRoute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ClientVpnRoute::WithType
ClientVpnRoute & WithType(const Aws::String &value)
Definition: ClientVpnRoute.h:194
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ClientVpnRoute::SetTargetSubnet
void SetTargetSubnet(const char *value)
Definition: ClientVpnRoute.h:148
Aws::EC2::Model::ClientVpnRoute::SetDestinationCidr
void SetDestinationCidr(Aws::String &&value)
Definition: ClientVpnRoute.h:102
Aws::EC2::Model::ClientVpnRoute::SetOrigin
void SetOrigin(const char *value)
Definition: ClientVpnRoute.h:250
Aws::EC2::Model::ClientVpnRoute::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: ClientVpnRoute.h:288
Aws::EC2::Model::ClientVpnRoute::GetTargetSubnet
const Aws::String & GetTargetSubnet() const
Definition: ClientVpnRoute.h:128
Aws::EC2::Model::ClientVpnRoute::WithType
ClientVpnRoute & WithType(const char *value)
Definition: ClientVpnRoute.h:204
Aws::EC2::Model::ClientVpnRoute::WithClientVpnEndpointId
ClientVpnRoute & WithClientVpnEndpointId(const Aws::String &value)
Definition: ClientVpnRoute.h:71
Aws::EC2::Model::ClientVpnRoute::GetDescription
const Aws::String & GetDescription() const
Definition: ClientVpnRoute.h:314
Aws::EC2::Model::ClientVpnRoute::WithStatus
ClientVpnRoute & WithStatus(const ClientVpnRouteStatus &value)
Definition: ClientVpnRoute.h:303
AWSStreamFwd.h
Aws::EC2::Model::ClientVpnRoute::WithDestinationCidr
ClientVpnRoute & WithDestinationCidr(Aws::String &&value)
Definition: ClientVpnRoute.h:117
Aws::EC2::Model::ClientVpnRoute::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: ClientVpnRoute.h:174
Aws::EC2::Model::ClientVpnRoute::SetClientVpnEndpointId
void SetClientVpnEndpointId(const Aws::String &value)
Definition: ClientVpnRoute.h:56
ClientVpnRouteStatus.h
Aws::EC2::Model::ClientVpnRoute::WithTargetSubnet
ClientVpnRoute & WithTargetSubnet(Aws::String &&value)
Definition: ClientVpnRoute.h:158
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ClientVpnRoute::SetOrigin
void SetOrigin(Aws::String &&value)
Definition: ClientVpnRoute.h:241
Aws::EC2::Model::ClientVpnRoute::SetDescription
void SetDescription(const char *value)
Definition: ClientVpnRoute.h:334
Aws::EC2::Model::ClientVpnRoute::WithType
ClientVpnRoute & WithType(Aws::String &&value)
Definition: ClientVpnRoute.h:199
Aws::EC2::Model::ClientVpnRoute::WithTargetSubnet
ClientVpnRoute & WithTargetSubnet(const Aws::String &value)
Definition: ClientVpnRoute.h:153
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ClientVpnRoute::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ClientVpnRoute::WithDescription
ClientVpnRoute & WithDescription(Aws::String &&value)
Definition: ClientVpnRoute.h:344
Aws::EC2::Model::ClientVpnRoute::SetDescription
void SetDescription(Aws::String &&value)
Definition: ClientVpnRoute.h:329
Aws::EC2::Model::ClientVpnRoute::WithClientVpnEndpointId
ClientVpnRoute & WithClientVpnEndpointId(Aws::String &&value)
Definition: ClientVpnRoute.h:76
Aws::EC2::Model::ClientVpnRouteStatus
Definition: ClientVpnRouteStatus.h:34
Aws::EC2::Model::ClientVpnRoute
Definition: ClientVpnRoute.h:33
Aws::EC2::Model::ClientVpnRoute::WithClientVpnEndpointId
ClientVpnRoute & WithClientVpnEndpointId(const char *value)
Definition: ClientVpnRoute.h:81
Aws::EC2::Model::ClientVpnRoute::GetType
const Aws::String & GetType() const
Definition: ClientVpnRoute.h:169
AWSString.h
Aws::EC2::Model::ClientVpnRoute::ClientVpnEndpointIdHasBeenSet
bool ClientVpnEndpointIdHasBeenSet() const
Definition: ClientVpnRoute.h:51
Aws::EC2::Model::ClientVpnRoute::SetClientVpnEndpointId
void SetClientVpnEndpointId(Aws::String &&value)
Definition: ClientVpnRoute.h:61
Aws::EC2::Model::ClientVpnRoute::ClientVpnRoute
ClientVpnRoute()
Aws::EC2::Model::ClientVpnRoute::SetTargetSubnet
void SetTargetSubnet(const Aws::String &value)
Definition: ClientVpnRoute.h:138
Aws::EC2::Model::ClientVpnRoute::WithStatus
ClientVpnRoute & WithStatus(ClientVpnRouteStatus &&value)
Definition: ClientVpnRoute.h:308
Aws::EC2::Model::ClientVpnRoute::WithOrigin
ClientVpnRoute & WithOrigin(const char *value)
Definition: ClientVpnRoute.h:277
Aws::EC2::Model::ClientVpnRoute::SetClientVpnEndpointId
void SetClientVpnEndpointId(const char *value)
Definition: ClientVpnRoute.h:66
Aws::EC2::Model::ClientVpnRoute::SetType
void SetType(const char *value)
Definition: ClientVpnRoute.h:189
Aws::EC2::Model::ClientVpnRoute::WithOrigin
ClientVpnRoute & WithOrigin(const Aws::String &value)
Definition: ClientVpnRoute.h:259
Aws::EC2::Model::ClientVpnRoute::SetDescription
void SetDescription(const Aws::String &value)
Definition: ClientVpnRoute.h:324
Aws::EC2::Model::ClientVpnRoute::GetDestinationCidr
const Aws::String & GetDestinationCidr() const
Definition: ClientVpnRoute.h:87
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ClientVpnRoute::SetType
void SetType(Aws::String &&value)
Definition: ClientVpnRoute.h:184
Aws::EC2::Model::ClientVpnRoute::SetDestinationCidr
void SetDestinationCidr(const Aws::String &value)
Definition: ClientVpnRoute.h:97
Aws::EC2::Model::ClientVpnRoute::WithDescription
ClientVpnRoute & WithDescription(const Aws::String &value)
Definition: ClientVpnRoute.h:339
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::ClientVpnRoute::SetOrigin
void SetOrigin(const Aws::String &value)
Definition: ClientVpnRoute.h:232
Aws::EC2::Model::ClientVpnRoute::ClientVpnRoute
ClientVpnRoute(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ClientVpnRoute::WithDestinationCidr
ClientVpnRoute & WithDestinationCidr(const Aws::String &value)
Definition: ClientVpnRoute.h:112
Aws::EC2::Model::ClientVpnRoute::SetStatus
void SetStatus(ClientVpnRouteStatus &&value)
Definition: ClientVpnRoute.h:298
Aws::EC2::Model::ClientVpnRoute::WithDestinationCidr
ClientVpnRoute & WithDestinationCidr(const char *value)
Definition: ClientVpnRoute.h:122
Aws::EC2::Model::ClientVpnRoute::GetStatus
const ClientVpnRouteStatus & GetStatus() const
Definition: ClientVpnRoute.h:283
Aws::EC2::Model::ClientVpnRoute::GetClientVpnEndpointId
const Aws::String & GetClientVpnEndpointId() const
Definition: ClientVpnRoute.h:46
EC2_EXPORTS.h
Aws::EC2::Model::ClientVpnRoute::SetDestinationCidr
void SetDestinationCidr(const char *value)
Definition: ClientVpnRoute.h:107
Aws::EC2::Model::ClientVpnRoute::SetStatus
void SetStatus(const ClientVpnRouteStatus &value)
Definition: ClientVpnRoute.h:293