AWS SDK for C++

AWS SDK for C++ Version 1.11.910

Loading...
Searching...
No Matches
CreateVpcConfigurationRequest.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgentRequest.h>
8#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
9#include <aws/bedrock-agent/model/VpcProtocol.h>
10#include <aws/bedrock-agent/model/VpcResolutionMode.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace BedrockAgent {
19namespace Model {
20
24 public:
25 AWS_BEDROCKAGENT_API CreateVpcConfigurationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateVpcConfiguration"; }
32
33 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
41 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
42 template <typename KnowledgeBaseIdT = Aws::String>
44 m_knowledgeBaseIdHasBeenSet = true;
45 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
46 }
47 template <typename KnowledgeBaseIdT = Aws::String>
49 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetClientToken() const { return m_clientToken; }
61 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
62 template <typename ClientTokenT = Aws::String>
64 m_clientTokenHasBeenSet = true;
65 m_clientToken = std::forward<ClientTokenT>(value);
66 }
67 template <typename ClientTokenT = Aws::String>
69 SetClientToken(std::forward<ClientTokenT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetVpcId() const { return m_vpcId; }
80 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
81 template <typename VpcIdT = Aws::String>
82 void SetVpcId(VpcIdT&& value) {
83 m_vpcIdHasBeenSet = true;
84 m_vpcId = std::forward<VpcIdT>(value);
85 }
86 template <typename VpcIdT = Aws::String>
88 SetVpcId(std::forward<VpcIdT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
99 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
100 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
101 void SetSubnetIds(SubnetIdsT&& value) {
102 m_subnetIdsHasBeenSet = true;
103 m_subnetIds = std::forward<SubnetIdsT>(value);
104 }
105 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
107 SetSubnetIds(std::forward<SubnetIdsT>(value));
108 return *this;
109 }
110 template <typename SubnetIdsT = Aws::String>
112 m_subnetIdsHasBeenSet = true;
113 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
114 return *this;
115 }
117
119
128 inline const Aws::String& GetResourceTarget() const { return m_resourceTarget; }
129 inline bool ResourceTargetHasBeenSet() const { return m_resourceTargetHasBeenSet; }
130 template <typename ResourceTargetT = Aws::String>
132 m_resourceTargetHasBeenSet = true;
133 m_resourceTarget = std::forward<ResourceTargetT>(value);
134 }
135 template <typename ResourceTargetT = Aws::String>
137 SetResourceTarget(std::forward<ResourceTargetT>(value));
138 return *this;
139 }
141
143
146 inline int GetPort() const { return m_port; }
147 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
148 inline void SetPort(int value) {
149 m_portHasBeenSet = true;
150 m_port = value;
151 }
153 SetPort(value);
154 return *this;
155 }
157
159
164 inline VpcProtocol GetProtocol() const { return m_protocol; }
165 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
166 inline void SetProtocol(VpcProtocol value) {
167 m_protocolHasBeenSet = true;
168 m_protocol = value;
169 }
171 SetProtocol(value);
172 return *this;
173 }
175
177
192 inline VpcResolutionMode GetResolutionMode() const { return m_resolutionMode; }
193 inline bool ResolutionModeHasBeenSet() const { return m_resolutionModeHasBeenSet; }
195 m_resolutionModeHasBeenSet = true;
196 m_resolutionMode = value;
197 }
199 SetResolutionMode(value);
200 return *this;
201 }
203
205
211 inline const Aws::String& GetHostHeader() const { return m_hostHeader; }
212 inline bool HostHeaderHasBeenSet() const { return m_hostHeaderHasBeenSet; }
213 template <typename HostHeaderT = Aws::String>
215 m_hostHeaderHasBeenSet = true;
216 m_hostHeader = std::forward<HostHeaderT>(value);
217 }
218 template <typename HostHeaderT = Aws::String>
220 SetHostHeader(std::forward<HostHeaderT>(value));
221 return *this;
222 }
224
226
235 inline const Aws::String& GetTlsServerName() const { return m_tlsServerName; }
236 inline bool TlsServerNameHasBeenSet() const { return m_tlsServerNameHasBeenSet; }
237 template <typename TlsServerNameT = Aws::String>
239 m_tlsServerNameHasBeenSet = true;
240 m_tlsServerName = std::forward<TlsServerNameT>(value);
241 }
242 template <typename TlsServerNameT = Aws::String>
244 SetTlsServerName(std::forward<TlsServerNameT>(value));
245 return *this;
246 }
248
250
254 inline const Aws::String& GetName() const { return m_name; }
255 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
256 template <typename NameT = Aws::String>
257 void SetName(NameT&& value) {
258 m_nameHasBeenSet = true;
259 m_name = std::forward<NameT>(value);
260 }
261 template <typename NameT = Aws::String>
263 SetName(std::forward<NameT>(value));
264 return *this;
265 }
267
269
273 inline const Aws::String& GetDescription() const { return m_description; }
274 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
275 template <typename DescriptionT = Aws::String>
277 m_descriptionHasBeenSet = true;
278 m_description = std::forward<DescriptionT>(value);
279 }
280 template <typename DescriptionT = Aws::String>
282 SetDescription(std::forward<DescriptionT>(value));
283 return *this;
284 }
286 private:
287 Aws::String m_knowledgeBaseId;
288
290
291 Aws::String m_vpcId;
292
293 Aws::Vector<Aws::String> m_subnetIds;
294
295 Aws::String m_resourceTarget;
296
297 int m_port{0};
298
300
302
303 Aws::String m_hostHeader;
304
305 Aws::String m_tlsServerName;
306
307 Aws::String m_name;
308
309 Aws::String m_description;
310 bool m_knowledgeBaseIdHasBeenSet = false;
311 bool m_clientTokenHasBeenSet = true;
312 bool m_vpcIdHasBeenSet = false;
313 bool m_subnetIdsHasBeenSet = false;
314 bool m_resourceTargetHasBeenSet = false;
315 bool m_portHasBeenSet = false;
316 bool m_protocolHasBeenSet = false;
317 bool m_resolutionModeHasBeenSet = false;
318 bool m_hostHeaderHasBeenSet = false;
319 bool m_tlsServerNameHasBeenSet = false;
320 bool m_nameHasBeenSet = false;
321 bool m_descriptionHasBeenSet = false;
322};
323
324} // namespace Model
325} // namespace BedrockAgent
326} // namespace Aws
CreateVpcConfigurationRequest & AddSubnetIds(SubnetIdsT &&value)
CreateVpcConfigurationRequest & WithResourceTarget(ResourceTargetT &&value)
CreateVpcConfigurationRequest & WithTlsServerName(TlsServerNameT &&value)
CreateVpcConfigurationRequest & WithDescription(DescriptionT &&value)
CreateVpcConfigurationRequest & WithProtocol(VpcProtocol value)
CreateVpcConfigurationRequest & WithResolutionMode(VpcResolutionMode value)
AWS_BEDROCKAGENT_API CreateVpcConfigurationRequest()=default
CreateVpcConfigurationRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
CreateVpcConfigurationRequest & WithVpcId(VpcIdT &&value)
CreateVpcConfigurationRequest & WithHostHeader(HostHeaderT &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
CreateVpcConfigurationRequest & WithSubnetIds(SubnetIdsT &&value)
CreateVpcConfigurationRequest & WithClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector