AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AwsEc2VpnConnectionDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/AwsEc2VpnConnectionOptionsDetails.h>
11#include <aws/securityhub/model/AwsEc2VpnConnectionRoutesDetails.h>
12#include <aws/securityhub/model/AwsEc2VpnConnectionVgwTelemetryDetails.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub {
24namespace Model {
25
32 public:
33 AWS_SECURITYHUB_API AwsEc2VpnConnectionDetails() = default;
36 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetVpnConnectionId() const { return m_vpnConnectionId; }
43 inline bool VpnConnectionIdHasBeenSet() const { return m_vpnConnectionIdHasBeenSet; }
44 template <typename VpnConnectionIdT = Aws::String>
45 void SetVpnConnectionId(VpnConnectionIdT&& value) {
46 m_vpnConnectionIdHasBeenSet = true;
47 m_vpnConnectionId = std::forward<VpnConnectionIdT>(value);
48 }
49 template <typename VpnConnectionIdT = Aws::String>
51 SetVpnConnectionId(std::forward<VpnConnectionIdT>(value));
52 return *this;
53 }
55
57
63 inline const Aws::String& GetState() const { return m_state; }
64 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
65 template <typename StateT = Aws::String>
66 void SetState(StateT&& value) {
67 m_stateHasBeenSet = true;
68 m_state = std::forward<StateT>(value);
69 }
70 template <typename StateT = Aws::String>
72 SetState(std::forward<StateT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetCustomerGatewayId() const { return m_customerGatewayId; }
83 inline bool CustomerGatewayIdHasBeenSet() const { return m_customerGatewayIdHasBeenSet; }
84 template <typename CustomerGatewayIdT = Aws::String>
85 void SetCustomerGatewayId(CustomerGatewayIdT&& value) {
86 m_customerGatewayIdHasBeenSet = true;
87 m_customerGatewayId = std::forward<CustomerGatewayIdT>(value);
88 }
89 template <typename CustomerGatewayIdT = Aws::String>
91 SetCustomerGatewayId(std::forward<CustomerGatewayIdT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::String& GetCustomerGatewayConfiguration() const { return m_customerGatewayConfiguration; }
102 inline bool CustomerGatewayConfigurationHasBeenSet() const { return m_customerGatewayConfigurationHasBeenSet; }
103 template <typename CustomerGatewayConfigurationT = Aws::String>
104 void SetCustomerGatewayConfiguration(CustomerGatewayConfigurationT&& value) {
105 m_customerGatewayConfigurationHasBeenSet = true;
106 m_customerGatewayConfiguration = std::forward<CustomerGatewayConfigurationT>(value);
107 }
108 template <typename CustomerGatewayConfigurationT = Aws::String>
109 AwsEc2VpnConnectionDetails& WithCustomerGatewayConfiguration(CustomerGatewayConfigurationT&& value) {
110 SetCustomerGatewayConfiguration(std::forward<CustomerGatewayConfigurationT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetType() const { return m_type; }
120 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
121 template <typename TypeT = Aws::String>
122 void SetType(TypeT&& value) {
123 m_typeHasBeenSet = true;
124 m_type = std::forward<TypeT>(value);
125 }
126 template <typename TypeT = Aws::String>
128 SetType(std::forward<TypeT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::String& GetVpnGatewayId() const { return m_vpnGatewayId; }
139 inline bool VpnGatewayIdHasBeenSet() const { return m_vpnGatewayIdHasBeenSet; }
140 template <typename VpnGatewayIdT = Aws::String>
141 void SetVpnGatewayId(VpnGatewayIdT&& value) {
142 m_vpnGatewayIdHasBeenSet = true;
143 m_vpnGatewayId = std::forward<VpnGatewayIdT>(value);
144 }
145 template <typename VpnGatewayIdT = Aws::String>
147 SetVpnGatewayId(std::forward<VpnGatewayIdT>(value));
148 return *this;
149 }
151
153
158 inline const Aws::String& GetCategory() const { return m_category; }
159 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
160 template <typename CategoryT = Aws::String>
161 void SetCategory(CategoryT&& value) {
162 m_categoryHasBeenSet = true;
163 m_category = std::forward<CategoryT>(value);
164 }
165 template <typename CategoryT = Aws::String>
167 SetCategory(std::forward<CategoryT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::Vector<AwsEc2VpnConnectionVgwTelemetryDetails>& GetVgwTelemetry() const { return m_vgwTelemetry; }
177 inline bool VgwTelemetryHasBeenSet() const { return m_vgwTelemetryHasBeenSet; }
178 template <typename VgwTelemetryT = Aws::Vector<AwsEc2VpnConnectionVgwTelemetryDetails>>
179 void SetVgwTelemetry(VgwTelemetryT&& value) {
180 m_vgwTelemetryHasBeenSet = true;
181 m_vgwTelemetry = std::forward<VgwTelemetryT>(value);
182 }
183 template <typename VgwTelemetryT = Aws::Vector<AwsEc2VpnConnectionVgwTelemetryDetails>>
185 SetVgwTelemetry(std::forward<VgwTelemetryT>(value));
186 return *this;
187 }
188 template <typename VgwTelemetryT = AwsEc2VpnConnectionVgwTelemetryDetails>
190 m_vgwTelemetryHasBeenSet = true;
191 m_vgwTelemetry.emplace_back(std::forward<VgwTelemetryT>(value));
192 return *this;
193 }
195
197
200 inline const AwsEc2VpnConnectionOptionsDetails& GetOptions() const { return m_options; }
201 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
202 template <typename OptionsT = AwsEc2VpnConnectionOptionsDetails>
203 void SetOptions(OptionsT&& value) {
204 m_optionsHasBeenSet = true;
205 m_options = std::forward<OptionsT>(value);
206 }
207 template <typename OptionsT = AwsEc2VpnConnectionOptionsDetails>
209 SetOptions(std::forward<OptionsT>(value));
210 return *this;
211 }
213
215
218 inline const Aws::Vector<AwsEc2VpnConnectionRoutesDetails>& GetRoutes() const { return m_routes; }
219 inline bool RoutesHasBeenSet() const { return m_routesHasBeenSet; }
220 template <typename RoutesT = Aws::Vector<AwsEc2VpnConnectionRoutesDetails>>
221 void SetRoutes(RoutesT&& value) {
222 m_routesHasBeenSet = true;
223 m_routes = std::forward<RoutesT>(value);
224 }
225 template <typename RoutesT = Aws::Vector<AwsEc2VpnConnectionRoutesDetails>>
227 SetRoutes(std::forward<RoutesT>(value));
228 return *this;
229 }
230 template <typename RoutesT = AwsEc2VpnConnectionRoutesDetails>
232 m_routesHasBeenSet = true;
233 m_routes.emplace_back(std::forward<RoutesT>(value));
234 return *this;
235 }
237
239
243 inline const Aws::String& GetTransitGatewayId() const { return m_transitGatewayId; }
244 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
245 template <typename TransitGatewayIdT = Aws::String>
246 void SetTransitGatewayId(TransitGatewayIdT&& value) {
247 m_transitGatewayIdHasBeenSet = true;
248 m_transitGatewayId = std::forward<TransitGatewayIdT>(value);
249 }
250 template <typename TransitGatewayIdT = Aws::String>
252 SetTransitGatewayId(std::forward<TransitGatewayIdT>(value));
253 return *this;
254 }
256 private:
257 Aws::String m_vpnConnectionId;
258
259 Aws::String m_state;
260
261 Aws::String m_customerGatewayId;
262
263 Aws::String m_customerGatewayConfiguration;
264
265 Aws::String m_type;
266
267 Aws::String m_vpnGatewayId;
268
269 Aws::String m_category;
270
272
274
276
277 Aws::String m_transitGatewayId;
278 bool m_vpnConnectionIdHasBeenSet = false;
279 bool m_stateHasBeenSet = false;
280 bool m_customerGatewayIdHasBeenSet = false;
281 bool m_customerGatewayConfigurationHasBeenSet = false;
282 bool m_typeHasBeenSet = false;
283 bool m_vpnGatewayIdHasBeenSet = false;
284 bool m_categoryHasBeenSet = false;
285 bool m_vgwTelemetryHasBeenSet = false;
286 bool m_optionsHasBeenSet = false;
287 bool m_routesHasBeenSet = false;
288 bool m_transitGatewayIdHasBeenSet = false;
289};
290
291} // namespace Model
292} // namespace SecurityHub
293} // namespace Aws
const Aws::Vector< AwsEc2VpnConnectionRoutesDetails > & GetRoutes() const
AwsEc2VpnConnectionDetails & WithState(StateT &&value)
AWS_SECURITYHUB_API AwsEc2VpnConnectionDetails()=default
AwsEc2VpnConnectionDetails & WithCustomerGatewayConfiguration(CustomerGatewayConfigurationT &&value)
void SetCustomerGatewayConfiguration(CustomerGatewayConfigurationT &&value)
AwsEc2VpnConnectionDetails & WithCustomerGatewayId(CustomerGatewayIdT &&value)
AWS_SECURITYHUB_API AwsEc2VpnConnectionDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AwsEc2VpnConnectionDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEc2VpnConnectionDetails & WithOptions(OptionsT &&value)
AwsEc2VpnConnectionDetails & WithCategory(CategoryT &&value)
AwsEc2VpnConnectionDetails & WithType(TypeT &&value)
AwsEc2VpnConnectionDetails & AddVgwTelemetry(VgwTelemetryT &&value)
AwsEc2VpnConnectionDetails & WithTransitGatewayId(TransitGatewayIdT &&value)
AwsEc2VpnConnectionDetails & WithVpnGatewayId(VpnGatewayIdT &&value)
const Aws::Vector< AwsEc2VpnConnectionVgwTelemetryDetails > & GetVgwTelemetry() const
const AwsEc2VpnConnectionOptionsDetails & GetOptions() const
AwsEc2VpnConnectionDetails & WithVpnConnectionId(VpnConnectionIdT &&value)
AwsEc2VpnConnectionDetails & WithRoutes(RoutesT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsEc2VpnConnectionDetails & AddRoutes(RoutesT &&value)
AwsEc2VpnConnectionDetails & WithVgwTelemetry(VgwTelemetryT &&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