AWS SDK for C++

AWS SDK for C++ Version 1.11.633

Loading...
Searching...
No Matches
AgentAlias.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/bedrock-agent/model/AgentAliasStatus.h>
12#include <aws/bedrock-agent/model/AliasInvocationState.h>
13#include <aws/bedrock-agent/model/AgentAliasRoutingConfigurationListItem.h>
14#include <aws/bedrock-agent/model/AgentAliasHistoryEvent.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace BedrockAgent
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_BEDROCKAGENT_API AgentAlias() = default;
41 AWS_BEDROCKAGENT_API AgentAlias(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCKAGENT_API AgentAlias& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetAgentId() const { return m_agentId; }
51 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
52 template<typename AgentIdT = Aws::String>
53 void SetAgentId(AgentIdT&& value) { m_agentIdHasBeenSet = true; m_agentId = std::forward<AgentIdT>(value); }
54 template<typename AgentIdT = Aws::String>
55 AgentAlias& WithAgentId(AgentIdT&& value) { SetAgentId(std::forward<AgentIdT>(value)); return *this;}
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>
65 void SetAgentAliasId(AgentAliasIdT&& value) { m_agentAliasIdHasBeenSet = true; m_agentAliasId = std::forward<AgentAliasIdT>(value); }
66 template<typename AgentAliasIdT = Aws::String>
67 AgentAlias& WithAgentAliasId(AgentAliasIdT&& value) { SetAgentAliasId(std::forward<AgentAliasIdT>(value)); return *this;}
69
71
74 inline const Aws::String& GetAgentAliasName() const { return m_agentAliasName; }
75 inline bool AgentAliasNameHasBeenSet() const { return m_agentAliasNameHasBeenSet; }
76 template<typename AgentAliasNameT = Aws::String>
77 void SetAgentAliasName(AgentAliasNameT&& value) { m_agentAliasNameHasBeenSet = true; m_agentAliasName = std::forward<AgentAliasNameT>(value); }
78 template<typename AgentAliasNameT = Aws::String>
79 AgentAlias& WithAgentAliasName(AgentAliasNameT&& value) { SetAgentAliasName(std::forward<AgentAliasNameT>(value)); return *this;}
81
83
86 inline const Aws::String& GetAgentAliasArn() const { return m_agentAliasArn; }
87 inline bool AgentAliasArnHasBeenSet() const { return m_agentAliasArnHasBeenSet; }
88 template<typename AgentAliasArnT = Aws::String>
89 void SetAgentAliasArn(AgentAliasArnT&& value) { m_agentAliasArnHasBeenSet = true; m_agentAliasArn = std::forward<AgentAliasArnT>(value); }
90 template<typename AgentAliasArnT = Aws::String>
91 AgentAlias& WithAgentAliasArn(AgentAliasArnT&& value) { SetAgentAliasArn(std::forward<AgentAliasArnT>(value)); return *this;}
93
95
102 inline const Aws::String& GetClientToken() const { return m_clientToken; }
103 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
104 template<typename ClientTokenT = Aws::String>
105 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
106 template<typename ClientTokenT = Aws::String>
107 AgentAlias& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
109
111
114 inline const Aws::String& GetDescription() const { return m_description; }
115 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
116 template<typename DescriptionT = Aws::String>
117 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
118 template<typename DescriptionT = Aws::String>
119 AgentAlias& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
121
123
126 inline const Aws::Vector<AgentAliasRoutingConfigurationListItem>& GetRoutingConfiguration() const { return m_routingConfiguration; }
127 inline bool RoutingConfigurationHasBeenSet() const { return m_routingConfigurationHasBeenSet; }
128 template<typename RoutingConfigurationT = Aws::Vector<AgentAliasRoutingConfigurationListItem>>
129 void SetRoutingConfiguration(RoutingConfigurationT&& value) { m_routingConfigurationHasBeenSet = true; m_routingConfiguration = std::forward<RoutingConfigurationT>(value); }
130 template<typename RoutingConfigurationT = Aws::Vector<AgentAliasRoutingConfigurationListItem>>
131 AgentAlias& WithRoutingConfiguration(RoutingConfigurationT&& value) { SetRoutingConfiguration(std::forward<RoutingConfigurationT>(value)); return *this;}
132 template<typename RoutingConfigurationT = AgentAliasRoutingConfigurationListItem>
133 AgentAlias& AddRoutingConfiguration(RoutingConfigurationT&& value) { m_routingConfigurationHasBeenSet = true; m_routingConfiguration.emplace_back(std::forward<RoutingConfigurationT>(value)); return *this; }
135
137
140 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
141 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
142 template<typename CreatedAtT = Aws::Utils::DateTime>
143 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
144 template<typename CreatedAtT = Aws::Utils::DateTime>
145 AgentAlias& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
147
149
152 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
153 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
154 template<typename UpdatedAtT = Aws::Utils::DateTime>
155 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
156 template<typename UpdatedAtT = Aws::Utils::DateTime>
157 AgentAlias& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
159
161
164 inline const Aws::Vector<AgentAliasHistoryEvent>& GetAgentAliasHistoryEvents() const { return m_agentAliasHistoryEvents; }
165 inline bool AgentAliasHistoryEventsHasBeenSet() const { return m_agentAliasHistoryEventsHasBeenSet; }
166 template<typename AgentAliasHistoryEventsT = Aws::Vector<AgentAliasHistoryEvent>>
167 void SetAgentAliasHistoryEvents(AgentAliasHistoryEventsT&& value) { m_agentAliasHistoryEventsHasBeenSet = true; m_agentAliasHistoryEvents = std::forward<AgentAliasHistoryEventsT>(value); }
168 template<typename AgentAliasHistoryEventsT = Aws::Vector<AgentAliasHistoryEvent>>
169 AgentAlias& WithAgentAliasHistoryEvents(AgentAliasHistoryEventsT&& value) { SetAgentAliasHistoryEvents(std::forward<AgentAliasHistoryEventsT>(value)); return *this;}
170 template<typename AgentAliasHistoryEventsT = AgentAliasHistoryEvent>
171 AgentAlias& AddAgentAliasHistoryEvents(AgentAliasHistoryEventsT&& value) { m_agentAliasHistoryEventsHasBeenSet = true; m_agentAliasHistoryEvents.emplace_back(std::forward<AgentAliasHistoryEventsT>(value)); return *this; }
173
175
185 inline AgentAliasStatus GetAgentAliasStatus() const { return m_agentAliasStatus; }
186 inline bool AgentAliasStatusHasBeenSet() const { return m_agentAliasStatusHasBeenSet; }
187 inline void SetAgentAliasStatus(AgentAliasStatus value) { m_agentAliasStatusHasBeenSet = true; m_agentAliasStatus = value; }
190
192
196 inline const Aws::Vector<Aws::String>& GetFailureReasons() const { return m_failureReasons; }
197 inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; }
198 template<typename FailureReasonsT = Aws::Vector<Aws::String>>
199 void SetFailureReasons(FailureReasonsT&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons = std::forward<FailureReasonsT>(value); }
200 template<typename FailureReasonsT = Aws::Vector<Aws::String>>
201 AgentAlias& WithFailureReasons(FailureReasonsT&& value) { SetFailureReasons(std::forward<FailureReasonsT>(value)); return *this;}
202 template<typename FailureReasonsT = Aws::String>
203 AgentAlias& AddFailureReasons(FailureReasonsT&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value)); return *this; }
205
207
213 inline AliasInvocationState GetAliasInvocationState() const { return m_aliasInvocationState; }
214 inline bool AliasInvocationStateHasBeenSet() const { return m_aliasInvocationStateHasBeenSet; }
215 inline void SetAliasInvocationState(AliasInvocationState value) { m_aliasInvocationStateHasBeenSet = true; m_aliasInvocationState = value; }
218 private:
219
220 Aws::String m_agentId;
221 bool m_agentIdHasBeenSet = false;
222
223 Aws::String m_agentAliasId;
224 bool m_agentAliasIdHasBeenSet = false;
225
226 Aws::String m_agentAliasName;
227 bool m_agentAliasNameHasBeenSet = false;
228
229 Aws::String m_agentAliasArn;
230 bool m_agentAliasArnHasBeenSet = false;
231
232 Aws::String m_clientToken;
233 bool m_clientTokenHasBeenSet = false;
234
235 Aws::String m_description;
236 bool m_descriptionHasBeenSet = false;
237
239 bool m_routingConfigurationHasBeenSet = false;
240
241 Aws::Utils::DateTime m_createdAt{};
242 bool m_createdAtHasBeenSet = false;
243
244 Aws::Utils::DateTime m_updatedAt{};
245 bool m_updatedAtHasBeenSet = false;
246
247 Aws::Vector<AgentAliasHistoryEvent> m_agentAliasHistoryEvents;
248 bool m_agentAliasHistoryEventsHasBeenSet = false;
249
251 bool m_agentAliasStatusHasBeenSet = false;
252
253 Aws::Vector<Aws::String> m_failureReasons;
254 bool m_failureReasonsHasBeenSet = false;
255
257 bool m_aliasInvocationStateHasBeenSet = false;
258 };
259
260} // namespace Model
261} // namespace BedrockAgent
262} // namespace Aws
AgentAlias & WithClientToken(ClientTokenT &&value)
Definition AgentAlias.h:107
void SetAgentAliasName(AgentAliasNameT &&value)
Definition AgentAlias.h:77
AgentAlias & WithRoutingConfiguration(RoutingConfigurationT &&value)
Definition AgentAlias.h:131
const Aws::Vector< AgentAliasRoutingConfigurationListItem > & GetRoutingConfiguration() const
Definition AgentAlias.h:126
AgentAliasStatus GetAgentAliasStatus() const
Definition AgentAlias.h:185
AgentAlias & WithAgentAliasArn(AgentAliasArnT &&value)
Definition AgentAlias.h:91
void SetUpdatedAt(UpdatedAtT &&value)
Definition AgentAlias.h:155
AgentAlias & WithCreatedAt(CreatedAtT &&value)
Definition AgentAlias.h:145
AgentAlias & AddRoutingConfiguration(RoutingConfigurationT &&value)
Definition AgentAlias.h:133
void SetAgentAliasHistoryEvents(AgentAliasHistoryEventsT &&value)
Definition AgentAlias.h:167
AgentAlias & WithUpdatedAt(UpdatedAtT &&value)
Definition AgentAlias.h:157
const Aws::String & GetAgentAliasName() const
Definition AgentAlias.h:74
AgentAlias & WithFailureReasons(FailureReasonsT &&value)
Definition AgentAlias.h:201
const Aws::String & GetDescription() const
Definition AgentAlias.h:114
AWS_BEDROCKAGENT_API AgentAlias()=default
const Aws::Utils::DateTime & GetCreatedAt() const
Definition AgentAlias.h:140
void SetClientToken(ClientTokenT &&value)
Definition AgentAlias.h:105
AgentAlias & WithDescription(DescriptionT &&value)
Definition AgentAlias.h:119
void SetAgentId(AgentIdT &&value)
Definition AgentAlias.h:53
AgentAlias & AddFailureReasons(FailureReasonsT &&value)
Definition AgentAlias.h:203
AgentAlias & WithAgentId(AgentIdT &&value)
Definition AgentAlias.h:55
void SetCreatedAt(CreatedAtT &&value)
Definition AgentAlias.h:143
AliasInvocationState GetAliasInvocationState() const
Definition AgentAlias.h:213
const Aws::String & GetAgentId() const
Definition AgentAlias.h:50
const Aws::String & GetAgentAliasArn() const
Definition AgentAlias.h:86
void SetAliasInvocationState(AliasInvocationState value)
Definition AgentAlias.h:215
const Aws::Vector< Aws::String > & GetFailureReasons() const
Definition AgentAlias.h:196
AgentAlias & WithAgentAliasHistoryEvents(AgentAliasHistoryEventsT &&value)
Definition AgentAlias.h:169
void SetAgentAliasId(AgentAliasIdT &&value)
Definition AgentAlias.h:65
void SetDescription(DescriptionT &&value)
Definition AgentAlias.h:117
const Aws::String & GetClientToken() const
Definition AgentAlias.h:102
AgentAlias & WithAgentAliasId(AgentAliasIdT &&value)
Definition AgentAlias.h:67
AgentAlias & WithAgentAliasStatus(AgentAliasStatus value)
Definition AgentAlias.h:188
void SetRoutingConfiguration(RoutingConfigurationT &&value)
Definition AgentAlias.h:129
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition AgentAlias.h:152
void SetAgentAliasArn(AgentAliasArnT &&value)
Definition AgentAlias.h:89
AgentAlias & AddAgentAliasHistoryEvents(AgentAliasHistoryEventsT &&value)
Definition AgentAlias.h:171
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< AgentAliasHistoryEvent > & GetAgentAliasHistoryEvents() const
Definition AgentAlias.h:164
const Aws::String & GetAgentAliasId() const
Definition AgentAlias.h:62
void SetFailureReasons(FailureReasonsT &&value)
Definition AgentAlias.h:199
void SetAgentAliasStatus(AgentAliasStatus value)
Definition AgentAlias.h:187
AWS_BEDROCKAGENT_API AgentAlias(Aws::Utils::Json::JsonView jsonValue)
AgentAlias & WithAliasInvocationState(AliasInvocationState value)
Definition AgentAlias.h:216
AWS_BEDROCKAGENT_API AgentAlias & operator=(Aws::Utils::Json::JsonView jsonValue)
AgentAlias & WithAgentAliasName(AgentAliasNameT &&value)
Definition AgentAlias.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue