AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename VpnConnectionIdT = Aws::String>
51 void SetVpnConnectionId(VpnConnectionIdT&& value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId = std::forward<VpnConnectionIdT>(value); }
52 template<typename VpnConnectionIdT = Aws::String>
53 AwsEc2VpnConnectionDetails& WithVpnConnectionId(VpnConnectionIdT&& value) { SetVpnConnectionId(std::forward<VpnConnectionIdT>(value)); return *this;}
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) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
67 template<typename StateT = Aws::String>
68 AwsEc2VpnConnectionDetails& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
70
72
76 inline const Aws::String& GetCustomerGatewayId() const { return m_customerGatewayId; }
77 inline bool CustomerGatewayIdHasBeenSet() const { return m_customerGatewayIdHasBeenSet; }
78 template<typename CustomerGatewayIdT = Aws::String>
79 void SetCustomerGatewayId(CustomerGatewayIdT&& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = std::forward<CustomerGatewayIdT>(value); }
80 template<typename CustomerGatewayIdT = Aws::String>
81 AwsEc2VpnConnectionDetails& WithCustomerGatewayId(CustomerGatewayIdT&& value) { SetCustomerGatewayId(std::forward<CustomerGatewayIdT>(value)); return *this;}
83
85
89 inline const Aws::String& GetCustomerGatewayConfiguration() const { return m_customerGatewayConfiguration; }
90 inline bool CustomerGatewayConfigurationHasBeenSet() const { return m_customerGatewayConfigurationHasBeenSet; }
91 template<typename CustomerGatewayConfigurationT = Aws::String>
92 void SetCustomerGatewayConfiguration(CustomerGatewayConfigurationT&& value) { m_customerGatewayConfigurationHasBeenSet = true; m_customerGatewayConfiguration = std::forward<CustomerGatewayConfigurationT>(value); }
93 template<typename CustomerGatewayConfigurationT = Aws::String>
94 AwsEc2VpnConnectionDetails& WithCustomerGatewayConfiguration(CustomerGatewayConfigurationT&& value) { SetCustomerGatewayConfiguration(std::forward<CustomerGatewayConfigurationT>(value)); return *this;}
96
98
101 inline const Aws::String& GetType() const { return m_type; }
102 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
103 template<typename TypeT = Aws::String>
104 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
105 template<typename TypeT = Aws::String>
106 AwsEc2VpnConnectionDetails& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
108
110
114 inline const Aws::String& GetVpnGatewayId() const { return m_vpnGatewayId; }
115 inline bool VpnGatewayIdHasBeenSet() const { return m_vpnGatewayIdHasBeenSet; }
116 template<typename VpnGatewayIdT = Aws::String>
117 void SetVpnGatewayId(VpnGatewayIdT&& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = std::forward<VpnGatewayIdT>(value); }
118 template<typename VpnGatewayIdT = Aws::String>
119 AwsEc2VpnConnectionDetails& WithVpnGatewayId(VpnGatewayIdT&& value) { SetVpnGatewayId(std::forward<VpnGatewayIdT>(value)); return *this;}
121
123
128 inline const Aws::String& GetCategory() const { return m_category; }
129 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
130 template<typename CategoryT = Aws::String>
131 void SetCategory(CategoryT&& value) { m_categoryHasBeenSet = true; m_category = std::forward<CategoryT>(value); }
132 template<typename CategoryT = Aws::String>
133 AwsEc2VpnConnectionDetails& WithCategory(CategoryT&& value) { SetCategory(std::forward<CategoryT>(value)); return *this;}
135
137
140 inline const Aws::Vector<AwsEc2VpnConnectionVgwTelemetryDetails>& GetVgwTelemetry() const { return m_vgwTelemetry; }
141 inline bool VgwTelemetryHasBeenSet() const { return m_vgwTelemetryHasBeenSet; }
142 template<typename VgwTelemetryT = Aws::Vector<AwsEc2VpnConnectionVgwTelemetryDetails>>
143 void SetVgwTelemetry(VgwTelemetryT&& value) { m_vgwTelemetryHasBeenSet = true; m_vgwTelemetry = std::forward<VgwTelemetryT>(value); }
144 template<typename VgwTelemetryT = Aws::Vector<AwsEc2VpnConnectionVgwTelemetryDetails>>
145 AwsEc2VpnConnectionDetails& WithVgwTelemetry(VgwTelemetryT&& value) { SetVgwTelemetry(std::forward<VgwTelemetryT>(value)); return *this;}
146 template<typename VgwTelemetryT = AwsEc2VpnConnectionVgwTelemetryDetails>
147 AwsEc2VpnConnectionDetails& AddVgwTelemetry(VgwTelemetryT&& value) { m_vgwTelemetryHasBeenSet = true; m_vgwTelemetry.emplace_back(std::forward<VgwTelemetryT>(value)); return *this; }
149
151
154 inline const AwsEc2VpnConnectionOptionsDetails& GetOptions() const { return m_options; }
155 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
156 template<typename OptionsT = AwsEc2VpnConnectionOptionsDetails>
157 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
158 template<typename OptionsT = AwsEc2VpnConnectionOptionsDetails>
159 AwsEc2VpnConnectionDetails& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
161
163
166 inline const Aws::Vector<AwsEc2VpnConnectionRoutesDetails>& GetRoutes() const { return m_routes; }
167 inline bool RoutesHasBeenSet() const { return m_routesHasBeenSet; }
168 template<typename RoutesT = Aws::Vector<AwsEc2VpnConnectionRoutesDetails>>
169 void SetRoutes(RoutesT&& value) { m_routesHasBeenSet = true; m_routes = std::forward<RoutesT>(value); }
170 template<typename RoutesT = Aws::Vector<AwsEc2VpnConnectionRoutesDetails>>
171 AwsEc2VpnConnectionDetails& WithRoutes(RoutesT&& value) { SetRoutes(std::forward<RoutesT>(value)); return *this;}
172 template<typename RoutesT = AwsEc2VpnConnectionRoutesDetails>
173 AwsEc2VpnConnectionDetails& AddRoutes(RoutesT&& value) { m_routesHasBeenSet = true; m_routes.emplace_back(std::forward<RoutesT>(value)); return *this; }
175
177
181 inline const Aws::String& GetTransitGatewayId() const { return m_transitGatewayId; }
182 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
183 template<typename TransitGatewayIdT = Aws::String>
184 void SetTransitGatewayId(TransitGatewayIdT&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::forward<TransitGatewayIdT>(value); }
185 template<typename TransitGatewayIdT = Aws::String>
186 AwsEc2VpnConnectionDetails& WithTransitGatewayId(TransitGatewayIdT&& value) { SetTransitGatewayId(std::forward<TransitGatewayIdT>(value)); return *this;}
188 private:
189
190 Aws::String m_vpnConnectionId;
191 bool m_vpnConnectionIdHasBeenSet = false;
192
193 Aws::String m_state;
194 bool m_stateHasBeenSet = false;
195
196 Aws::String m_customerGatewayId;
197 bool m_customerGatewayIdHasBeenSet = false;
198
199 Aws::String m_customerGatewayConfiguration;
200 bool m_customerGatewayConfigurationHasBeenSet = false;
201
202 Aws::String m_type;
203 bool m_typeHasBeenSet = false;
204
205 Aws::String m_vpnGatewayId;
206 bool m_vpnGatewayIdHasBeenSet = false;
207
208 Aws::String m_category;
209 bool m_categoryHasBeenSet = false;
210
212 bool m_vgwTelemetryHasBeenSet = false;
213
215 bool m_optionsHasBeenSet = false;
216
218 bool m_routesHasBeenSet = false;
219
220 Aws::String m_transitGatewayId;
221 bool m_transitGatewayIdHasBeenSet = false;
222 };
223
224} // namespace Model
225} // namespace SecurityHub
226} // 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