AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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/bedrock-agent/model/AgentAliasStatus.h>
11#include <aws/bedrock-agent/model/AliasInvocationState.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/bedrock-agent/model/AgentAliasHistoryEvent.h>
14#include <aws/bedrock-agent/model/AgentAliasRoutingConfigurationListItem.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& GetAgentAliasArn() const { return m_agentAliasArn; }
51 inline bool AgentAliasArnHasBeenSet() const { return m_agentAliasArnHasBeenSet; }
52 template<typename AgentAliasArnT = Aws::String>
53 void SetAgentAliasArn(AgentAliasArnT&& value) { m_agentAliasArnHasBeenSet = true; m_agentAliasArn = std::forward<AgentAliasArnT>(value); }
54 template<typename AgentAliasArnT = Aws::String>
55 AgentAlias& WithAgentAliasArn(AgentAliasArnT&& value) { SetAgentAliasArn(std::forward<AgentAliasArnT>(value)); return *this;}
57
59
62 inline const Aws::Vector<AgentAliasHistoryEvent>& GetAgentAliasHistoryEvents() const { return m_agentAliasHistoryEvents; }
63 inline bool AgentAliasHistoryEventsHasBeenSet() const { return m_agentAliasHistoryEventsHasBeenSet; }
64 template<typename AgentAliasHistoryEventsT = Aws::Vector<AgentAliasHistoryEvent>>
65 void SetAgentAliasHistoryEvents(AgentAliasHistoryEventsT&& value) { m_agentAliasHistoryEventsHasBeenSet = true; m_agentAliasHistoryEvents = std::forward<AgentAliasHistoryEventsT>(value); }
66 template<typename AgentAliasHistoryEventsT = Aws::Vector<AgentAliasHistoryEvent>>
67 AgentAlias& WithAgentAliasHistoryEvents(AgentAliasHistoryEventsT&& value) { SetAgentAliasHistoryEvents(std::forward<AgentAliasHistoryEventsT>(value)); return *this;}
68 template<typename AgentAliasHistoryEventsT = AgentAliasHistoryEvent>
69 AgentAlias& AddAgentAliasHistoryEvents(AgentAliasHistoryEventsT&& value) { m_agentAliasHistoryEventsHasBeenSet = true; m_agentAliasHistoryEvents.emplace_back(std::forward<AgentAliasHistoryEventsT>(value)); return *this; }
71
73
76 inline const Aws::String& GetAgentAliasId() const { return m_agentAliasId; }
77 inline bool AgentAliasIdHasBeenSet() const { return m_agentAliasIdHasBeenSet; }
78 template<typename AgentAliasIdT = Aws::String>
79 void SetAgentAliasId(AgentAliasIdT&& value) { m_agentAliasIdHasBeenSet = true; m_agentAliasId = std::forward<AgentAliasIdT>(value); }
80 template<typename AgentAliasIdT = Aws::String>
81 AgentAlias& WithAgentAliasId(AgentAliasIdT&& value) { SetAgentAliasId(std::forward<AgentAliasIdT>(value)); return *this;}
83
85
88 inline const Aws::String& GetAgentAliasName() const { return m_agentAliasName; }
89 inline bool AgentAliasNameHasBeenSet() const { return m_agentAliasNameHasBeenSet; }
90 template<typename AgentAliasNameT = Aws::String>
91 void SetAgentAliasName(AgentAliasNameT&& value) { m_agentAliasNameHasBeenSet = true; m_agentAliasName = std::forward<AgentAliasNameT>(value); }
92 template<typename AgentAliasNameT = Aws::String>
93 AgentAlias& WithAgentAliasName(AgentAliasNameT&& value) { SetAgentAliasName(std::forward<AgentAliasNameT>(value)); return *this;}
95
97
107 inline AgentAliasStatus GetAgentAliasStatus() const { return m_agentAliasStatus; }
108 inline bool AgentAliasStatusHasBeenSet() const { return m_agentAliasStatusHasBeenSet; }
109 inline void SetAgentAliasStatus(AgentAliasStatus value) { m_agentAliasStatusHasBeenSet = true; m_agentAliasStatus = value; }
112
114
117 inline const Aws::String& GetAgentId() const { return m_agentId; }
118 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
119 template<typename AgentIdT = Aws::String>
120 void SetAgentId(AgentIdT&& value) { m_agentIdHasBeenSet = true; m_agentId = std::forward<AgentIdT>(value); }
121 template<typename AgentIdT = Aws::String>
122 AgentAlias& WithAgentId(AgentIdT&& value) { SetAgentId(std::forward<AgentIdT>(value)); return *this;}
124
126
132 inline AliasInvocationState GetAliasInvocationState() const { return m_aliasInvocationState; }
133 inline bool AliasInvocationStateHasBeenSet() const { return m_aliasInvocationStateHasBeenSet; }
134 inline void SetAliasInvocationState(AliasInvocationState value) { m_aliasInvocationStateHasBeenSet = true; m_aliasInvocationState = value; }
137
139
146 inline const Aws::String& GetClientToken() const { return m_clientToken; }
147 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
148 template<typename ClientTokenT = Aws::String>
149 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
150 template<typename ClientTokenT = Aws::String>
151 AgentAlias& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
153
155
158 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
159 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
160 template<typename CreatedAtT = Aws::Utils::DateTime>
161 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
162 template<typename CreatedAtT = Aws::Utils::DateTime>
163 AgentAlias& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
165
167
170 inline const Aws::String& GetDescription() const { return m_description; }
171 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
172 template<typename DescriptionT = Aws::String>
173 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
174 template<typename DescriptionT = Aws::String>
175 AgentAlias& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
177
179
183 inline const Aws::Vector<Aws::String>& GetFailureReasons() const { return m_failureReasons; }
184 inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; }
185 template<typename FailureReasonsT = Aws::Vector<Aws::String>>
186 void SetFailureReasons(FailureReasonsT&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons = std::forward<FailureReasonsT>(value); }
187 template<typename FailureReasonsT = Aws::Vector<Aws::String>>
188 AgentAlias& WithFailureReasons(FailureReasonsT&& value) { SetFailureReasons(std::forward<FailureReasonsT>(value)); return *this;}
189 template<typename FailureReasonsT = Aws::String>
190 AgentAlias& AddFailureReasons(FailureReasonsT&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value)); return *this; }
192
194
197 inline const Aws::Vector<AgentAliasRoutingConfigurationListItem>& GetRoutingConfiguration() const { return m_routingConfiguration; }
198 inline bool RoutingConfigurationHasBeenSet() const { return m_routingConfigurationHasBeenSet; }
199 template<typename RoutingConfigurationT = Aws::Vector<AgentAliasRoutingConfigurationListItem>>
200 void SetRoutingConfiguration(RoutingConfigurationT&& value) { m_routingConfigurationHasBeenSet = true; m_routingConfiguration = std::forward<RoutingConfigurationT>(value); }
201 template<typename RoutingConfigurationT = Aws::Vector<AgentAliasRoutingConfigurationListItem>>
202 AgentAlias& WithRoutingConfiguration(RoutingConfigurationT&& value) { SetRoutingConfiguration(std::forward<RoutingConfigurationT>(value)); return *this;}
203 template<typename RoutingConfigurationT = AgentAliasRoutingConfigurationListItem>
204 AgentAlias& AddRoutingConfiguration(RoutingConfigurationT&& value) { m_routingConfigurationHasBeenSet = true; m_routingConfiguration.emplace_back(std::forward<RoutingConfigurationT>(value)); return *this; }
206
208
211 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
212 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
213 template<typename UpdatedAtT = Aws::Utils::DateTime>
214 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
215 template<typename UpdatedAtT = Aws::Utils::DateTime>
216 AgentAlias& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
218 private:
219
220 Aws::String m_agentAliasArn;
221 bool m_agentAliasArnHasBeenSet = false;
222
223 Aws::Vector<AgentAliasHistoryEvent> m_agentAliasHistoryEvents;
224 bool m_agentAliasHistoryEventsHasBeenSet = false;
225
226 Aws::String m_agentAliasId;
227 bool m_agentAliasIdHasBeenSet = false;
228
229 Aws::String m_agentAliasName;
230 bool m_agentAliasNameHasBeenSet = false;
231
233 bool m_agentAliasStatusHasBeenSet = false;
234
235 Aws::String m_agentId;
236 bool m_agentIdHasBeenSet = false;
237
239 bool m_aliasInvocationStateHasBeenSet = false;
240
241 Aws::String m_clientToken;
242 bool m_clientTokenHasBeenSet = false;
243
244 Aws::Utils::DateTime m_createdAt{};
245 bool m_createdAtHasBeenSet = false;
246
247 Aws::String m_description;
248 bool m_descriptionHasBeenSet = false;
249
250 Aws::Vector<Aws::String> m_failureReasons;
251 bool m_failureReasonsHasBeenSet = false;
252
254 bool m_routingConfigurationHasBeenSet = false;
255
256 Aws::Utils::DateTime m_updatedAt{};
257 bool m_updatedAtHasBeenSet = false;
258 };
259
260} // namespace Model
261} // namespace BedrockAgent
262} // namespace Aws
AgentAlias & WithClientToken(ClientTokenT &&value)
Definition AgentAlias.h:151
void SetAgentAliasName(AgentAliasNameT &&value)
Definition AgentAlias.h:91
AgentAlias & WithRoutingConfiguration(RoutingConfigurationT &&value)
Definition AgentAlias.h:202
const Aws::Vector< AgentAliasRoutingConfigurationListItem > & GetRoutingConfiguration() const
Definition AgentAlias.h:197
AgentAliasStatus GetAgentAliasStatus() const
Definition AgentAlias.h:107
AgentAlias & WithAgentAliasArn(AgentAliasArnT &&value)
Definition AgentAlias.h:55
void SetUpdatedAt(UpdatedAtT &&value)
Definition AgentAlias.h:214
AgentAlias & WithCreatedAt(CreatedAtT &&value)
Definition AgentAlias.h:163
AgentAlias & AddRoutingConfiguration(RoutingConfigurationT &&value)
Definition AgentAlias.h:204
void SetAgentAliasHistoryEvents(AgentAliasHistoryEventsT &&value)
Definition AgentAlias.h:65
AgentAlias & WithUpdatedAt(UpdatedAtT &&value)
Definition AgentAlias.h:216
const Aws::String & GetAgentAliasName() const
Definition AgentAlias.h:88
AgentAlias & WithFailureReasons(FailureReasonsT &&value)
Definition AgentAlias.h:188
const Aws::String & GetDescription() const
Definition AgentAlias.h:170
AWS_BEDROCKAGENT_API AgentAlias()=default
const Aws::Utils::DateTime & GetCreatedAt() const
Definition AgentAlias.h:158
void SetClientToken(ClientTokenT &&value)
Definition AgentAlias.h:149
AgentAlias & WithDescription(DescriptionT &&value)
Definition AgentAlias.h:175
void SetAgentId(AgentIdT &&value)
Definition AgentAlias.h:120
AgentAlias & AddFailureReasons(FailureReasonsT &&value)
Definition AgentAlias.h:190
AgentAlias & WithAgentId(AgentIdT &&value)
Definition AgentAlias.h:122
void SetCreatedAt(CreatedAtT &&value)
Definition AgentAlias.h:161
AliasInvocationState GetAliasInvocationState() const
Definition AgentAlias.h:132
const Aws::String & GetAgentId() const
Definition AgentAlias.h:117
const Aws::String & GetAgentAliasArn() const
Definition AgentAlias.h:50
void SetAliasInvocationState(AliasInvocationState value)
Definition AgentAlias.h:134
const Aws::Vector< Aws::String > & GetFailureReasons() const
Definition AgentAlias.h:183
AgentAlias & WithAgentAliasHistoryEvents(AgentAliasHistoryEventsT &&value)
Definition AgentAlias.h:67
void SetAgentAliasId(AgentAliasIdT &&value)
Definition AgentAlias.h:79
void SetDescription(DescriptionT &&value)
Definition AgentAlias.h:173
const Aws::String & GetClientToken() const
Definition AgentAlias.h:146
AgentAlias & WithAgentAliasId(AgentAliasIdT &&value)
Definition AgentAlias.h:81
AgentAlias & WithAgentAliasStatus(AgentAliasStatus value)
Definition AgentAlias.h:110
void SetRoutingConfiguration(RoutingConfigurationT &&value)
Definition AgentAlias.h:200
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition AgentAlias.h:211
void SetAgentAliasArn(AgentAliasArnT &&value)
Definition AgentAlias.h:53
AgentAlias & AddAgentAliasHistoryEvents(AgentAliasHistoryEventsT &&value)
Definition AgentAlias.h:69
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< AgentAliasHistoryEvent > & GetAgentAliasHistoryEvents() const
Definition AgentAlias.h:62
const Aws::String & GetAgentAliasId() const
Definition AgentAlias.h:76
void SetFailureReasons(FailureReasonsT &&value)
Definition AgentAlias.h:186
void SetAgentAliasStatus(AgentAliasStatus value)
Definition AgentAlias.h:109
AWS_BEDROCKAGENT_API AgentAlias(Aws::Utils::Json::JsonView jsonValue)
AgentAlias & WithAliasInvocationState(AliasInvocationState value)
Definition AgentAlias.h:135
AWS_BEDROCKAGENT_API AgentAlias & operator=(Aws::Utils::Json::JsonView jsonValue)
AgentAlias & WithAgentAliasName(AgentAliasNameT &&value)
Definition AgentAlias.h:93
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue