AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DirectConnectGatewayAssociation.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/directconnect/DirectConnect_EXPORTS.h>
10#include <aws/directconnect/model/AssociatedCoreNetwork.h>
11#include <aws/directconnect/model/AssociatedGateway.h>
12#include <aws/directconnect/model/DirectConnectGatewayAssociationState.h>
13#include <aws/directconnect/model/RouteFilterPrefix.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DirectConnect {
25namespace Model {
26
34 public:
35 AWS_DIRECTCONNECT_API DirectConnectGatewayAssociation() = default;
38 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetDirectConnectGatewayId() const { return m_directConnectGatewayId; }
45 inline bool DirectConnectGatewayIdHasBeenSet() const { return m_directConnectGatewayIdHasBeenSet; }
46 template <typename DirectConnectGatewayIdT = Aws::String>
47 void SetDirectConnectGatewayId(DirectConnectGatewayIdT&& value) {
48 m_directConnectGatewayIdHasBeenSet = true;
49 m_directConnectGatewayId = std::forward<DirectConnectGatewayIdT>(value);
50 }
51 template <typename DirectConnectGatewayIdT = Aws::String>
53 SetDirectConnectGatewayId(std::forward<DirectConnectGatewayIdT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetDirectConnectGatewayOwnerAccount() const { return m_directConnectGatewayOwnerAccount; }
64 inline bool DirectConnectGatewayOwnerAccountHasBeenSet() const { return m_directConnectGatewayOwnerAccountHasBeenSet; }
65 template <typename DirectConnectGatewayOwnerAccountT = Aws::String>
66 void SetDirectConnectGatewayOwnerAccount(DirectConnectGatewayOwnerAccountT&& value) {
67 m_directConnectGatewayOwnerAccountHasBeenSet = true;
68 m_directConnectGatewayOwnerAccount = std::forward<DirectConnectGatewayOwnerAccountT>(value);
69 }
70 template <typename DirectConnectGatewayOwnerAccountT = Aws::String>
71 DirectConnectGatewayAssociation& WithDirectConnectGatewayOwnerAccount(DirectConnectGatewayOwnerAccountT&& value) {
72 SetDirectConnectGatewayOwnerAccount(std::forward<DirectConnectGatewayOwnerAccountT>(value));
73 return *this;
74 }
76
78
93 inline DirectConnectGatewayAssociationState GetAssociationState() const { return m_associationState; }
94 inline bool AssociationStateHasBeenSet() const { return m_associationStateHasBeenSet; }
96 m_associationStateHasBeenSet = true;
97 m_associationState = value;
98 }
100 SetAssociationState(value);
101 return *this;
102 }
104
106
109 inline const Aws::String& GetStateChangeError() const { return m_stateChangeError; }
110 inline bool StateChangeErrorHasBeenSet() const { return m_stateChangeErrorHasBeenSet; }
111 template <typename StateChangeErrorT = Aws::String>
112 void SetStateChangeError(StateChangeErrorT&& value) {
113 m_stateChangeErrorHasBeenSet = true;
114 m_stateChangeError = std::forward<StateChangeErrorT>(value);
115 }
116 template <typename StateChangeErrorT = Aws::String>
118 SetStateChangeError(std::forward<StateChangeErrorT>(value));
119 return *this;
120 }
122
124
127 inline const AssociatedGateway& GetAssociatedGateway() const { return m_associatedGateway; }
128 inline bool AssociatedGatewayHasBeenSet() const { return m_associatedGatewayHasBeenSet; }
129 template <typename AssociatedGatewayT = AssociatedGateway>
130 void SetAssociatedGateway(AssociatedGatewayT&& value) {
131 m_associatedGatewayHasBeenSet = true;
132 m_associatedGateway = std::forward<AssociatedGatewayT>(value);
133 }
134 template <typename AssociatedGatewayT = AssociatedGateway>
136 SetAssociatedGateway(std::forward<AssociatedGatewayT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetAssociationId() const { return m_associationId; }
146 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
147 template <typename AssociationIdT = Aws::String>
148 void SetAssociationId(AssociationIdT&& value) {
149 m_associationIdHasBeenSet = true;
150 m_associationId = std::forward<AssociationIdT>(value);
151 }
152 template <typename AssociationIdT = Aws::String>
154 SetAssociationId(std::forward<AssociationIdT>(value));
155 return *this;
156 }
158
160
164 return m_allowedPrefixesToDirectConnectGateway;
165 }
166 inline bool AllowedPrefixesToDirectConnectGatewayHasBeenSet() const { return m_allowedPrefixesToDirectConnectGatewayHasBeenSet; }
167 template <typename AllowedPrefixesToDirectConnectGatewayT = Aws::Vector<RouteFilterPrefix>>
168 void SetAllowedPrefixesToDirectConnectGateway(AllowedPrefixesToDirectConnectGatewayT&& value) {
169 m_allowedPrefixesToDirectConnectGatewayHasBeenSet = true;
170 m_allowedPrefixesToDirectConnectGateway = std::forward<AllowedPrefixesToDirectConnectGatewayT>(value);
171 }
172 template <typename AllowedPrefixesToDirectConnectGatewayT = Aws::Vector<RouteFilterPrefix>>
173 DirectConnectGatewayAssociation& WithAllowedPrefixesToDirectConnectGateway(AllowedPrefixesToDirectConnectGatewayT&& value) {
174 SetAllowedPrefixesToDirectConnectGateway(std::forward<AllowedPrefixesToDirectConnectGatewayT>(value));
175 return *this;
176 }
177 template <typename AllowedPrefixesToDirectConnectGatewayT = RouteFilterPrefix>
178 DirectConnectGatewayAssociation& AddAllowedPrefixesToDirectConnectGateway(AllowedPrefixesToDirectConnectGatewayT&& value) {
179 m_allowedPrefixesToDirectConnectGatewayHasBeenSet = true;
180 m_allowedPrefixesToDirectConnectGateway.emplace_back(std::forward<AllowedPrefixesToDirectConnectGatewayT>(value));
181 return *this;
182 }
184
186
190 inline const AssociatedCoreNetwork& GetAssociatedCoreNetwork() const { return m_associatedCoreNetwork; }
191 inline bool AssociatedCoreNetworkHasBeenSet() const { return m_associatedCoreNetworkHasBeenSet; }
192 template <typename AssociatedCoreNetworkT = AssociatedCoreNetwork>
193 void SetAssociatedCoreNetwork(AssociatedCoreNetworkT&& value) {
194 m_associatedCoreNetworkHasBeenSet = true;
195 m_associatedCoreNetwork = std::forward<AssociatedCoreNetworkT>(value);
196 }
197 template <typename AssociatedCoreNetworkT = AssociatedCoreNetwork>
199 SetAssociatedCoreNetwork(std::forward<AssociatedCoreNetworkT>(value));
200 return *this;
201 }
203
205
209 inline const Aws::String& GetVirtualGatewayId() const { return m_virtualGatewayId; }
210 inline bool VirtualGatewayIdHasBeenSet() const { return m_virtualGatewayIdHasBeenSet; }
211 template <typename VirtualGatewayIdT = Aws::String>
212 void SetVirtualGatewayId(VirtualGatewayIdT&& value) {
213 m_virtualGatewayIdHasBeenSet = true;
214 m_virtualGatewayId = std::forward<VirtualGatewayIdT>(value);
215 }
216 template <typename VirtualGatewayIdT = Aws::String>
218 SetVirtualGatewayId(std::forward<VirtualGatewayIdT>(value));
219 return *this;
220 }
222
224
228 inline const Aws::String& GetVirtualGatewayRegion() const { return m_virtualGatewayRegion; }
229 inline bool VirtualGatewayRegionHasBeenSet() const { return m_virtualGatewayRegionHasBeenSet; }
230 template <typename VirtualGatewayRegionT = Aws::String>
231 void SetVirtualGatewayRegion(VirtualGatewayRegionT&& value) {
232 m_virtualGatewayRegionHasBeenSet = true;
233 m_virtualGatewayRegion = std::forward<VirtualGatewayRegionT>(value);
234 }
235 template <typename VirtualGatewayRegionT = Aws::String>
237 SetVirtualGatewayRegion(std::forward<VirtualGatewayRegionT>(value));
238 return *this;
239 }
241
243
247 inline const Aws::String& GetVirtualGatewayOwnerAccount() const { return m_virtualGatewayOwnerAccount; }
248 inline bool VirtualGatewayOwnerAccountHasBeenSet() const { return m_virtualGatewayOwnerAccountHasBeenSet; }
249 template <typename VirtualGatewayOwnerAccountT = Aws::String>
250 void SetVirtualGatewayOwnerAccount(VirtualGatewayOwnerAccountT&& value) {
251 m_virtualGatewayOwnerAccountHasBeenSet = true;
252 m_virtualGatewayOwnerAccount = std::forward<VirtualGatewayOwnerAccountT>(value);
253 }
254 template <typename VirtualGatewayOwnerAccountT = Aws::String>
256 SetVirtualGatewayOwnerAccount(std::forward<VirtualGatewayOwnerAccountT>(value));
257 return *this;
258 }
260 private:
261 Aws::String m_directConnectGatewayId;
262
263 Aws::String m_directConnectGatewayOwnerAccount;
264
266
267 Aws::String m_stateChangeError;
268
269 AssociatedGateway m_associatedGateway;
270
271 Aws::String m_associationId;
272
273 Aws::Vector<RouteFilterPrefix> m_allowedPrefixesToDirectConnectGateway;
274
275 AssociatedCoreNetwork m_associatedCoreNetwork;
276
277 Aws::String m_virtualGatewayId;
278
279 Aws::String m_virtualGatewayRegion;
280
281 Aws::String m_virtualGatewayOwnerAccount;
282 bool m_directConnectGatewayIdHasBeenSet = false;
283 bool m_directConnectGatewayOwnerAccountHasBeenSet = false;
284 bool m_associationStateHasBeenSet = false;
285 bool m_stateChangeErrorHasBeenSet = false;
286 bool m_associatedGatewayHasBeenSet = false;
287 bool m_associationIdHasBeenSet = false;
288 bool m_allowedPrefixesToDirectConnectGatewayHasBeenSet = false;
289 bool m_associatedCoreNetworkHasBeenSet = false;
290 bool m_virtualGatewayIdHasBeenSet = false;
291 bool m_virtualGatewayRegionHasBeenSet = false;
292 bool m_virtualGatewayOwnerAccountHasBeenSet = false;
293};
294
295} // namespace Model
296} // namespace DirectConnect
297} // namespace Aws
DirectConnectGatewayAssociation & WithAssociatedCoreNetwork(AssociatedCoreNetworkT &&value)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
DirectConnectGatewayAssociation & WithVirtualGatewayRegion(VirtualGatewayRegionT &&value)
DirectConnectGatewayAssociation & AddAllowedPrefixesToDirectConnectGateway(AllowedPrefixesToDirectConnectGatewayT &&value)
DirectConnectGatewayAssociation & WithAssociationId(AssociationIdT &&value)
DirectConnectGatewayAssociation & WithStateChangeError(StateChangeErrorT &&value)
DirectConnectGatewayAssociation & WithAllowedPrefixesToDirectConnectGateway(AllowedPrefixesToDirectConnectGatewayT &&value)
DirectConnectGatewayAssociation & WithDirectConnectGatewayOwnerAccount(DirectConnectGatewayOwnerAccountT &&value)
AWS_DIRECTCONNECT_API DirectConnectGatewayAssociation()=default
DirectConnectGatewayAssociation & WithDirectConnectGatewayId(DirectConnectGatewayIdT &&value)
void SetDirectConnectGatewayOwnerAccount(DirectConnectGatewayOwnerAccountT &&value)
AWS_DIRECTCONNECT_API DirectConnectGatewayAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAssociationState(DirectConnectGatewayAssociationState value)
DirectConnectGatewayAssociation & WithVirtualGatewayOwnerAccount(VirtualGatewayOwnerAccountT &&value)
const Aws::Vector< RouteFilterPrefix > & GetAllowedPrefixesToDirectConnectGateway() const
AWS_DIRECTCONNECT_API DirectConnectGatewayAssociation(Aws::Utils::Json::JsonView jsonValue)
DirectConnectGatewayAssociation & WithVirtualGatewayId(VirtualGatewayIdT &&value)
void SetAllowedPrefixesToDirectConnectGateway(AllowedPrefixesToDirectConnectGatewayT &&value)
DirectConnectGatewayAssociation & WithAssociatedGateway(AssociatedGatewayT &&value)
DirectConnectGatewayAssociation & WithAssociationState(DirectConnectGatewayAssociationState 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