AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ClientVpnRoute.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/ClientVpnRouteStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
29 public:
30 AWS_EC2_API ClientVpnRoute() = default;
31 AWS_EC2_API ClientVpnRoute(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetClientVpnEndpointId() const { return m_clientVpnEndpointId; }
42 inline bool ClientVpnEndpointIdHasBeenSet() const { return m_clientVpnEndpointIdHasBeenSet; }
43 template <typename ClientVpnEndpointIdT = Aws::String>
44 void SetClientVpnEndpointId(ClientVpnEndpointIdT&& value) {
45 m_clientVpnEndpointIdHasBeenSet = true;
46 m_clientVpnEndpointId = std::forward<ClientVpnEndpointIdT>(value);
47 }
48 template <typename ClientVpnEndpointIdT = Aws::String>
49 ClientVpnRoute& WithClientVpnEndpointId(ClientVpnEndpointIdT&& value) {
50 SetClientVpnEndpointId(std::forward<ClientVpnEndpointIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDestinationCidr() const { return m_destinationCidr; }
60 inline bool DestinationCidrHasBeenSet() const { return m_destinationCidrHasBeenSet; }
61 template <typename DestinationCidrT = Aws::String>
62 void SetDestinationCidr(DestinationCidrT&& value) {
63 m_destinationCidrHasBeenSet = true;
64 m_destinationCidr = std::forward<DestinationCidrT>(value);
65 }
66 template <typename DestinationCidrT = Aws::String>
67 ClientVpnRoute& WithDestinationCidr(DestinationCidrT&& value) {
68 SetDestinationCidr(std::forward<DestinationCidrT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetTargetSubnet() const { return m_targetSubnet; }
78 inline bool TargetSubnetHasBeenSet() const { return m_targetSubnetHasBeenSet; }
79 template <typename TargetSubnetT = Aws::String>
80 void SetTargetSubnet(TargetSubnetT&& value) {
81 m_targetSubnetHasBeenSet = true;
82 m_targetSubnet = std::forward<TargetSubnetT>(value);
83 }
84 template <typename TargetSubnetT = Aws::String>
85 ClientVpnRoute& WithTargetSubnet(TargetSubnetT&& value) {
86 SetTargetSubnet(std::forward<TargetSubnetT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetType() const { return m_type; }
96 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
97 template <typename TypeT = Aws::String>
98 void SetType(TypeT&& value) {
99 m_typeHasBeenSet = true;
100 m_type = std::forward<TypeT>(value);
101 }
102 template <typename TypeT = Aws::String>
103 ClientVpnRoute& WithType(TypeT&& value) {
104 SetType(std::forward<TypeT>(value));
105 return *this;
106 }
108
110
117 inline const Aws::String& GetOrigin() const { return m_origin; }
118 inline bool OriginHasBeenSet() const { return m_originHasBeenSet; }
119 template <typename OriginT = Aws::String>
120 void SetOrigin(OriginT&& value) {
121 m_originHasBeenSet = true;
122 m_origin = std::forward<OriginT>(value);
123 }
124 template <typename OriginT = Aws::String>
125 ClientVpnRoute& WithOrigin(OriginT&& value) {
126 SetOrigin(std::forward<OriginT>(value));
127 return *this;
128 }
130
132
135 inline const ClientVpnRouteStatus& GetStatus() const { return m_status; }
136 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
137 template <typename StatusT = ClientVpnRouteStatus>
138 void SetStatus(StatusT&& value) {
139 m_statusHasBeenSet = true;
140 m_status = std::forward<StatusT>(value);
141 }
142 template <typename StatusT = ClientVpnRouteStatus>
143 ClientVpnRoute& WithStatus(StatusT&& value) {
144 SetStatus(std::forward<StatusT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetDescription() const { return m_description; }
154 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
155 template <typename DescriptionT = Aws::String>
156 void SetDescription(DescriptionT&& value) {
157 m_descriptionHasBeenSet = true;
158 m_description = std::forward<DescriptionT>(value);
159 }
160 template <typename DescriptionT = Aws::String>
161 ClientVpnRoute& WithDescription(DescriptionT&& value) {
162 SetDescription(std::forward<DescriptionT>(value));
163 return *this;
164 }
166 private:
167 Aws::String m_clientVpnEndpointId;
168
169 Aws::String m_destinationCidr;
170
171 Aws::String m_targetSubnet;
172
173 Aws::String m_type;
174
175 Aws::String m_origin;
176
177 ClientVpnRouteStatus m_status;
178
179 Aws::String m_description;
180 bool m_clientVpnEndpointIdHasBeenSet = false;
181 bool m_destinationCidrHasBeenSet = false;
182 bool m_targetSubnetHasBeenSet = false;
183 bool m_typeHasBeenSet = false;
184 bool m_originHasBeenSet = false;
185 bool m_statusHasBeenSet = false;
186 bool m_descriptionHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace EC2
191} // namespace Aws
void SetDescription(DescriptionT &&value)
void SetTargetSubnet(TargetSubnetT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetClientVpnEndpointId() const
const Aws::String & GetOrigin() const
AWS_EC2_API ClientVpnRoute()=default
ClientVpnRoute & WithOrigin(OriginT &&value)
ClientVpnRoute & WithType(TypeT &&value)
const Aws::String & GetDescription() const
ClientVpnRoute & WithTargetSubnet(TargetSubnetT &&value)
ClientVpnRoute & WithClientVpnEndpointId(ClientVpnEndpointIdT &&value)
const Aws::String & GetDestinationCidr() const
void SetOrigin(OriginT &&value)
ClientVpnRoute & WithDestinationCidr(DestinationCidrT &&value)
void SetStatus(StatusT &&value)
const ClientVpnRouteStatus & GetStatus() const
void SetClientVpnEndpointId(ClientVpnEndpointIdT &&value)
const Aws::String & GetType() const
ClientVpnRoute & WithDescription(DescriptionT &&value)
void SetDestinationCidr(DestinationCidrT &&value)
AWS_EC2_API ClientVpnRoute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ClientVpnRoute & WithStatus(StatusT &&value)
const Aws::String & GetTargetSubnet() const
AWS_EC2_API ClientVpnRoute(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream