AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/core/utils/DateTime.h>
12#include <aws/bedrock-agent/model/AgentAliasHistoryEvent.h>
13#include <aws/bedrock-agent/model/AgentAliasRoutingConfigurationListItem.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace BedrockAgent
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_BEDROCKAGENT_API AgentAlias();
40 AWS_BEDROCKAGENT_API AgentAlias(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKAGENT_API AgentAlias& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetAgentAliasArn() const{ return m_agentAliasArn; }
50 inline bool AgentAliasArnHasBeenSet() const { return m_agentAliasArnHasBeenSet; }
51 inline void SetAgentAliasArn(const Aws::String& value) { m_agentAliasArnHasBeenSet = true; m_agentAliasArn = value; }
52 inline void SetAgentAliasArn(Aws::String&& value) { m_agentAliasArnHasBeenSet = true; m_agentAliasArn = std::move(value); }
53 inline void SetAgentAliasArn(const char* value) { m_agentAliasArnHasBeenSet = true; m_agentAliasArn.assign(value); }
54 inline AgentAlias& WithAgentAliasArn(const Aws::String& value) { SetAgentAliasArn(value); return *this;}
55 inline AgentAlias& WithAgentAliasArn(Aws::String&& value) { SetAgentAliasArn(std::move(value)); return *this;}
56 inline AgentAlias& WithAgentAliasArn(const char* value) { SetAgentAliasArn(value); return *this;}
58
60
63 inline const Aws::Vector<AgentAliasHistoryEvent>& GetAgentAliasHistoryEvents() const{ return m_agentAliasHistoryEvents; }
64 inline bool AgentAliasHistoryEventsHasBeenSet() const { return m_agentAliasHistoryEventsHasBeenSet; }
65 inline void SetAgentAliasHistoryEvents(const Aws::Vector<AgentAliasHistoryEvent>& value) { m_agentAliasHistoryEventsHasBeenSet = true; m_agentAliasHistoryEvents = value; }
66 inline void SetAgentAliasHistoryEvents(Aws::Vector<AgentAliasHistoryEvent>&& value) { m_agentAliasHistoryEventsHasBeenSet = true; m_agentAliasHistoryEvents = std::move(value); }
69 inline AgentAlias& AddAgentAliasHistoryEvents(const AgentAliasHistoryEvent& value) { m_agentAliasHistoryEventsHasBeenSet = true; m_agentAliasHistoryEvents.push_back(value); return *this; }
70 inline AgentAlias& AddAgentAliasHistoryEvents(AgentAliasHistoryEvent&& value) { m_agentAliasHistoryEventsHasBeenSet = true; m_agentAliasHistoryEvents.push_back(std::move(value)); return *this; }
72
74
77 inline const Aws::String& GetAgentAliasId() const{ return m_agentAliasId; }
78 inline bool AgentAliasIdHasBeenSet() const { return m_agentAliasIdHasBeenSet; }
79 inline void SetAgentAliasId(const Aws::String& value) { m_agentAliasIdHasBeenSet = true; m_agentAliasId = value; }
80 inline void SetAgentAliasId(Aws::String&& value) { m_agentAliasIdHasBeenSet = true; m_agentAliasId = std::move(value); }
81 inline void SetAgentAliasId(const char* value) { m_agentAliasIdHasBeenSet = true; m_agentAliasId.assign(value); }
82 inline AgentAlias& WithAgentAliasId(const Aws::String& value) { SetAgentAliasId(value); return *this;}
83 inline AgentAlias& WithAgentAliasId(Aws::String&& value) { SetAgentAliasId(std::move(value)); return *this;}
84 inline AgentAlias& WithAgentAliasId(const char* value) { SetAgentAliasId(value); return *this;}
86
88
91 inline const Aws::String& GetAgentAliasName() const{ return m_agentAliasName; }
92 inline bool AgentAliasNameHasBeenSet() const { return m_agentAliasNameHasBeenSet; }
93 inline void SetAgentAliasName(const Aws::String& value) { m_agentAliasNameHasBeenSet = true; m_agentAliasName = value; }
94 inline void SetAgentAliasName(Aws::String&& value) { m_agentAliasNameHasBeenSet = true; m_agentAliasName = std::move(value); }
95 inline void SetAgentAliasName(const char* value) { m_agentAliasNameHasBeenSet = true; m_agentAliasName.assign(value); }
96 inline AgentAlias& WithAgentAliasName(const Aws::String& value) { SetAgentAliasName(value); return *this;}
97 inline AgentAlias& WithAgentAliasName(Aws::String&& value) { SetAgentAliasName(std::move(value)); return *this;}
98 inline AgentAlias& WithAgentAliasName(const char* value) { SetAgentAliasName(value); return *this;}
100
102
111 inline const AgentAliasStatus& GetAgentAliasStatus() const{ return m_agentAliasStatus; }
112 inline bool AgentAliasStatusHasBeenSet() const { return m_agentAliasStatusHasBeenSet; }
113 inline void SetAgentAliasStatus(const AgentAliasStatus& value) { m_agentAliasStatusHasBeenSet = true; m_agentAliasStatus = value; }
114 inline void SetAgentAliasStatus(AgentAliasStatus&& value) { m_agentAliasStatusHasBeenSet = true; m_agentAliasStatus = std::move(value); }
115 inline AgentAlias& WithAgentAliasStatus(const AgentAliasStatus& value) { SetAgentAliasStatus(value); return *this;}
116 inline AgentAlias& WithAgentAliasStatus(AgentAliasStatus&& value) { SetAgentAliasStatus(std::move(value)); return *this;}
118
120
123 inline const Aws::String& GetAgentId() const{ return m_agentId; }
124 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
125 inline void SetAgentId(const Aws::String& value) { m_agentIdHasBeenSet = true; m_agentId = value; }
126 inline void SetAgentId(Aws::String&& value) { m_agentIdHasBeenSet = true; m_agentId = std::move(value); }
127 inline void SetAgentId(const char* value) { m_agentIdHasBeenSet = true; m_agentId.assign(value); }
128 inline AgentAlias& WithAgentId(const Aws::String& value) { SetAgentId(value); return *this;}
129 inline AgentAlias& WithAgentId(Aws::String&& value) { SetAgentId(std::move(value)); return *this;}
130 inline AgentAlias& WithAgentId(const char* value) { SetAgentId(value); return *this;}
132
134
141 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
142 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
143 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
144 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
145 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
146 inline AgentAlias& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
147 inline AgentAlias& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
148 inline AgentAlias& WithClientToken(const char* value) { SetClientToken(value); return *this;}
150
152
155 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
156 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
157 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
158 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
159 inline AgentAlias& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
160 inline AgentAlias& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
162
164
167 inline const Aws::String& GetDescription() const{ return m_description; }
168 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
169 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
170 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
171 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
172 inline AgentAlias& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
173 inline AgentAlias& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
174 inline AgentAlias& WithDescription(const char* value) { SetDescription(value); return *this;}
176
178
182 inline const Aws::Vector<Aws::String>& GetFailureReasons() const{ return m_failureReasons; }
183 inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; }
184 inline void SetFailureReasons(const Aws::Vector<Aws::String>& value) { m_failureReasonsHasBeenSet = true; m_failureReasons = value; }
185 inline void SetFailureReasons(Aws::Vector<Aws::String>&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons = std::move(value); }
186 inline AgentAlias& WithFailureReasons(const Aws::Vector<Aws::String>& value) { SetFailureReasons(value); return *this;}
187 inline AgentAlias& WithFailureReasons(Aws::Vector<Aws::String>&& value) { SetFailureReasons(std::move(value)); return *this;}
188 inline AgentAlias& AddFailureReasons(const Aws::String& value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(value); return *this; }
189 inline AgentAlias& AddFailureReasons(Aws::String&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(std::move(value)); return *this; }
190 inline AgentAlias& AddFailureReasons(const char* value) { m_failureReasonsHasBeenSet = true; m_failureReasons.push_back(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 inline void SetRoutingConfiguration(const Aws::Vector<AgentAliasRoutingConfigurationListItem>& value) { m_routingConfigurationHasBeenSet = true; m_routingConfiguration = value; }
200 inline void SetRoutingConfiguration(Aws::Vector<AgentAliasRoutingConfigurationListItem>&& value) { m_routingConfigurationHasBeenSet = true; m_routingConfiguration = std::move(value); }
203 inline AgentAlias& AddRoutingConfiguration(const AgentAliasRoutingConfigurationListItem& value) { m_routingConfigurationHasBeenSet = true; m_routingConfiguration.push_back(value); return *this; }
204 inline AgentAlias& AddRoutingConfiguration(AgentAliasRoutingConfigurationListItem&& value) { m_routingConfigurationHasBeenSet = true; m_routingConfiguration.push_back(std::move(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 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
214 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
215 inline AgentAlias& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
216 inline AgentAlias& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(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
232 AgentAliasStatus m_agentAliasStatus;
233 bool m_agentAliasStatusHasBeenSet = false;
234
235 Aws::String m_agentId;
236 bool m_agentIdHasBeenSet = false;
237
238 Aws::String m_clientToken;
239 bool m_clientTokenHasBeenSet = false;
240
241 Aws::Utils::DateTime m_createdAt;
242 bool m_createdAtHasBeenSet = false;
243
244 Aws::String m_description;
245 bool m_descriptionHasBeenSet = false;
246
247 Aws::Vector<Aws::String> m_failureReasons;
248 bool m_failureReasonsHasBeenSet = false;
249
251 bool m_routingConfigurationHasBeenSet = false;
252
253 Aws::Utils::DateTime m_updatedAt;
254 bool m_updatedAtHasBeenSet = false;
255 };
256
257} // namespace Model
258} // namespace BedrockAgent
259} // namespace Aws
AgentAlias & AddRoutingConfiguration(AgentAliasRoutingConfigurationListItem &&value)
Definition AgentAlias.h:204
AgentAlias & WithAgentAliasStatus(AgentAliasStatus &&value)
Definition AgentAlias.h:116
void SetRoutingConfiguration(Aws::Vector< AgentAliasRoutingConfigurationListItem > &&value)
Definition AgentAlias.h:200
AgentAlias & WithAgentId(const Aws::String &value)
Definition AgentAlias.h:128
void SetAgentAliasId(const Aws::String &value)
Definition AgentAlias.h:79
void SetAgentAliasHistoryEvents(const Aws::Vector< AgentAliasHistoryEvent > &value)
Definition AgentAlias.h:65
AgentAlias & WithFailureReasons(Aws::Vector< Aws::String > &&value)
Definition AgentAlias.h:187
void SetAgentAliasStatus(AgentAliasStatus &&value)
Definition AgentAlias.h:114
AgentAlias & WithUpdatedAt(const Aws::Utils::DateTime &value)
Definition AgentAlias.h:215
void SetUpdatedAt(const Aws::Utils::DateTime &value)
Definition AgentAlias.h:213
AgentAlias & WithUpdatedAt(Aws::Utils::DateTime &&value)
Definition AgentAlias.h:216
const Aws::Vector< AgentAliasRoutingConfigurationListItem > & GetRoutingConfiguration() const
Definition AgentAlias.h:197
AgentAlias & WithAgentAliasId(const Aws::String &value)
Definition AgentAlias.h:82
void SetClientToken(const Aws::String &value)
Definition AgentAlias.h:143
void SetRoutingConfiguration(const Aws::Vector< AgentAliasRoutingConfigurationListItem > &value)
Definition AgentAlias.h:199
AgentAlias & WithAgentAliasHistoryEvents(const Aws::Vector< AgentAliasHistoryEvent > &value)
Definition AgentAlias.h:67
void SetFailureReasons(const Aws::Vector< Aws::String > &value)
Definition AgentAlias.h:184
void SetFailureReasons(Aws::Vector< Aws::String > &&value)
Definition AgentAlias.h:185
AgentAlias & AddFailureReasons(const Aws::String &value)
Definition AgentAlias.h:188
AgentAlias & WithAgentId(Aws::String &&value)
Definition AgentAlias.h:129
void SetAgentId(const Aws::String &value)
Definition AgentAlias.h:125
AgentAlias & WithDescription(const char *value)
Definition AgentAlias.h:174
void SetAgentAliasName(Aws::String &&value)
Definition AgentAlias.h:94
AgentAlias & WithAgentAliasArn(Aws::String &&value)
Definition AgentAlias.h:55
const Aws::String & GetAgentAliasName() const
Definition AgentAlias.h:91
void SetAgentAliasArn(const char *value)
Definition AgentAlias.h:53
const Aws::String & GetDescription() const
Definition AgentAlias.h:167
void SetAgentAliasId(const char *value)
Definition AgentAlias.h:81
void SetAgentId(Aws::String &&value)
Definition AgentAlias.h:126
const Aws::Utils::DateTime & GetCreatedAt() const
Definition AgentAlias.h:155
void SetDescription(const Aws::String &value)
Definition AgentAlias.h:169
AgentAlias & WithAgentAliasName(const Aws::String &value)
Definition AgentAlias.h:96
void SetAgentAliasArn(Aws::String &&value)
Definition AgentAlias.h:52
AWS_BEDROCKAGENT_API AgentAlias()
AgentAlias & WithAgentAliasStatus(const AgentAliasStatus &value)
Definition AgentAlias.h:115
AgentAlias & WithAgentAliasArn(const Aws::String &value)
Definition AgentAlias.h:54
AgentAlias & WithClientToken(const Aws::String &value)
Definition AgentAlias.h:146
void SetAgentId(const char *value)
Definition AgentAlias.h:127
AgentAlias & WithFailureReasons(const Aws::Vector< Aws::String > &value)
Definition AgentAlias.h:186
AgentAlias & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition AgentAlias.h:160
void SetAgentAliasStatus(const AgentAliasStatus &value)
Definition AgentAlias.h:113
void SetDescription(const char *value)
Definition AgentAlias.h:171
const Aws::String & GetAgentId() const
Definition AgentAlias.h:123
const Aws::String & GetAgentAliasArn() const
Definition AgentAlias.h:49
void SetUpdatedAt(Aws::Utils::DateTime &&value)
Definition AgentAlias.h:214
AgentAlias & AddRoutingConfiguration(const AgentAliasRoutingConfigurationListItem &value)
Definition AgentAlias.h:203
void SetAgentAliasId(Aws::String &&value)
Definition AgentAlias.h:80
const Aws::Vector< Aws::String > & GetFailureReasons() const
Definition AgentAlias.h:182
AgentAlias & WithAgentAliasName(Aws::String &&value)
Definition AgentAlias.h:97
void SetAgentAliasHistoryEvents(Aws::Vector< AgentAliasHistoryEvent > &&value)
Definition AgentAlias.h:66
void SetClientToken(const char *value)
Definition AgentAlias.h:145
AgentAlias & AddFailureReasons(Aws::String &&value)
Definition AgentAlias.h:189
AgentAlias & WithRoutingConfiguration(Aws::Vector< AgentAliasRoutingConfigurationListItem > &&value)
Definition AgentAlias.h:202
AgentAlias & WithAgentId(const char *value)
Definition AgentAlias.h:130
AgentAlias & WithDescription(const Aws::String &value)
Definition AgentAlias.h:172
void SetDescription(Aws::String &&value)
Definition AgentAlias.h:170
void SetAgentAliasName(const Aws::String &value)
Definition AgentAlias.h:93
const Aws::String & GetClientToken() const
Definition AgentAlias.h:141
AgentAlias & WithRoutingConfiguration(const Aws::Vector< AgentAliasRoutingConfigurationListItem > &value)
Definition AgentAlias.h:201
AgentAlias & WithClientToken(const char *value)
Definition AgentAlias.h:148
AgentAlias & WithAgentAliasId(Aws::String &&value)
Definition AgentAlias.h:83
AgentAlias & AddAgentAliasHistoryEvents(const AgentAliasHistoryEvent &value)
Definition AgentAlias.h:69
void SetAgentAliasName(const char *value)
Definition AgentAlias.h:95
AgentAlias & WithClientToken(Aws::String &&value)
Definition AgentAlias.h:147
void SetClientToken(Aws::String &&value)
Definition AgentAlias.h:144
AgentAlias & WithAgentAliasArn(const char *value)
Definition AgentAlias.h:56
AgentAlias & WithDescription(Aws::String &&value)
Definition AgentAlias.h:173
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition AgentAlias.h:211
AgentAlias & WithAgentAliasHistoryEvents(Aws::Vector< AgentAliasHistoryEvent > &&value)
Definition AgentAlias.h:68
const AgentAliasStatus & GetAgentAliasStatus() const
Definition AgentAlias.h:111
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition AgentAlias.h:157
AgentAlias & AddAgentAliasHistoryEvents(AgentAliasHistoryEvent &&value)
Definition AgentAlias.h:70
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition AgentAlias.h:158
AgentAlias & WithAgentAliasName(const char *value)
Definition AgentAlias.h:98
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< AgentAliasHistoryEvent > & GetAgentAliasHistoryEvents() const
Definition AgentAlias.h:63
const Aws::String & GetAgentAliasId() const
Definition AgentAlias.h:77
AgentAlias & WithAgentAliasId(const char *value)
Definition AgentAlias.h:84
AgentAlias & AddFailureReasons(const char *value)
Definition AgentAlias.h:190
AWS_BEDROCKAGENT_API AgentAlias(Aws::Utils::Json::JsonView jsonValue)
void SetAgentAliasArn(const Aws::String &value)
Definition AgentAlias.h:51
AWS_BEDROCKAGENT_API AgentAlias & operator=(Aws::Utils::Json::JsonView jsonValue)
AgentAlias & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition AgentAlias.h:159
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue