AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DirectConnectGatewayAssociationProposal.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/DirectConnectGatewayAssociationProposalState.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 DirectConnectGatewayAssociationProposal() = default;
42 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetProposalId() const { return m_proposalId; }
50 inline bool ProposalIdHasBeenSet() const { return m_proposalIdHasBeenSet; }
51 template<typename ProposalIdT = Aws::String>
52 void SetProposalId(ProposalIdT&& value) { m_proposalIdHasBeenSet = true; m_proposalId = std::forward<ProposalIdT>(value); }
53 template<typename ProposalIdT = Aws::String>
54 DirectConnectGatewayAssociationProposal& WithProposalId(ProposalIdT&& value) { SetProposalId(std::forward<ProposalIdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetDirectConnectGatewayId() const { return m_directConnectGatewayId; }
62 inline bool DirectConnectGatewayIdHasBeenSet() const { return m_directConnectGatewayIdHasBeenSet; }
63 template<typename DirectConnectGatewayIdT = Aws::String>
64 void SetDirectConnectGatewayId(DirectConnectGatewayIdT&& value) { m_directConnectGatewayIdHasBeenSet = true; m_directConnectGatewayId = std::forward<DirectConnectGatewayIdT>(value); }
65 template<typename DirectConnectGatewayIdT = Aws::String>
66 DirectConnectGatewayAssociationProposal& WithDirectConnectGatewayId(DirectConnectGatewayIdT&& value) { SetDirectConnectGatewayId(std::forward<DirectConnectGatewayIdT>(value)); return *this;}
68
70
74 inline const Aws::String& GetDirectConnectGatewayOwnerAccount() const { return m_directConnectGatewayOwnerAccount; }
75 inline bool DirectConnectGatewayOwnerAccountHasBeenSet() const { return m_directConnectGatewayOwnerAccountHasBeenSet; }
76 template<typename DirectConnectGatewayOwnerAccountT = Aws::String>
77 void SetDirectConnectGatewayOwnerAccount(DirectConnectGatewayOwnerAccountT&& value) { m_directConnectGatewayOwnerAccountHasBeenSet = true; m_directConnectGatewayOwnerAccount = std::forward<DirectConnectGatewayOwnerAccountT>(value); }
78 template<typename DirectConnectGatewayOwnerAccountT = Aws::String>
79 DirectConnectGatewayAssociationProposal& WithDirectConnectGatewayOwnerAccount(DirectConnectGatewayOwnerAccountT&& value) { SetDirectConnectGatewayOwnerAccount(std::forward<DirectConnectGatewayOwnerAccountT>(value)); return *this;}
81
83
93 inline DirectConnectGatewayAssociationProposalState GetProposalState() const { return m_proposalState; }
94 inline bool ProposalStateHasBeenSet() const { return m_proposalStateHasBeenSet; }
95 inline void SetProposalState(DirectConnectGatewayAssociationProposalState value) { m_proposalStateHasBeenSet = true; m_proposalState = value; }
98
100
103 inline const AssociatedGateway& GetAssociatedGateway() const { return m_associatedGateway; }
104 inline bool AssociatedGatewayHasBeenSet() const { return m_associatedGatewayHasBeenSet; }
105 template<typename AssociatedGatewayT = AssociatedGateway>
106 void SetAssociatedGateway(AssociatedGatewayT&& value) { m_associatedGatewayHasBeenSet = true; m_associatedGateway = std::forward<AssociatedGatewayT>(value); }
107 template<typename AssociatedGatewayT = AssociatedGateway>
108 DirectConnectGatewayAssociationProposal& WithAssociatedGateway(AssociatedGatewayT&& value) { SetAssociatedGateway(std::forward<AssociatedGatewayT>(value)); return *this;}
110
112
116 inline const Aws::Vector<RouteFilterPrefix>& GetExistingAllowedPrefixesToDirectConnectGateway() const { return m_existingAllowedPrefixesToDirectConnectGateway; }
117 inline bool ExistingAllowedPrefixesToDirectConnectGatewayHasBeenSet() const { return m_existingAllowedPrefixesToDirectConnectGatewayHasBeenSet; }
118 template<typename ExistingAllowedPrefixesToDirectConnectGatewayT = Aws::Vector<RouteFilterPrefix>>
119 void SetExistingAllowedPrefixesToDirectConnectGateway(ExistingAllowedPrefixesToDirectConnectGatewayT&& value) { m_existingAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_existingAllowedPrefixesToDirectConnectGateway = std::forward<ExistingAllowedPrefixesToDirectConnectGatewayT>(value); }
120 template<typename ExistingAllowedPrefixesToDirectConnectGatewayT = Aws::Vector<RouteFilterPrefix>>
121 DirectConnectGatewayAssociationProposal& WithExistingAllowedPrefixesToDirectConnectGateway(ExistingAllowedPrefixesToDirectConnectGatewayT&& value) { SetExistingAllowedPrefixesToDirectConnectGateway(std::forward<ExistingAllowedPrefixesToDirectConnectGatewayT>(value)); return *this;}
122 template<typename ExistingAllowedPrefixesToDirectConnectGatewayT = RouteFilterPrefix>
123 DirectConnectGatewayAssociationProposal& AddExistingAllowedPrefixesToDirectConnectGateway(ExistingAllowedPrefixesToDirectConnectGatewayT&& value) { m_existingAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_existingAllowedPrefixesToDirectConnectGateway.emplace_back(std::forward<ExistingAllowedPrefixesToDirectConnectGatewayT>(value)); return *this; }
125
127
130 inline const Aws::Vector<RouteFilterPrefix>& GetRequestedAllowedPrefixesToDirectConnectGateway() const { return m_requestedAllowedPrefixesToDirectConnectGateway; }
131 inline bool RequestedAllowedPrefixesToDirectConnectGatewayHasBeenSet() const { return m_requestedAllowedPrefixesToDirectConnectGatewayHasBeenSet; }
132 template<typename RequestedAllowedPrefixesToDirectConnectGatewayT = Aws::Vector<RouteFilterPrefix>>
133 void SetRequestedAllowedPrefixesToDirectConnectGateway(RequestedAllowedPrefixesToDirectConnectGatewayT&& value) { m_requestedAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_requestedAllowedPrefixesToDirectConnectGateway = std::forward<RequestedAllowedPrefixesToDirectConnectGatewayT>(value); }
134 template<typename RequestedAllowedPrefixesToDirectConnectGatewayT = Aws::Vector<RouteFilterPrefix>>
135 DirectConnectGatewayAssociationProposal& WithRequestedAllowedPrefixesToDirectConnectGateway(RequestedAllowedPrefixesToDirectConnectGatewayT&& value) { SetRequestedAllowedPrefixesToDirectConnectGateway(std::forward<RequestedAllowedPrefixesToDirectConnectGatewayT>(value)); return *this;}
136 template<typename RequestedAllowedPrefixesToDirectConnectGatewayT = RouteFilterPrefix>
137 DirectConnectGatewayAssociationProposal& AddRequestedAllowedPrefixesToDirectConnectGateway(RequestedAllowedPrefixesToDirectConnectGatewayT&& value) { m_requestedAllowedPrefixesToDirectConnectGatewayHasBeenSet = true; m_requestedAllowedPrefixesToDirectConnectGateway.emplace_back(std::forward<RequestedAllowedPrefixesToDirectConnectGatewayT>(value)); return *this; }
139 private:
140
141 Aws::String m_proposalId;
142 bool m_proposalIdHasBeenSet = false;
143
144 Aws::String m_directConnectGatewayId;
145 bool m_directConnectGatewayIdHasBeenSet = false;
146
147 Aws::String m_directConnectGatewayOwnerAccount;
148 bool m_directConnectGatewayOwnerAccountHasBeenSet = false;
149
151 bool m_proposalStateHasBeenSet = false;
152
153 AssociatedGateway m_associatedGateway;
154 bool m_associatedGatewayHasBeenSet = false;
155
156 Aws::Vector<RouteFilterPrefix> m_existingAllowedPrefixesToDirectConnectGateway;
157 bool m_existingAllowedPrefixesToDirectConnectGatewayHasBeenSet = false;
158
159 Aws::Vector<RouteFilterPrefix> m_requestedAllowedPrefixesToDirectConnectGateway;
160 bool m_requestedAllowedPrefixesToDirectConnectGatewayHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace DirectConnect
165} // namespace Aws
DirectConnectGatewayAssociationProposal & WithDirectConnectGatewayId(DirectConnectGatewayIdT &&value)
DirectConnectGatewayAssociationProposal & WithRequestedAllowedPrefixesToDirectConnectGateway(RequestedAllowedPrefixesToDirectConnectGatewayT &&value)
void SetRequestedAllowedPrefixesToDirectConnectGateway(RequestedAllowedPrefixesToDirectConnectGatewayT &&value)
void SetExistingAllowedPrefixesToDirectConnectGateway(ExistingAllowedPrefixesToDirectConnectGatewayT &&value)
DirectConnectGatewayAssociationProposal & WithExistingAllowedPrefixesToDirectConnectGateway(ExistingAllowedPrefixesToDirectConnectGatewayT &&value)
AWS_DIRECTCONNECT_API DirectConnectGatewayAssociationProposal & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DIRECTCONNECT_API DirectConnectGatewayAssociationProposal(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< RouteFilterPrefix > & GetExistingAllowedPrefixesToDirectConnectGateway() const
DirectConnectGatewayAssociationProposal & WithProposalId(ProposalIdT &&value)
DirectConnectGatewayAssociationProposal & AddRequestedAllowedPrefixesToDirectConnectGateway(RequestedAllowedPrefixesToDirectConnectGatewayT &&value)
DirectConnectGatewayAssociationProposal & WithAssociatedGateway(AssociatedGatewayT &&value)
DirectConnectGatewayAssociationProposal & WithProposalState(DirectConnectGatewayAssociationProposalState value)
const Aws::Vector< RouteFilterPrefix > & GetRequestedAllowedPrefixesToDirectConnectGateway() const
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
DirectConnectGatewayAssociationProposal & WithDirectConnectGatewayOwnerAccount(DirectConnectGatewayOwnerAccountT &&value)
DirectConnectGatewayAssociationProposal & AddExistingAllowedPrefixesToDirectConnectGateway(ExistingAllowedPrefixesToDirectConnectGatewayT &&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