AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
VpcConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/VpcConfigurationStatus.h>
9#include <aws/bedrock-agent/model/VpcProtocol.h>
10#include <aws/bedrock-agent/model/VpcResolutionMode.h>
11#include <aws/core/utils/DateTime.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 Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockAgent {
25namespace Model {
26
35 public:
36 AWS_BEDROCKAGENT_API VpcConfiguration() = default;
39 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetVpcConfigurationId() const { return m_vpcConfigurationId; }
46 inline bool VpcConfigurationIdHasBeenSet() const { return m_vpcConfigurationIdHasBeenSet; }
47 template <typename VpcConfigurationIdT = Aws::String>
49 m_vpcConfigurationIdHasBeenSet = true;
50 m_vpcConfigurationId = std::forward<VpcConfigurationIdT>(value);
51 }
52 template <typename VpcConfigurationIdT = Aws::String>
54 SetVpcConfigurationId(std::forward<VpcConfigurationIdT>(value));
55 return *this;
56 }
58
60
63 inline VpcConfigurationStatus GetStatus() const { return m_status; }
64 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
65 inline void SetStatus(VpcConfigurationStatus value) {
66 m_statusHasBeenSet = true;
67 m_status = value;
68 }
70 SetStatus(value);
71 return *this;
72 }
74
76
80 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
81 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
82 template <typename StatusMessageT = Aws::String>
84 m_statusMessageHasBeenSet = true;
85 m_statusMessage = std::forward<StatusMessageT>(value);
86 }
87 template <typename StatusMessageT = Aws::String>
89 SetStatusMessage(std::forward<StatusMessageT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetVpcId() const { return m_vpcId; }
100 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
101 template <typename VpcIdT = Aws::String>
102 void SetVpcId(VpcIdT&& value) {
103 m_vpcIdHasBeenSet = true;
104 m_vpcId = std::forward<VpcIdT>(value);
105 }
106 template <typename VpcIdT = Aws::String>
108 SetVpcId(std::forward<VpcIdT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
118 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
119 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
120 void SetSubnetIds(SubnetIdsT&& value) {
121 m_subnetIdsHasBeenSet = true;
122 m_subnetIds = std::forward<SubnetIdsT>(value);
123 }
124 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
126 SetSubnetIds(std::forward<SubnetIdsT>(value));
127 return *this;
128 }
129 template <typename SubnetIdsT = Aws::String>
131 m_subnetIdsHasBeenSet = true;
132 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::String& GetResourceTarget() const { return m_resourceTarget; }
142 inline bool ResourceTargetHasBeenSet() const { return m_resourceTargetHasBeenSet; }
143 template <typename ResourceTargetT = Aws::String>
145 m_resourceTargetHasBeenSet = true;
146 m_resourceTarget = std::forward<ResourceTargetT>(value);
147 }
148 template <typename ResourceTargetT = Aws::String>
150 SetResourceTarget(std::forward<ResourceTargetT>(value));
151 return *this;
152 }
154
156
159 inline int GetPort() const { return m_port; }
160 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
161 inline void SetPort(int value) {
162 m_portHasBeenSet = true;
163 m_port = value;
164 }
165 inline VpcConfiguration& WithPort(int value) {
166 SetPort(value);
167 return *this;
168 }
170
172
175 inline VpcProtocol GetProtocol() const { return m_protocol; }
176 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
177 inline void SetProtocol(VpcProtocol value) {
178 m_protocolHasBeenSet = true;
179 m_protocol = value;
180 }
182 SetProtocol(value);
183 return *this;
184 }
186
188
191 inline VpcResolutionMode GetResolutionMode() const { return m_resolutionMode; }
192 inline bool ResolutionModeHasBeenSet() const { return m_resolutionModeHasBeenSet; }
194 m_resolutionModeHasBeenSet = true;
195 m_resolutionMode = value;
196 }
198 SetResolutionMode(value);
199 return *this;
200 }
202
204
208 inline const Aws::String& GetHostHeader() const { return m_hostHeader; }
209 inline bool HostHeaderHasBeenSet() const { return m_hostHeaderHasBeenSet; }
210 template <typename HostHeaderT = Aws::String>
212 m_hostHeaderHasBeenSet = true;
213 m_hostHeader = std::forward<HostHeaderT>(value);
214 }
215 template <typename HostHeaderT = Aws::String>
217 SetHostHeader(std::forward<HostHeaderT>(value));
218 return *this;
219 }
221
223
228 inline const Aws::String& GetTlsServerName() const { return m_tlsServerName; }
229 inline bool TlsServerNameHasBeenSet() const { return m_tlsServerNameHasBeenSet; }
230 template <typename TlsServerNameT = Aws::String>
232 m_tlsServerNameHasBeenSet = true;
233 m_tlsServerName = std::forward<TlsServerNameT>(value);
234 }
235 template <typename TlsServerNameT = Aws::String>
237 SetTlsServerName(std::forward<TlsServerNameT>(value));
238 return *this;
239 }
241
243
246 inline const Aws::String& GetName() const { return m_name; }
247 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
248 template <typename NameT = Aws::String>
249 void SetName(NameT&& value) {
250 m_nameHasBeenSet = true;
251 m_name = std::forward<NameT>(value);
252 }
253 template <typename NameT = Aws::String>
255 SetName(std::forward<NameT>(value));
256 return *this;
257 }
259
261
264 inline const Aws::String& GetDescription() const { return m_description; }
265 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
266 template <typename DescriptionT = Aws::String>
268 m_descriptionHasBeenSet = true;
269 m_description = std::forward<DescriptionT>(value);
270 }
271 template <typename DescriptionT = Aws::String>
273 SetDescription(std::forward<DescriptionT>(value));
274 return *this;
275 }
277
279
282 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
283 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
284 template <typename CreatedAtT = Aws::Utils::DateTime>
285 void SetCreatedAt(CreatedAtT&& value) {
286 m_createdAtHasBeenSet = true;
287 m_createdAt = std::forward<CreatedAtT>(value);
288 }
289 template <typename CreatedAtT = Aws::Utils::DateTime>
291 SetCreatedAt(std::forward<CreatedAtT>(value));
292 return *this;
293 }
295
297
300 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
301 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
302 template <typename UpdatedAtT = Aws::Utils::DateTime>
303 void SetUpdatedAt(UpdatedAtT&& value) {
304 m_updatedAtHasBeenSet = true;
305 m_updatedAt = std::forward<UpdatedAtT>(value);
306 }
307 template <typename UpdatedAtT = Aws::Utils::DateTime>
309 SetUpdatedAt(std::forward<UpdatedAtT>(value));
310 return *this;
311 }
313 private:
314 Aws::String m_vpcConfigurationId;
315
317
318 Aws::String m_statusMessage;
319
320 Aws::String m_vpcId;
321
322 Aws::Vector<Aws::String> m_subnetIds;
323
324 Aws::String m_resourceTarget;
325
326 int m_port{0};
327
329
331
332 Aws::String m_hostHeader;
333
334 Aws::String m_tlsServerName;
335
336 Aws::String m_name;
337
338 Aws::String m_description;
339
340 Aws::Utils::DateTime m_createdAt{};
341
342 Aws::Utils::DateTime m_updatedAt{};
343 bool m_vpcConfigurationIdHasBeenSet = false;
344 bool m_statusHasBeenSet = false;
345 bool m_statusMessageHasBeenSet = false;
346 bool m_vpcIdHasBeenSet = false;
347 bool m_subnetIdsHasBeenSet = false;
348 bool m_resourceTargetHasBeenSet = false;
349 bool m_portHasBeenSet = false;
350 bool m_protocolHasBeenSet = false;
351 bool m_resolutionModeHasBeenSet = false;
352 bool m_hostHeaderHasBeenSet = false;
353 bool m_tlsServerNameHasBeenSet = false;
354 bool m_nameHasBeenSet = false;
355 bool m_descriptionHasBeenSet = false;
356 bool m_createdAtHasBeenSet = false;
357 bool m_updatedAtHasBeenSet = false;
358};
359
360} // namespace Model
361} // namespace BedrockAgent
362} // namespace Aws
VpcConfiguration & WithSubnetIds(SubnetIdsT &&value)
VpcConfiguration & WithVpcConfigurationId(VpcConfigurationIdT &&value)
VpcConfiguration & AddSubnetIds(SubnetIdsT &&value)
void SetVpcConfigurationId(VpcConfigurationIdT &&value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
VpcConfiguration & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetResourceTarget() const
VpcConfiguration & WithHostHeader(HostHeaderT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetStatusMessage() const
void SetStatusMessage(StatusMessageT &&value)
AWS_BEDROCKAGENT_API VpcConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API VpcConfiguration()=default
const Aws::String & GetTlsServerName() const
void SetStatus(VpcConfigurationStatus value)
VpcConfigurationStatus GetStatus() const
void SetResolutionMode(VpcResolutionMode value)
AWS_BEDROCKAGENT_API VpcConfiguration(Aws::Utils::Json::JsonView jsonValue)
VpcConfiguration & WithName(NameT &&value)
VpcConfiguration & WithStatusMessage(StatusMessageT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
VpcConfiguration & WithTlsServerName(TlsServerNameT &&value)
void SetResourceTarget(ResourceTargetT &&value)
VpcConfiguration & WithResourceTarget(ResourceTargetT &&value)
VpcConfiguration & WithResolutionMode(VpcResolutionMode value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
VpcConfiguration & WithProtocol(VpcProtocol value)
VpcConfiguration & WithCreatedAt(CreatedAtT &&value)
VpcConfiguration & WithDescription(DescriptionT &&value)
VpcConfiguration & WithStatus(VpcConfigurationStatus value)
VpcConfiguration & WithVpcId(VpcIdT &&value)
void SetTlsServerName(TlsServerNameT &&value)
const Aws::String & GetVpcConfigurationId() const
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
Aws::Utils::Json::JsonValue JsonValue