AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/RouteFilterPrefix.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 DirectConnect
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_DIRECTCONNECT_API DirectConnectGatewayAssociation();
42 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetDirectConnectGatewayId() const{ return m_directConnectGatewayId; }
50 inline bool DirectConnectGatewayIdHasBeenSet() const { return m_directConnectGatewayIdHasBeenSet; }
51 inline void SetDirectConnectGatewayId(const Aws::String& value) { m_directConnectGatewayIdHasBeenSet = true; m_directConnectGatewayId = value; }
52 inline void SetDirectConnectGatewayId(Aws::String&& value) { m_directConnectGatewayIdHasBeenSet = true; m_directConnectGatewayId = std::move(value); }
53 inline void SetDirectConnectGatewayId(const char* value) { m_directConnectGatewayIdHasBeenSet = true; m_directConnectGatewayId.assign(value); }
58
60
64 inline const Aws::String& GetDirectConnectGatewayOwnerAccount() const{ return m_directConnectGatewayOwnerAccount; }
65 inline bool DirectConnectGatewayOwnerAccountHasBeenSet() const { return m_directConnectGatewayOwnerAccountHasBeenSet; }
66 inline void SetDirectConnectGatewayOwnerAccount(const Aws::String& value) { m_directConnectGatewayOwnerAccountHasBeenSet = true; m_directConnectGatewayOwnerAccount = value; }
67 inline void SetDirectConnectGatewayOwnerAccount(Aws::String&& value) { m_directConnectGatewayOwnerAccountHasBeenSet = true; m_directConnectGatewayOwnerAccount = std::move(value); }
68 inline void SetDirectConnectGatewayOwnerAccount(const char* value) { m_directConnectGatewayOwnerAccountHasBeenSet = true; m_directConnectGatewayOwnerAccount.assign(value); }
73
75
90 inline const DirectConnectGatewayAssociationState& GetAssociationState() const{ return m_associationState; }
91 inline bool AssociationStateHasBeenSet() const { return m_associationStateHasBeenSet; }
92 inline void SetAssociationState(const DirectConnectGatewayAssociationState& value) { m_associationStateHasBeenSet = true; m_associationState = value; }
93 inline void SetAssociationState(DirectConnectGatewayAssociationState&& value) { m_associationStateHasBeenSet = true; m_associationState = std::move(value); }
97
99
102 inline const Aws::String& GetStateChangeError() const{ return m_stateChangeError; }
103 inline bool StateChangeErrorHasBeenSet() const { return m_stateChangeErrorHasBeenSet; }
104 inline void SetStateChangeError(const Aws::String& value) { m_stateChangeErrorHasBeenSet = true; m_stateChangeError = value; }
105 inline void SetStateChangeError(Aws::String&& value) { m_stateChangeErrorHasBeenSet = true; m_stateChangeError = std::move(value); }
106 inline void SetStateChangeError(const char* value) { m_stateChangeErrorHasBeenSet = true; m_stateChangeError.assign(value); }
108 inline DirectConnectGatewayAssociation& WithStateChangeError(Aws::String&& value) { SetStateChangeError(std::move(value)); return *this;}
109 inline DirectConnectGatewayAssociation& WithStateChangeError(const char* value) { SetStateChangeError(value); return *this;}
111
113
116 inline const AssociatedGateway& GetAssociatedGateway() const{ return m_associatedGateway; }
117 inline bool AssociatedGatewayHasBeenSet() const { return m_associatedGatewayHasBeenSet; }
118 inline void SetAssociatedGateway(const AssociatedGateway& value) { m_associatedGatewayHasBeenSet = true; m_associatedGateway = value; }
119 inline void SetAssociatedGateway(AssociatedGateway&& value) { m_associatedGatewayHasBeenSet = true; m_associatedGateway = std::move(value); }
123
125
128 inline const Aws::String& GetAssociationId() const{ return m_associationId; }
129 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
130 inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
131 inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
132 inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
134 inline DirectConnectGatewayAssociation& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
135 inline DirectConnectGatewayAssociation& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
137
139
142 inline const Aws::Vector<RouteFilterPrefix>& GetAllowedPrefixesToDirectConnectGateway() const{ return m_allowedPrefixesToDirectConnectGateway; }
143 inline bool AllowedPrefixesToDirectConnectGatewayHasBeenSet() const { return m_allowedPrefixesToDirectConnectGatewayHasBeenSet; }
144 inline void SetAllowedPrefixesToDirectConnectGateway(const Aws::Vector<RouteFilterPrefix>& value) { m_allowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_allowedPrefixesToDirectConnectGateway = value; }
145 inline void SetAllowedPrefixesToDirectConnectGateway(Aws::Vector<RouteFilterPrefix>&& value) { m_allowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_allowedPrefixesToDirectConnectGateway = std::move(value); }
148 inline DirectConnectGatewayAssociation& AddAllowedPrefixesToDirectConnectGateway(const RouteFilterPrefix& value) { m_allowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_allowedPrefixesToDirectConnectGateway.push_back(value); return *this; }
149 inline DirectConnectGatewayAssociation& AddAllowedPrefixesToDirectConnectGateway(RouteFilterPrefix&& value) { m_allowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_allowedPrefixesToDirectConnectGateway.push_back(std::move(value)); return *this; }
151
153
157 inline const Aws::String& GetVirtualGatewayId() const{ return m_virtualGatewayId; }
158 inline bool VirtualGatewayIdHasBeenSet() const { return m_virtualGatewayIdHasBeenSet; }
159 inline void SetVirtualGatewayId(const Aws::String& value) { m_virtualGatewayIdHasBeenSet = true; m_virtualGatewayId = value; }
160 inline void SetVirtualGatewayId(Aws::String&& value) { m_virtualGatewayIdHasBeenSet = true; m_virtualGatewayId = std::move(value); }
161 inline void SetVirtualGatewayId(const char* value) { m_virtualGatewayIdHasBeenSet = true; m_virtualGatewayId.assign(value); }
163 inline DirectConnectGatewayAssociation& WithVirtualGatewayId(Aws::String&& value) { SetVirtualGatewayId(std::move(value)); return *this;}
164 inline DirectConnectGatewayAssociation& WithVirtualGatewayId(const char* value) { SetVirtualGatewayId(value); return *this;}
166
168
172 inline const Aws::String& GetVirtualGatewayRegion() const{ return m_virtualGatewayRegion; }
173 inline bool VirtualGatewayRegionHasBeenSet() const { return m_virtualGatewayRegionHasBeenSet; }
174 inline void SetVirtualGatewayRegion(const Aws::String& value) { m_virtualGatewayRegionHasBeenSet = true; m_virtualGatewayRegion = value; }
175 inline void SetVirtualGatewayRegion(Aws::String&& value) { m_virtualGatewayRegionHasBeenSet = true; m_virtualGatewayRegion = std::move(value); }
176 inline void SetVirtualGatewayRegion(const char* value) { m_virtualGatewayRegionHasBeenSet = true; m_virtualGatewayRegion.assign(value); }
179 inline DirectConnectGatewayAssociation& WithVirtualGatewayRegion(const char* value) { SetVirtualGatewayRegion(value); return *this;}
181
183
187 inline const Aws::String& GetVirtualGatewayOwnerAccount() const{ return m_virtualGatewayOwnerAccount; }
188 inline bool VirtualGatewayOwnerAccountHasBeenSet() const { return m_virtualGatewayOwnerAccountHasBeenSet; }
189 inline void SetVirtualGatewayOwnerAccount(const Aws::String& value) { m_virtualGatewayOwnerAccountHasBeenSet = true; m_virtualGatewayOwnerAccount = value; }
190 inline void SetVirtualGatewayOwnerAccount(Aws::String&& value) { m_virtualGatewayOwnerAccountHasBeenSet = true; m_virtualGatewayOwnerAccount = std::move(value); }
191 inline void SetVirtualGatewayOwnerAccount(const char* value) { m_virtualGatewayOwnerAccountHasBeenSet = true; m_virtualGatewayOwnerAccount.assign(value); }
196 private:
197
198 Aws::String m_directConnectGatewayId;
199 bool m_directConnectGatewayIdHasBeenSet = false;
200
201 Aws::String m_directConnectGatewayOwnerAccount;
202 bool m_directConnectGatewayOwnerAccountHasBeenSet = false;
203
204 DirectConnectGatewayAssociationState m_associationState;
205 bool m_associationStateHasBeenSet = false;
206
207 Aws::String m_stateChangeError;
208 bool m_stateChangeErrorHasBeenSet = false;
209
210 AssociatedGateway m_associatedGateway;
211 bool m_associatedGatewayHasBeenSet = false;
212
213 Aws::String m_associationId;
214 bool m_associationIdHasBeenSet = false;
215
216 Aws::Vector<RouteFilterPrefix> m_allowedPrefixesToDirectConnectGateway;
217 bool m_allowedPrefixesToDirectConnectGatewayHasBeenSet = false;
218
219 Aws::String m_virtualGatewayId;
220 bool m_virtualGatewayIdHasBeenSet = false;
221
222 Aws::String m_virtualGatewayRegion;
223 bool m_virtualGatewayRegionHasBeenSet = false;
224
225 Aws::String m_virtualGatewayOwnerAccount;
226 bool m_virtualGatewayOwnerAccountHasBeenSet = false;
227 };
228
229} // namespace Model
230} // namespace DirectConnect
231} // namespace Aws
DirectConnectGatewayAssociation & WithAssociationId(const char *value)
void SetAllowedPrefixesToDirectConnectGateway(Aws::Vector< RouteFilterPrefix > &&value)
DirectConnectGatewayAssociation & WithAllowedPrefixesToDirectConnectGateway(Aws::Vector< RouteFilterPrefix > &&value)
DirectConnectGatewayAssociation & WithDirectConnectGatewayOwnerAccount(Aws::String &&value)
DirectConnectGatewayAssociation & WithVirtualGatewayId(const Aws::String &value)
DirectConnectGatewayAssociation & WithDirectConnectGatewayId(Aws::String &&value)
void SetAllowedPrefixesToDirectConnectGateway(const Aws::Vector< RouteFilterPrefix > &value)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
DirectConnectGatewayAssociation & WithAssociationState(const DirectConnectGatewayAssociationState &value)
DirectConnectGatewayAssociation & WithStateChangeError(const char *value)
DirectConnectGatewayAssociation & WithVirtualGatewayOwnerAccount(Aws::String &&value)
DirectConnectGatewayAssociation & WithAllowedPrefixesToDirectConnectGateway(const Aws::Vector< RouteFilterPrefix > &value)
DirectConnectGatewayAssociation & WithDirectConnectGatewayOwnerAccount(const char *value)
DirectConnectGatewayAssociation & WithAssociatedGateway(AssociatedGateway &&value)
DirectConnectGatewayAssociation & WithVirtualGatewayId(const char *value)
DirectConnectGatewayAssociation & WithVirtualGatewayOwnerAccount(const Aws::String &value)
DirectConnectGatewayAssociation & WithStateChangeError(Aws::String &&value)
const DirectConnectGatewayAssociationState & GetAssociationState() const
DirectConnectGatewayAssociation & WithAssociationState(DirectConnectGatewayAssociationState &&value)
DirectConnectGatewayAssociation & WithStateChangeError(const Aws::String &value)
DirectConnectGatewayAssociation & AddAllowedPrefixesToDirectConnectGateway(const RouteFilterPrefix &value)
DirectConnectGatewayAssociation & AddAllowedPrefixesToDirectConnectGateway(RouteFilterPrefix &&value)
DirectConnectGatewayAssociation & WithAssociationId(const Aws::String &value)
DirectConnectGatewayAssociation & WithDirectConnectGatewayId(const char *value)
DirectConnectGatewayAssociation & WithDirectConnectGatewayOwnerAccount(const Aws::String &value)
DirectConnectGatewayAssociation & WithVirtualGatewayOwnerAccount(const char *value)
AWS_DIRECTCONNECT_API DirectConnectGatewayAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< RouteFilterPrefix > & GetAllowedPrefixesToDirectConnectGateway() const
DirectConnectGatewayAssociation & WithAssociationId(Aws::String &&value)
DirectConnectGatewayAssociation & WithVirtualGatewayRegion(const Aws::String &value)
DirectConnectGatewayAssociation & WithVirtualGatewayRegion(const char *value)
DirectConnectGatewayAssociation & WithVirtualGatewayRegion(Aws::String &&value)
DirectConnectGatewayAssociation & WithVirtualGatewayId(Aws::String &&value)
AWS_DIRECTCONNECT_API DirectConnectGatewayAssociation(Aws::Utils::Json::JsonView jsonValue)
DirectConnectGatewayAssociation & WithAssociatedGateway(const AssociatedGateway &value)
void SetAssociationState(DirectConnectGatewayAssociationState &&value)
DirectConnectGatewayAssociation & WithDirectConnectGatewayId(const Aws::String &value)
void SetAssociationState(const 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