AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
CreateVpcAttachmentRequest.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/NatGatewaySupportValue.h>
13#include <aws/networkmanager/model/NatRuleRequest.h>
14#include <aws/networkmanager/model/Tag.h>
15#include <aws/networkmanager/model/VpcOptions.h>
16
17#include <utility>
18
19namespace Aws {
20namespace NetworkManager {
21namespace Model {
22
26 public:
27 AWS_NETWORKMANAGER_API CreateVpcAttachmentRequest() = 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 "CreateVpcAttachment"; }
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& GetVpcArn() const { return m_vpcArn; }
60 inline bool VpcArnHasBeenSet() const { return m_vpcArnHasBeenSet; }
61 template <typename VpcArnT = Aws::String>
62 void SetVpcArn(VpcArnT&& value) {
63 m_vpcArnHasBeenSet = true;
64 m_vpcArn = std::forward<VpcArnT>(value);
65 }
66 template <typename VpcArnT = Aws::String>
68 SetVpcArn(std::forward<VpcArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<Aws::String>& GetSubnetArns() const { return m_subnetArns; }
78 inline bool SubnetArnsHasBeenSet() const { return m_subnetArnsHasBeenSet; }
79 template <typename SubnetArnsT = Aws::Vector<Aws::String>>
80 void SetSubnetArns(SubnetArnsT&& value) {
81 m_subnetArnsHasBeenSet = true;
82 m_subnetArns = std::forward<SubnetArnsT>(value);
83 }
84 template <typename SubnetArnsT = Aws::Vector<Aws::String>>
86 SetSubnetArns(std::forward<SubnetArnsT>(value));
87 return *this;
88 }
89 template <typename SubnetArnsT = Aws::String>
91 m_subnetArnsHasBeenSet = true;
92 m_subnetArns.emplace_back(std::forward<SubnetArnsT>(value));
93 return *this;
94 }
96
98
101 inline const VpcOptions& GetOptions() const { return m_options; }
102 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
103 template <typename OptionsT = VpcOptions>
104 void SetOptions(OptionsT&& value) {
105 m_optionsHasBeenSet = true;
106 m_options = std::forward<OptionsT>(value);
107 }
108 template <typename OptionsT = VpcOptions>
110 SetOptions(std::forward<OptionsT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::String& GetRoutingPolicyLabel() const { return m_routingPolicyLabel; }
121 inline bool RoutingPolicyLabelHasBeenSet() const { return m_routingPolicyLabelHasBeenSet; }
122 template <typename RoutingPolicyLabelT = Aws::String>
123 void SetRoutingPolicyLabel(RoutingPolicyLabelT&& value) {
124 m_routingPolicyLabelHasBeenSet = true;
125 m_routingPolicyLabel = std::forward<RoutingPolicyLabelT>(value);
126 }
127 template <typename RoutingPolicyLabelT = Aws::String>
129 SetRoutingPolicyLabel(std::forward<RoutingPolicyLabelT>(value));
130 return *this;
131 }
133
135
141 inline NatGatewaySupportValue GetNatGatewaySupport() const { return m_natGatewaySupport; }
142 inline bool NatGatewaySupportHasBeenSet() const { return m_natGatewaySupportHasBeenSet; }
144 m_natGatewaySupportHasBeenSet = true;
145 m_natGatewaySupport = value;
146 }
152
154
157 inline const Aws::Vector<NatRuleRequest>& GetNatGatewayRules() const { return m_natGatewayRules; }
158 inline bool NatGatewayRulesHasBeenSet() const { return m_natGatewayRulesHasBeenSet; }
159 template <typename NatGatewayRulesT = Aws::Vector<NatRuleRequest>>
160 void SetNatGatewayRules(NatGatewayRulesT&& value) {
161 m_natGatewayRulesHasBeenSet = true;
162 m_natGatewayRules = std::forward<NatGatewayRulesT>(value);
163 }
164 template <typename NatGatewayRulesT = Aws::Vector<NatRuleRequest>>
166 SetNatGatewayRules(std::forward<NatGatewayRulesT>(value));
167 return *this;
168 }
169 template <typename NatGatewayRulesT = NatRuleRequest>
171 m_natGatewayRulesHasBeenSet = true;
172 m_natGatewayRules.emplace_back(std::forward<NatGatewayRulesT>(value));
173 return *this;
174 }
176
178
181 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
182 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
183 template <typename TagsT = Aws::Vector<Tag>>
184 void SetTags(TagsT&& value) {
185 m_tagsHasBeenSet = true;
186 m_tags = std::forward<TagsT>(value);
187 }
188 template <typename TagsT = Aws::Vector<Tag>>
190 SetTags(std::forward<TagsT>(value));
191 return *this;
192 }
193 template <typename TagsT = Tag>
195 m_tagsHasBeenSet = true;
196 m_tags.emplace_back(std::forward<TagsT>(value));
197 return *this;
198 }
200
202
205 inline const Aws::String& GetClientToken() const { return m_clientToken; }
206 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
207 template <typename ClientTokenT = Aws::String>
208 void SetClientToken(ClientTokenT&& value) {
209 m_clientTokenHasBeenSet = true;
210 m_clientToken = std::forward<ClientTokenT>(value);
211 }
212 template <typename ClientTokenT = Aws::String>
214 SetClientToken(std::forward<ClientTokenT>(value));
215 return *this;
216 }
218 private:
219 Aws::String m_coreNetworkId;
220
221 Aws::String m_vpcArn;
222
223 Aws::Vector<Aws::String> m_subnetArns;
224
225 VpcOptions m_options;
226
227 Aws::String m_routingPolicyLabel;
228
230
231 Aws::Vector<NatRuleRequest> m_natGatewayRules;
232
233 Aws::Vector<Tag> m_tags;
234
236 bool m_coreNetworkIdHasBeenSet = false;
237 bool m_vpcArnHasBeenSet = false;
238 bool m_subnetArnsHasBeenSet = false;
239 bool m_optionsHasBeenSet = false;
240 bool m_routingPolicyLabelHasBeenSet = false;
241 bool m_natGatewaySupportHasBeenSet = false;
242 bool m_natGatewayRulesHasBeenSet = false;
243 bool m_tagsHasBeenSet = false;
244 bool m_clientTokenHasBeenSet = true;
245};
246
247} // namespace Model
248} // namespace NetworkManager
249} // namespace Aws
CreateVpcAttachmentRequest & WithClientToken(ClientTokenT &&value)
CreateVpcAttachmentRequest & AddSubnetArns(SubnetArnsT &&value)
const Aws::Vector< Aws::String > & GetSubnetArns() const
AWS_NETWORKMANAGER_API CreateVpcAttachmentRequest()=default
CreateVpcAttachmentRequest & WithRoutingPolicyLabel(RoutingPolicyLabelT &&value)
const Aws::Vector< NatRuleRequest > & GetNatGatewayRules() const
CreateVpcAttachmentRequest & AddNatGatewayRules(NatGatewayRulesT &&value)
CreateVpcAttachmentRequest & WithCoreNetworkId(CoreNetworkIdT &&value)
CreateVpcAttachmentRequest & WithSubnetArns(SubnetArnsT &&value)
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
CreateVpcAttachmentRequest & WithOptions(OptionsT &&value)
CreateVpcAttachmentRequest & WithNatGatewaySupport(NatGatewaySupportValue value)
CreateVpcAttachmentRequest & WithVpcArn(VpcArnT &&value)
CreateVpcAttachmentRequest & WithNatGatewayRules(NatGatewayRulesT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector