AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DirectConnectGatewayAssociation.h
1
6#pragma once
7#include <aws/directconnect/DirectConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/directconnect/model/DirectConnectGatewayAssociationState.h>
10#include <aws/directconnect/model/AssociatedGateway.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/directconnect/model/AssociatedCoreNetwork.h>
13#include <aws/directconnect/model/RouteFilterPrefix.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace DirectConnect
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_DIRECTCONNECT_API DirectConnectGatewayAssociation() = default;
43 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetDirectConnectGatewayId() const { return m_directConnectGatewayId; }
51 inline bool DirectConnectGatewayIdHasBeenSet() const { return m_directConnectGatewayIdHasBeenSet; }
52 template<typename DirectConnectGatewayIdT = Aws::String>
53 void SetDirectConnectGatewayId(DirectConnectGatewayIdT&& value) { m_directConnectGatewayIdHasBeenSet = true; m_directConnectGatewayId = std::forward<DirectConnectGatewayIdT>(value); }
54 template<typename DirectConnectGatewayIdT = Aws::String>
55 DirectConnectGatewayAssociation& WithDirectConnectGatewayId(DirectConnectGatewayIdT&& value) { SetDirectConnectGatewayId(std::forward<DirectConnectGatewayIdT>(value)); return *this;}
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) { m_directConnectGatewayOwnerAccountHasBeenSet = true; m_directConnectGatewayOwnerAccount = std::forward<DirectConnectGatewayOwnerAccountT>(value); }
67 template<typename DirectConnectGatewayOwnerAccountT = Aws::String>
68 DirectConnectGatewayAssociation& WithDirectConnectGatewayOwnerAccount(DirectConnectGatewayOwnerAccountT&& value) { SetDirectConnectGatewayOwnerAccount(std::forward<DirectConnectGatewayOwnerAccountT>(value)); return *this;}
70
72
87 inline DirectConnectGatewayAssociationState GetAssociationState() const { return m_associationState; }
88 inline bool AssociationStateHasBeenSet() const { return m_associationStateHasBeenSet; }
89 inline void SetAssociationState(DirectConnectGatewayAssociationState value) { m_associationStateHasBeenSet = true; m_associationState = value; }
92
94
97 inline const Aws::String& GetStateChangeError() const { return m_stateChangeError; }
98 inline bool StateChangeErrorHasBeenSet() const { return m_stateChangeErrorHasBeenSet; }
99 template<typename StateChangeErrorT = Aws::String>
100 void SetStateChangeError(StateChangeErrorT&& value) { m_stateChangeErrorHasBeenSet = true; m_stateChangeError = std::forward<StateChangeErrorT>(value); }
101 template<typename StateChangeErrorT = Aws::String>
102 DirectConnectGatewayAssociation& WithStateChangeError(StateChangeErrorT&& value) { SetStateChangeError(std::forward<StateChangeErrorT>(value)); return *this;}
104
106
109 inline const AssociatedGateway& GetAssociatedGateway() const { return m_associatedGateway; }
110 inline bool AssociatedGatewayHasBeenSet() const { return m_associatedGatewayHasBeenSet; }
111 template<typename AssociatedGatewayT = AssociatedGateway>
112 void SetAssociatedGateway(AssociatedGatewayT&& value) { m_associatedGatewayHasBeenSet = true; m_associatedGateway = std::forward<AssociatedGatewayT>(value); }
113 template<typename AssociatedGatewayT = AssociatedGateway>
114 DirectConnectGatewayAssociation& WithAssociatedGateway(AssociatedGatewayT&& value) { SetAssociatedGateway(std::forward<AssociatedGatewayT>(value)); return *this;}
116
118
121 inline const Aws::String& GetAssociationId() const { return m_associationId; }
122 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
123 template<typename AssociationIdT = Aws::String>
124 void SetAssociationId(AssociationIdT&& value) { m_associationIdHasBeenSet = true; m_associationId = std::forward<AssociationIdT>(value); }
125 template<typename AssociationIdT = Aws::String>
126 DirectConnectGatewayAssociation& WithAssociationId(AssociationIdT&& value) { SetAssociationId(std::forward<AssociationIdT>(value)); return *this;}
128
130
133 inline const Aws::Vector<RouteFilterPrefix>& GetAllowedPrefixesToDirectConnectGateway() const { return m_allowedPrefixesToDirectConnectGateway; }
134 inline bool AllowedPrefixesToDirectConnectGatewayHasBeenSet() const { return m_allowedPrefixesToDirectConnectGatewayHasBeenSet; }
135 template<typename AllowedPrefixesToDirectConnectGatewayT = Aws::Vector<RouteFilterPrefix>>
136 void SetAllowedPrefixesToDirectConnectGateway(AllowedPrefixesToDirectConnectGatewayT&& value) { m_allowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_allowedPrefixesToDirectConnectGateway = std::forward<AllowedPrefixesToDirectConnectGatewayT>(value); }
137 template<typename AllowedPrefixesToDirectConnectGatewayT = Aws::Vector<RouteFilterPrefix>>
138 DirectConnectGatewayAssociation& WithAllowedPrefixesToDirectConnectGateway(AllowedPrefixesToDirectConnectGatewayT&& value) { SetAllowedPrefixesToDirectConnectGateway(std::forward<AllowedPrefixesToDirectConnectGatewayT>(value)); return *this;}
139 template<typename AllowedPrefixesToDirectConnectGatewayT = RouteFilterPrefix>
140 DirectConnectGatewayAssociation& AddAllowedPrefixesToDirectConnectGateway(AllowedPrefixesToDirectConnectGatewayT&& value) { m_allowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_allowedPrefixesToDirectConnectGateway.emplace_back(std::forward<AllowedPrefixesToDirectConnectGatewayT>(value)); return *this; }
142
144
148 inline const AssociatedCoreNetwork& GetAssociatedCoreNetwork() const { return m_associatedCoreNetwork; }
149 inline bool AssociatedCoreNetworkHasBeenSet() const { return m_associatedCoreNetworkHasBeenSet; }
150 template<typename AssociatedCoreNetworkT = AssociatedCoreNetwork>
151 void SetAssociatedCoreNetwork(AssociatedCoreNetworkT&& value) { m_associatedCoreNetworkHasBeenSet = true; m_associatedCoreNetwork = std::forward<AssociatedCoreNetworkT>(value); }
152 template<typename AssociatedCoreNetworkT = AssociatedCoreNetwork>
153 DirectConnectGatewayAssociation& WithAssociatedCoreNetwork(AssociatedCoreNetworkT&& value) { SetAssociatedCoreNetwork(std::forward<AssociatedCoreNetworkT>(value)); return *this;}
155
157
161 inline const Aws::String& GetVirtualGatewayId() const { return m_virtualGatewayId; }
162 inline bool VirtualGatewayIdHasBeenSet() const { return m_virtualGatewayIdHasBeenSet; }
163 template<typename VirtualGatewayIdT = Aws::String>
164 void SetVirtualGatewayId(VirtualGatewayIdT&& value) { m_virtualGatewayIdHasBeenSet = true; m_virtualGatewayId = std::forward<VirtualGatewayIdT>(value); }
165 template<typename VirtualGatewayIdT = Aws::String>
166 DirectConnectGatewayAssociation& WithVirtualGatewayId(VirtualGatewayIdT&& value) { SetVirtualGatewayId(std::forward<VirtualGatewayIdT>(value)); return *this;}
168
170
174 inline const Aws::String& GetVirtualGatewayRegion() const { return m_virtualGatewayRegion; }
175 inline bool VirtualGatewayRegionHasBeenSet() const { return m_virtualGatewayRegionHasBeenSet; }
176 template<typename VirtualGatewayRegionT = Aws::String>
177 void SetVirtualGatewayRegion(VirtualGatewayRegionT&& value) { m_virtualGatewayRegionHasBeenSet = true; m_virtualGatewayRegion = std::forward<VirtualGatewayRegionT>(value); }
178 template<typename VirtualGatewayRegionT = Aws::String>
179 DirectConnectGatewayAssociation& WithVirtualGatewayRegion(VirtualGatewayRegionT&& value) { SetVirtualGatewayRegion(std::forward<VirtualGatewayRegionT>(value)); return *this;}
181
183
187 inline const Aws::String& GetVirtualGatewayOwnerAccount() const { return m_virtualGatewayOwnerAccount; }
188 inline bool VirtualGatewayOwnerAccountHasBeenSet() const { return m_virtualGatewayOwnerAccountHasBeenSet; }
189 template<typename VirtualGatewayOwnerAccountT = Aws::String>
190 void SetVirtualGatewayOwnerAccount(VirtualGatewayOwnerAccountT&& value) { m_virtualGatewayOwnerAccountHasBeenSet = true; m_virtualGatewayOwnerAccount = std::forward<VirtualGatewayOwnerAccountT>(value); }
191 template<typename VirtualGatewayOwnerAccountT = Aws::String>
192 DirectConnectGatewayAssociation& WithVirtualGatewayOwnerAccount(VirtualGatewayOwnerAccountT&& value) { SetVirtualGatewayOwnerAccount(std::forward<VirtualGatewayOwnerAccountT>(value)); return *this;}
194 private:
195
196 Aws::String m_directConnectGatewayId;
197 bool m_directConnectGatewayIdHasBeenSet = false;
198
199 Aws::String m_directConnectGatewayOwnerAccount;
200 bool m_directConnectGatewayOwnerAccountHasBeenSet = false;
201
203 bool m_associationStateHasBeenSet = false;
204
205 Aws::String m_stateChangeError;
206 bool m_stateChangeErrorHasBeenSet = false;
207
208 AssociatedGateway m_associatedGateway;
209 bool m_associatedGatewayHasBeenSet = false;
210
211 Aws::String m_associationId;
212 bool m_associationIdHasBeenSet = false;
213
214 Aws::Vector<RouteFilterPrefix> m_allowedPrefixesToDirectConnectGateway;
215 bool m_allowedPrefixesToDirectConnectGatewayHasBeenSet = false;
216
217 AssociatedCoreNetwork m_associatedCoreNetwork;
218 bool m_associatedCoreNetworkHasBeenSet = false;
219
220 Aws::String m_virtualGatewayId;
221 bool m_virtualGatewayIdHasBeenSet = false;
222
223 Aws::String m_virtualGatewayRegion;
224 bool m_virtualGatewayRegionHasBeenSet = false;
225
226 Aws::String m_virtualGatewayOwnerAccount;
227 bool m_virtualGatewayOwnerAccountHasBeenSet = false;
228 };
229
230} // namespace Model
231} // namespace DirectConnect
232} // 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