AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AgentAlias.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/AgentAliasHistoryEvent.h>
9#include <aws/bedrock-agent/model/AgentAliasRoutingConfigurationListItem.h>
10#include <aws/bedrock-agent/model/AgentAliasStatus.h>
11#include <aws/bedrock-agent/model/AliasInvocationState.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace BedrockAgent {
26namespace Model {
27
34 public:
35 AWS_BEDROCKAGENT_API AgentAlias() = default;
38 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetAgentId() const { return m_agentId; }
45 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
46 template <typename AgentIdT = Aws::String>
47 void SetAgentId(AgentIdT&& value) {
48 m_agentIdHasBeenSet = true;
49 m_agentId = std::forward<AgentIdT>(value);
50 }
51 template <typename AgentIdT = Aws::String>
53 SetAgentId(std::forward<AgentIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetAgentAliasId() const { return m_agentAliasId; }
63 inline bool AgentAliasIdHasBeenSet() const { return m_agentAliasIdHasBeenSet; }
64 template <typename AgentAliasIdT = Aws::String>
66 m_agentAliasIdHasBeenSet = true;
67 m_agentAliasId = std::forward<AgentAliasIdT>(value);
68 }
69 template <typename AgentAliasIdT = Aws::String>
71 SetAgentAliasId(std::forward<AgentAliasIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetAgentAliasName() const { return m_agentAliasName; }
81 inline bool AgentAliasNameHasBeenSet() const { return m_agentAliasNameHasBeenSet; }
82 template <typename AgentAliasNameT = Aws::String>
84 m_agentAliasNameHasBeenSet = true;
85 m_agentAliasName = std::forward<AgentAliasNameT>(value);
86 }
87 template <typename AgentAliasNameT = Aws::String>
89 SetAgentAliasName(std::forward<AgentAliasNameT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetAgentAliasArn() const { return m_agentAliasArn; }
99 inline bool AgentAliasArnHasBeenSet() const { return m_agentAliasArnHasBeenSet; }
100 template <typename AgentAliasArnT = Aws::String>
102 m_agentAliasArnHasBeenSet = true;
103 m_agentAliasArn = std::forward<AgentAliasArnT>(value);
104 }
105 template <typename AgentAliasArnT = Aws::String>
107 SetAgentAliasArn(std::forward<AgentAliasArnT>(value));
108 return *this;
109 }
111
113
120 inline const Aws::String& GetClientToken() const { return m_clientToken; }
121 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
122 template <typename ClientTokenT = Aws::String>
124 m_clientTokenHasBeenSet = true;
125 m_clientToken = std::forward<ClientTokenT>(value);
126 }
127 template <typename ClientTokenT = Aws::String>
129 SetClientToken(std::forward<ClientTokenT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetDescription() const { return m_description; }
139 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
140 template <typename DescriptionT = Aws::String>
142 m_descriptionHasBeenSet = true;
143 m_description = std::forward<DescriptionT>(value);
144 }
145 template <typename DescriptionT = Aws::String>
147 SetDescription(std::forward<DescriptionT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::Vector<AgentAliasRoutingConfigurationListItem>& GetRoutingConfiguration() const { return m_routingConfiguration; }
157 inline bool RoutingConfigurationHasBeenSet() const { return m_routingConfigurationHasBeenSet; }
158 template <typename RoutingConfigurationT = Aws::Vector<AgentAliasRoutingConfigurationListItem>>
160 m_routingConfigurationHasBeenSet = true;
161 m_routingConfiguration = std::forward<RoutingConfigurationT>(value);
162 }
163 template <typename RoutingConfigurationT = Aws::Vector<AgentAliasRoutingConfigurationListItem>>
165 SetRoutingConfiguration(std::forward<RoutingConfigurationT>(value));
166 return *this;
167 }
168 template <typename RoutingConfigurationT = AgentAliasRoutingConfigurationListItem>
170 m_routingConfigurationHasBeenSet = true;
171 m_routingConfiguration.emplace_back(std::forward<RoutingConfigurationT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
181 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
182 template <typename CreatedAtT = Aws::Utils::DateTime>
183 void SetCreatedAt(CreatedAtT&& value) {
184 m_createdAtHasBeenSet = true;
185 m_createdAt = std::forward<CreatedAtT>(value);
186 }
187 template <typename CreatedAtT = Aws::Utils::DateTime>
189 SetCreatedAt(std::forward<CreatedAtT>(value));
190 return *this;
191 }
193
195
198 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
199 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
200 template <typename UpdatedAtT = Aws::Utils::DateTime>
201 void SetUpdatedAt(UpdatedAtT&& value) {
202 m_updatedAtHasBeenSet = true;
203 m_updatedAt = std::forward<UpdatedAtT>(value);
204 }
205 template <typename UpdatedAtT = Aws::Utils::DateTime>
207 SetUpdatedAt(std::forward<UpdatedAtT>(value));
208 return *this;
209 }
211
213
216 inline const Aws::Vector<AgentAliasHistoryEvent>& GetAgentAliasHistoryEvents() const { return m_agentAliasHistoryEvents; }
217 inline bool AgentAliasHistoryEventsHasBeenSet() const { return m_agentAliasHistoryEventsHasBeenSet; }
218 template <typename AgentAliasHistoryEventsT = Aws::Vector<AgentAliasHistoryEvent>>
220 m_agentAliasHistoryEventsHasBeenSet = true;
221 m_agentAliasHistoryEvents = std::forward<AgentAliasHistoryEventsT>(value);
222 }
223 template <typename AgentAliasHistoryEventsT = Aws::Vector<AgentAliasHistoryEvent>>
225 SetAgentAliasHistoryEvents(std::forward<AgentAliasHistoryEventsT>(value));
226 return *this;
227 }
228 template <typename AgentAliasHistoryEventsT = AgentAliasHistoryEvent>
230 m_agentAliasHistoryEventsHasBeenSet = true;
231 m_agentAliasHistoryEvents.emplace_back(std::forward<AgentAliasHistoryEventsT>(value));
232 return *this;
233 }
235
237
247 inline AgentAliasStatus GetAgentAliasStatus() const { return m_agentAliasStatus; }
248 inline bool AgentAliasStatusHasBeenSet() const { return m_agentAliasStatusHasBeenSet; }
250 m_agentAliasStatusHasBeenSet = true;
251 m_agentAliasStatus = value;
252 }
254 SetAgentAliasStatus(value);
255 return *this;
256 }
258
260
264 inline const Aws::Vector<Aws::String>& GetFailureReasons() const { return m_failureReasons; }
265 inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; }
266 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
268 m_failureReasonsHasBeenSet = true;
269 m_failureReasons = std::forward<FailureReasonsT>(value);
270 }
271 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
273 SetFailureReasons(std::forward<FailureReasonsT>(value));
274 return *this;
275 }
276 template <typename FailureReasonsT = Aws::String>
278 m_failureReasonsHasBeenSet = true;
279 m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value));
280 return *this;
281 }
283
285
291 inline AliasInvocationState GetAliasInvocationState() const { return m_aliasInvocationState; }
292 inline bool AliasInvocationStateHasBeenSet() const { return m_aliasInvocationStateHasBeenSet; }
294 m_aliasInvocationStateHasBeenSet = true;
295 m_aliasInvocationState = value;
296 }
299 return *this;
300 }
302 private:
303 Aws::String m_agentId;
304
305 Aws::String m_agentAliasId;
306
307 Aws::String m_agentAliasName;
308
309 Aws::String m_agentAliasArn;
310
311 Aws::String m_clientToken;
312
313 Aws::String m_description;
314
316
317 Aws::Utils::DateTime m_createdAt{};
318
319 Aws::Utils::DateTime m_updatedAt{};
320
321 Aws::Vector<AgentAliasHistoryEvent> m_agentAliasHistoryEvents;
322
324
325 Aws::Vector<Aws::String> m_failureReasons;
326
328 bool m_agentIdHasBeenSet = false;
329 bool m_agentAliasIdHasBeenSet = false;
330 bool m_agentAliasNameHasBeenSet = false;
331 bool m_agentAliasArnHasBeenSet = false;
332 bool m_clientTokenHasBeenSet = false;
333 bool m_descriptionHasBeenSet = false;
334 bool m_routingConfigurationHasBeenSet = false;
335 bool m_createdAtHasBeenSet = false;
336 bool m_updatedAtHasBeenSet = false;
337 bool m_agentAliasHistoryEventsHasBeenSet = false;
338 bool m_agentAliasStatusHasBeenSet = false;
339 bool m_failureReasonsHasBeenSet = false;
340 bool m_aliasInvocationStateHasBeenSet = false;
341};
342
343} // namespace Model
344} // namespace BedrockAgent
345} // namespace Aws
AgentAlias & WithClientToken(ClientTokenT &&value)
Definition AgentAlias.h:128
void SetAgentAliasName(AgentAliasNameT &&value)
Definition AgentAlias.h:83
AgentAlias & WithRoutingConfiguration(RoutingConfigurationT &&value)
Definition AgentAlias.h:164
const Aws::Vector< AgentAliasRoutingConfigurationListItem > & GetRoutingConfiguration() const
Definition AgentAlias.h:156
AgentAliasStatus GetAgentAliasStatus() const
Definition AgentAlias.h:247
AgentAlias & WithAgentAliasArn(AgentAliasArnT &&value)
Definition AgentAlias.h:106
void SetUpdatedAt(UpdatedAtT &&value)
Definition AgentAlias.h:201
AgentAlias & WithCreatedAt(CreatedAtT &&value)
Definition AgentAlias.h:188
AgentAlias & AddRoutingConfiguration(RoutingConfigurationT &&value)
Definition AgentAlias.h:169
void SetAgentAliasHistoryEvents(AgentAliasHistoryEventsT &&value)
Definition AgentAlias.h:219
AgentAlias & WithUpdatedAt(UpdatedAtT &&value)
Definition AgentAlias.h:206
const Aws::String & GetAgentAliasName() const
Definition AgentAlias.h:80
AgentAlias & WithFailureReasons(FailureReasonsT &&value)
Definition AgentAlias.h:272
const Aws::String & GetDescription() const
Definition AgentAlias.h:138
AWS_BEDROCKAGENT_API AgentAlias()=default
const Aws::Utils::DateTime & GetCreatedAt() const
Definition AgentAlias.h:180
void SetClientToken(ClientTokenT &&value)
Definition AgentAlias.h:123
AgentAlias & WithDescription(DescriptionT &&value)
Definition AgentAlias.h:146
void SetAgentId(AgentIdT &&value)
Definition AgentAlias.h:47
AgentAlias & AddFailureReasons(FailureReasonsT &&value)
Definition AgentAlias.h:277
AgentAlias & WithAgentId(AgentIdT &&value)
Definition AgentAlias.h:52
void SetCreatedAt(CreatedAtT &&value)
Definition AgentAlias.h:183
AliasInvocationState GetAliasInvocationState() const
Definition AgentAlias.h:291
const Aws::String & GetAgentId() const
Definition AgentAlias.h:44
const Aws::String & GetAgentAliasArn() const
Definition AgentAlias.h:98
void SetAliasInvocationState(AliasInvocationState value)
Definition AgentAlias.h:293
const Aws::Vector< Aws::String > & GetFailureReasons() const
Definition AgentAlias.h:264
AgentAlias & WithAgentAliasHistoryEvents(AgentAliasHistoryEventsT &&value)
Definition AgentAlias.h:224
void SetAgentAliasId(AgentAliasIdT &&value)
Definition AgentAlias.h:65
void SetDescription(DescriptionT &&value)
Definition AgentAlias.h:141
const Aws::String & GetClientToken() const
Definition AgentAlias.h:120
AgentAlias & WithAgentAliasId(AgentAliasIdT &&value)
Definition AgentAlias.h:70
AgentAlias & WithAgentAliasStatus(AgentAliasStatus value)
Definition AgentAlias.h:253
void SetRoutingConfiguration(RoutingConfigurationT &&value)
Definition AgentAlias.h:159
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition AgentAlias.h:198
void SetAgentAliasArn(AgentAliasArnT &&value)
Definition AgentAlias.h:101
AgentAlias & AddAgentAliasHistoryEvents(AgentAliasHistoryEventsT &&value)
Definition AgentAlias.h:229
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< AgentAliasHistoryEvent > & GetAgentAliasHistoryEvents() const
Definition AgentAlias.h:216
const Aws::String & GetAgentAliasId() const
Definition AgentAlias.h:62
void SetFailureReasons(FailureReasonsT &&value)
Definition AgentAlias.h:267
void SetAgentAliasStatus(AgentAliasStatus value)
Definition AgentAlias.h:249
AWS_BEDROCKAGENT_API AgentAlias(Aws::Utils::Json::JsonView jsonValue)
AgentAlias & WithAliasInvocationState(AliasInvocationState value)
Definition AgentAlias.h:297
AWS_BEDROCKAGENT_API AgentAlias & operator=(Aws::Utils::Json::JsonView jsonValue)
AgentAlias & WithAgentAliasName(AgentAliasNameT &&value)
Definition AgentAlias.h:88
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