AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsEc2VpnConnectionDetails.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/AwsEc2VpnConnectionOptionsDetails.h>
11#include <aws/securityhub/model/AwsEc2VpnConnectionVgwTelemetryDetails.h>
12#include <aws/securityhub/model/AwsEc2VpnConnectionRoutesDetails.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SecurityHub
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_SECURITYHUB_API AwsEc2VpnConnectionDetails();
41 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetVpnConnectionId() const{ return m_vpnConnectionId; }
49 inline bool VpnConnectionIdHasBeenSet() const { return m_vpnConnectionIdHasBeenSet; }
50 inline void SetVpnConnectionId(const Aws::String& value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId = value; }
51 inline void SetVpnConnectionId(Aws::String&& value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId = std::move(value); }
52 inline void SetVpnConnectionId(const char* value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId.assign(value); }
54 inline AwsEc2VpnConnectionDetails& WithVpnConnectionId(Aws::String&& value) { SetVpnConnectionId(std::move(value)); return *this;}
55 inline AwsEc2VpnConnectionDetails& WithVpnConnectionId(const char* value) { SetVpnConnectionId(value); return *this;}
57
59
65 inline const Aws::String& GetState() const{ return m_state; }
66 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
67 inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
68 inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
69 inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
70 inline AwsEc2VpnConnectionDetails& WithState(const Aws::String& value) { SetState(value); return *this;}
71 inline AwsEc2VpnConnectionDetails& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
72 inline AwsEc2VpnConnectionDetails& WithState(const char* value) { SetState(value); return *this;}
74
76
80 inline const Aws::String& GetCustomerGatewayId() const{ return m_customerGatewayId; }
81 inline bool CustomerGatewayIdHasBeenSet() const { return m_customerGatewayIdHasBeenSet; }
82 inline void SetCustomerGatewayId(const Aws::String& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = value; }
83 inline void SetCustomerGatewayId(Aws::String&& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = std::move(value); }
84 inline void SetCustomerGatewayId(const char* value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId.assign(value); }
86 inline AwsEc2VpnConnectionDetails& WithCustomerGatewayId(Aws::String&& value) { SetCustomerGatewayId(std::move(value)); return *this;}
87 inline AwsEc2VpnConnectionDetails& WithCustomerGatewayId(const char* value) { SetCustomerGatewayId(value); return *this;}
89
91
95 inline const Aws::String& GetCustomerGatewayConfiguration() const{ return m_customerGatewayConfiguration; }
96 inline bool CustomerGatewayConfigurationHasBeenSet() const { return m_customerGatewayConfigurationHasBeenSet; }
97 inline void SetCustomerGatewayConfiguration(const Aws::String& value) { m_customerGatewayConfigurationHasBeenSet = true; m_customerGatewayConfiguration = value; }
98 inline void SetCustomerGatewayConfiguration(Aws::String&& value) { m_customerGatewayConfigurationHasBeenSet = true; m_customerGatewayConfiguration = std::move(value); }
99 inline void SetCustomerGatewayConfiguration(const char* value) { m_customerGatewayConfigurationHasBeenSet = true; m_customerGatewayConfiguration.assign(value); }
104
106
109 inline const Aws::String& GetType() const{ return m_type; }
110 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
111 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
112 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
113 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
114 inline AwsEc2VpnConnectionDetails& WithType(const Aws::String& value) { SetType(value); return *this;}
115 inline AwsEc2VpnConnectionDetails& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
116 inline AwsEc2VpnConnectionDetails& WithType(const char* value) { SetType(value); return *this;}
118
120
124 inline const Aws::String& GetVpnGatewayId() const{ return m_vpnGatewayId; }
125 inline bool VpnGatewayIdHasBeenSet() const { return m_vpnGatewayIdHasBeenSet; }
126 inline void SetVpnGatewayId(const Aws::String& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = value; }
127 inline void SetVpnGatewayId(Aws::String&& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = std::move(value); }
128 inline void SetVpnGatewayId(const char* value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId.assign(value); }
129 inline AwsEc2VpnConnectionDetails& WithVpnGatewayId(const Aws::String& value) { SetVpnGatewayId(value); return *this;}
130 inline AwsEc2VpnConnectionDetails& WithVpnGatewayId(Aws::String&& value) { SetVpnGatewayId(std::move(value)); return *this;}
131 inline AwsEc2VpnConnectionDetails& WithVpnGatewayId(const char* value) { SetVpnGatewayId(value); return *this;}
133
135
140 inline const Aws::String& GetCategory() const{ return m_category; }
141 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
142 inline void SetCategory(const Aws::String& value) { m_categoryHasBeenSet = true; m_category = value; }
143 inline void SetCategory(Aws::String&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
144 inline void SetCategory(const char* value) { m_categoryHasBeenSet = true; m_category.assign(value); }
145 inline AwsEc2VpnConnectionDetails& WithCategory(const Aws::String& value) { SetCategory(value); return *this;}
146 inline AwsEc2VpnConnectionDetails& WithCategory(Aws::String&& value) { SetCategory(std::move(value)); return *this;}
147 inline AwsEc2VpnConnectionDetails& WithCategory(const char* value) { SetCategory(value); return *this;}
149
151
154 inline const Aws::Vector<AwsEc2VpnConnectionVgwTelemetryDetails>& GetVgwTelemetry() const{ return m_vgwTelemetry; }
155 inline bool VgwTelemetryHasBeenSet() const { return m_vgwTelemetryHasBeenSet; }
156 inline void SetVgwTelemetry(const Aws::Vector<AwsEc2VpnConnectionVgwTelemetryDetails>& value) { m_vgwTelemetryHasBeenSet = true; m_vgwTelemetry = value; }
157 inline void SetVgwTelemetry(Aws::Vector<AwsEc2VpnConnectionVgwTelemetryDetails>&& value) { m_vgwTelemetryHasBeenSet = true; m_vgwTelemetry = std::move(value); }
160 inline AwsEc2VpnConnectionDetails& AddVgwTelemetry(const AwsEc2VpnConnectionVgwTelemetryDetails& value) { m_vgwTelemetryHasBeenSet = true; m_vgwTelemetry.push_back(value); return *this; }
161 inline AwsEc2VpnConnectionDetails& AddVgwTelemetry(AwsEc2VpnConnectionVgwTelemetryDetails&& value) { m_vgwTelemetryHasBeenSet = true; m_vgwTelemetry.push_back(std::move(value)); return *this; }
163
165
168 inline const AwsEc2VpnConnectionOptionsDetails& GetOptions() const{ return m_options; }
169 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
170 inline void SetOptions(const AwsEc2VpnConnectionOptionsDetails& value) { m_optionsHasBeenSet = true; m_options = value; }
171 inline void SetOptions(AwsEc2VpnConnectionOptionsDetails&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
173 inline AwsEc2VpnConnectionDetails& WithOptions(AwsEc2VpnConnectionOptionsDetails&& value) { SetOptions(std::move(value)); return *this;}
175
177
180 inline const Aws::Vector<AwsEc2VpnConnectionRoutesDetails>& GetRoutes() const{ return m_routes; }
181 inline bool RoutesHasBeenSet() const { return m_routesHasBeenSet; }
182 inline void SetRoutes(const Aws::Vector<AwsEc2VpnConnectionRoutesDetails>& value) { m_routesHasBeenSet = true; m_routes = value; }
183 inline void SetRoutes(Aws::Vector<AwsEc2VpnConnectionRoutesDetails>&& value) { m_routesHasBeenSet = true; m_routes = std::move(value); }
186 inline AwsEc2VpnConnectionDetails& AddRoutes(const AwsEc2VpnConnectionRoutesDetails& value) { m_routesHasBeenSet = true; m_routes.push_back(value); return *this; }
187 inline AwsEc2VpnConnectionDetails& AddRoutes(AwsEc2VpnConnectionRoutesDetails&& value) { m_routesHasBeenSet = true; m_routes.push_back(std::move(value)); return *this; }
189
191
195 inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; }
196 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
197 inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; }
198 inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); }
199 inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); }
201 inline AwsEc2VpnConnectionDetails& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;}
202 inline AwsEc2VpnConnectionDetails& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;}
204 private:
205
206 Aws::String m_vpnConnectionId;
207 bool m_vpnConnectionIdHasBeenSet = false;
208
209 Aws::String m_state;
210 bool m_stateHasBeenSet = false;
211
212 Aws::String m_customerGatewayId;
213 bool m_customerGatewayIdHasBeenSet = false;
214
215 Aws::String m_customerGatewayConfiguration;
216 bool m_customerGatewayConfigurationHasBeenSet = false;
217
218 Aws::String m_type;
219 bool m_typeHasBeenSet = false;
220
221 Aws::String m_vpnGatewayId;
222 bool m_vpnGatewayIdHasBeenSet = false;
223
224 Aws::String m_category;
225 bool m_categoryHasBeenSet = false;
226
228 bool m_vgwTelemetryHasBeenSet = false;
229
231 bool m_optionsHasBeenSet = false;
232
234 bool m_routesHasBeenSet = false;
235
236 Aws::String m_transitGatewayId;
237 bool m_transitGatewayIdHasBeenSet = false;
238 };
239
240} // namespace Model
241} // namespace SecurityHub
242} // namespace Aws
AwsEc2VpnConnectionDetails & WithState(const char *value)
const Aws::Vector< AwsEc2VpnConnectionRoutesDetails > & GetRoutes() const
AwsEc2VpnConnectionDetails & WithCustomerGatewayConfiguration(Aws::String &&value)
AwsEc2VpnConnectionDetails & WithVpnConnectionId(const Aws::String &value)
AwsEc2VpnConnectionDetails & AddRoutes(const AwsEc2VpnConnectionRoutesDetails &value)
AwsEc2VpnConnectionDetails & WithType(const Aws::String &value)
AwsEc2VpnConnectionDetails & WithCustomerGatewayId(const char *value)
AwsEc2VpnConnectionDetails & WithOptions(AwsEc2VpnConnectionOptionsDetails &&value)
void SetVgwTelemetry(const Aws::Vector< AwsEc2VpnConnectionVgwTelemetryDetails > &value)
AWS_SECURITYHUB_API AwsEc2VpnConnectionDetails(Aws::Utils::Json::JsonView jsonValue)
AwsEc2VpnConnectionDetails & WithCustomerGatewayConfiguration(const char *value)
AwsEc2VpnConnectionDetails & WithState(const Aws::String &value)
AWS_SECURITYHUB_API AwsEc2VpnConnectionDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEc2VpnConnectionDetails & WithCustomerGatewayId(const Aws::String &value)
AwsEc2VpnConnectionDetails & WithVgwTelemetry(Aws::Vector< AwsEc2VpnConnectionVgwTelemetryDetails > &&value)
AwsEc2VpnConnectionDetails & WithType(const char *value)
void SetRoutes(const Aws::Vector< AwsEc2VpnConnectionRoutesDetails > &value)
AwsEc2VpnConnectionDetails & WithCategory(const Aws::String &value)
AwsEc2VpnConnectionDetails & WithTransitGatewayId(const Aws::String &value)
AwsEc2VpnConnectionDetails & WithTransitGatewayId(const char *value)
AwsEc2VpnConnectionDetails & WithOptions(const AwsEc2VpnConnectionOptionsDetails &value)
AwsEc2VpnConnectionDetails & WithCustomerGatewayId(Aws::String &&value)
AwsEc2VpnConnectionDetails & WithVpnGatewayId(Aws::String &&value)
AwsEc2VpnConnectionDetails & WithType(Aws::String &&value)
void SetRoutes(Aws::Vector< AwsEc2VpnConnectionRoutesDetails > &&value)
AwsEc2VpnConnectionDetails & AddVgwTelemetry(const AwsEc2VpnConnectionVgwTelemetryDetails &value)
AwsEc2VpnConnectionDetails & WithCategory(Aws::String &&value)
AwsEc2VpnConnectionDetails & WithVpnGatewayId(const Aws::String &value)
AwsEc2VpnConnectionDetails & AddRoutes(AwsEc2VpnConnectionRoutesDetails &&value)
void SetOptions(const AwsEc2VpnConnectionOptionsDetails &value)
AwsEc2VpnConnectionDetails & WithCustomerGatewayConfiguration(const Aws::String &value)
const Aws::Vector< AwsEc2VpnConnectionVgwTelemetryDetails > & GetVgwTelemetry() const
const AwsEc2VpnConnectionOptionsDetails & GetOptions() const
AwsEc2VpnConnectionDetails & WithVpnGatewayId(const char *value)
AwsEc2VpnConnectionDetails & WithRoutes(const Aws::Vector< AwsEc2VpnConnectionRoutesDetails > &value)
AwsEc2VpnConnectionDetails & WithVpnConnectionId(Aws::String &&value)
AwsEc2VpnConnectionDetails & WithState(Aws::String &&value)
AwsEc2VpnConnectionDetails & WithTransitGatewayId(Aws::String &&value)
AwsEc2VpnConnectionDetails & WithVgwTelemetry(const Aws::Vector< AwsEc2VpnConnectionVgwTelemetryDetails > &value)
AwsEc2VpnConnectionDetails & WithVpnConnectionId(const char *value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsEc2VpnConnectionDetails & WithRoutes(Aws::Vector< AwsEc2VpnConnectionRoutesDetails > &&value)
void SetOptions(AwsEc2VpnConnectionOptionsDetails &&value)
void SetVgwTelemetry(Aws::Vector< AwsEc2VpnConnectionVgwTelemetryDetails > &&value)
AwsEc2VpnConnectionDetails & AddVgwTelemetry(AwsEc2VpnConnectionVgwTelemetryDetails &&value)
AwsEc2VpnConnectionDetails & WithCategory(const char *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