AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
CreateConnectAttachmentRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/networkmanager/NetworkManagerRequest.h>
11#include <aws/networkmanager/NetworkManager_EXPORTS.h>
12#include <aws/networkmanager/model/ConnectAttachmentOptions.h>
13#include <aws/networkmanager/model/NatGatewaySupportValue.h>
14#include <aws/networkmanager/model/NatRuleRequest.h>
15#include <aws/networkmanager/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace NetworkManager {
21namespace Model {
22
26 public:
27 AWS_NETWORKMANAGER_API CreateConnectAttachmentRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateConnectAttachment"; }
34
35 AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetCoreNetworkId() const { return m_coreNetworkId; }
42 inline bool CoreNetworkIdHasBeenSet() const { return m_coreNetworkIdHasBeenSet; }
43 template <typename CoreNetworkIdT = Aws::String>
44 void SetCoreNetworkId(CoreNetworkIdT&& value) {
45 m_coreNetworkIdHasBeenSet = true;
46 m_coreNetworkId = std::forward<CoreNetworkIdT>(value);
47 }
48 template <typename CoreNetworkIdT = Aws::String>
50 SetCoreNetworkId(std::forward<CoreNetworkIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetEdgeLocation() const { return m_edgeLocation; }
60 inline bool EdgeLocationHasBeenSet() const { return m_edgeLocationHasBeenSet; }
61 template <typename EdgeLocationT = Aws::String>
62 void SetEdgeLocation(EdgeLocationT&& value) {
63 m_edgeLocationHasBeenSet = true;
64 m_edgeLocation = std::forward<EdgeLocationT>(value);
65 }
66 template <typename EdgeLocationT = Aws::String>
68 SetEdgeLocation(std::forward<EdgeLocationT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetTransportAttachmentId() const { return m_transportAttachmentId; }
78 inline bool TransportAttachmentIdHasBeenSet() const { return m_transportAttachmentIdHasBeenSet; }
79 template <typename TransportAttachmentIdT = Aws::String>
80 void SetTransportAttachmentId(TransportAttachmentIdT&& value) {
81 m_transportAttachmentIdHasBeenSet = true;
82 m_transportAttachmentId = std::forward<TransportAttachmentIdT>(value);
83 }
84 template <typename TransportAttachmentIdT = Aws::String>
86 SetTransportAttachmentId(std::forward<TransportAttachmentIdT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetRoutingPolicyLabel() const { return m_routingPolicyLabel; }
97 inline bool RoutingPolicyLabelHasBeenSet() const { return m_routingPolicyLabelHasBeenSet; }
98 template <typename RoutingPolicyLabelT = Aws::String>
99 void SetRoutingPolicyLabel(RoutingPolicyLabelT&& value) {
100 m_routingPolicyLabelHasBeenSet = true;
101 m_routingPolicyLabel = std::forward<RoutingPolicyLabelT>(value);
102 }
103 template <typename RoutingPolicyLabelT = Aws::String>
105 SetRoutingPolicyLabel(std::forward<RoutingPolicyLabelT>(value));
106 return *this;
107 }
109
111
119 inline NatGatewaySupportValue GetNatGatewaySupport() const { return m_natGatewaySupport; }
120 inline bool NatGatewaySupportHasBeenSet() const { return m_natGatewaySupportHasBeenSet; }
122 m_natGatewaySupportHasBeenSet = true;
123 m_natGatewaySupport = value;
124 }
130
132
135 inline const Aws::Vector<NatRuleRequest>& GetNatGatewayRules() const { return m_natGatewayRules; }
136 inline bool NatGatewayRulesHasBeenSet() const { return m_natGatewayRulesHasBeenSet; }
137 template <typename NatGatewayRulesT = Aws::Vector<NatRuleRequest>>
138 void SetNatGatewayRules(NatGatewayRulesT&& value) {
139 m_natGatewayRulesHasBeenSet = true;
140 m_natGatewayRules = std::forward<NatGatewayRulesT>(value);
141 }
142 template <typename NatGatewayRulesT = Aws::Vector<NatRuleRequest>>
144 SetNatGatewayRules(std::forward<NatGatewayRulesT>(value));
145 return *this;
146 }
147 template <typename NatGatewayRulesT = NatRuleRequest>
149 m_natGatewayRulesHasBeenSet = true;
150 m_natGatewayRules.emplace_back(std::forward<NatGatewayRulesT>(value));
151 return *this;
152 }
154
156
159 inline const ConnectAttachmentOptions& GetOptions() const { return m_options; }
160 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
161 template <typename OptionsT = ConnectAttachmentOptions>
162 void SetOptions(OptionsT&& value) {
163 m_optionsHasBeenSet = true;
164 m_options = std::forward<OptionsT>(value);
165 }
166 template <typename OptionsT = ConnectAttachmentOptions>
168 SetOptions(std::forward<OptionsT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
178 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
179 template <typename TagsT = Aws::Vector<Tag>>
180 void SetTags(TagsT&& value) {
181 m_tagsHasBeenSet = true;
182 m_tags = std::forward<TagsT>(value);
183 }
184 template <typename TagsT = Aws::Vector<Tag>>
186 SetTags(std::forward<TagsT>(value));
187 return *this;
188 }
189 template <typename TagsT = Tag>
191 m_tagsHasBeenSet = true;
192 m_tags.emplace_back(std::forward<TagsT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::String& GetClientToken() const { return m_clientToken; }
202 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
203 template <typename ClientTokenT = Aws::String>
204 void SetClientToken(ClientTokenT&& value) {
205 m_clientTokenHasBeenSet = true;
206 m_clientToken = std::forward<ClientTokenT>(value);
207 }
208 template <typename ClientTokenT = Aws::String>
210 SetClientToken(std::forward<ClientTokenT>(value));
211 return *this;
212 }
214 private:
215 Aws::String m_coreNetworkId;
216
217 Aws::String m_edgeLocation;
218
219 Aws::String m_transportAttachmentId;
220
221 Aws::String m_routingPolicyLabel;
222
224
225 Aws::Vector<NatRuleRequest> m_natGatewayRules;
226
227 ConnectAttachmentOptions m_options;
228
229 Aws::Vector<Tag> m_tags;
230
232 bool m_coreNetworkIdHasBeenSet = false;
233 bool m_edgeLocationHasBeenSet = false;
234 bool m_transportAttachmentIdHasBeenSet = false;
235 bool m_routingPolicyLabelHasBeenSet = false;
236 bool m_natGatewaySupportHasBeenSet = false;
237 bool m_natGatewayRulesHasBeenSet = false;
238 bool m_optionsHasBeenSet = false;
239 bool m_tagsHasBeenSet = false;
240 bool m_clientTokenHasBeenSet = true;
241};
242
243} // namespace Model
244} // namespace NetworkManager
245} // namespace Aws
CreateConnectAttachmentRequest & WithCoreNetworkId(CoreNetworkIdT &&value)
CreateConnectAttachmentRequest & WithClientToken(ClientTokenT &&value)
CreateConnectAttachmentRequest & WithTransportAttachmentId(TransportAttachmentIdT &&value)
CreateConnectAttachmentRequest & WithNatGatewayRules(NatGatewayRulesT &&value)
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
CreateConnectAttachmentRequest & WithOptions(OptionsT &&value)
CreateConnectAttachmentRequest & WithNatGatewaySupport(NatGatewaySupportValue value)
CreateConnectAttachmentRequest & WithRoutingPolicyLabel(RoutingPolicyLabelT &&value)
CreateConnectAttachmentRequest & AddNatGatewayRules(NatGatewayRulesT &&value)
CreateConnectAttachmentRequest & WithEdgeLocation(EdgeLocationT &&value)
AWS_NETWORKMANAGER_API CreateConnectAttachmentRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector