AWS SDK for C++

AWS SDK for C++ Version 1.11.827

Loading...
Searching...
No Matches
Agent.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11#include <aws/quicksight/model/AgentLifecycle.h>
12#include <aws/quicksight/model/AgentStatus.h>
13#include <aws/quicksight/model/CustomPromptInterface.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QuickSight {
25namespace Model {
26
33class Agent {
34 public:
35 AWS_QUICKSIGHT_API Agent() = default;
36 AWS_QUICKSIGHT_API Agent(Aws::Utils::Json::JsonView jsonValue);
37 AWS_QUICKSIGHT_API Agent& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::Vector<Aws::String>& GetSpaces() const { return m_spaces; }
45 inline bool SpacesHasBeenSet() const { return m_spacesHasBeenSet; }
46 template <typename SpacesT = Aws::Vector<Aws::String>>
47 void SetSpaces(SpacesT&& value) {
48 m_spacesHasBeenSet = true;
49 m_spaces = std::forward<SpacesT>(value);
50 }
51 template <typename SpacesT = Aws::Vector<Aws::String>>
52 Agent& WithSpaces(SpacesT&& value) {
53 SetSpaces(std::forward<SpacesT>(value));
54 return *this;
55 }
56 template <typename SpacesT = Aws::String>
57 Agent& AddSpaces(SpacesT&& value) {
58 m_spacesHasBeenSet = true;
59 m_spaces.emplace_back(std::forward<SpacesT>(value));
60 return *this;
61 }
63
65
69 inline const Aws::Vector<Aws::String>& GetActionConnectors() const { return m_actionConnectors; }
70 inline bool ActionConnectorsHasBeenSet() const { return m_actionConnectorsHasBeenSet; }
71 template <typename ActionConnectorsT = Aws::Vector<Aws::String>>
72 void SetActionConnectors(ActionConnectorsT&& value) {
73 m_actionConnectorsHasBeenSet = true;
74 m_actionConnectors = std::forward<ActionConnectorsT>(value);
75 }
76 template <typename ActionConnectorsT = Aws::Vector<Aws::String>>
77 Agent& WithActionConnectors(ActionConnectorsT&& value) {
78 SetActionConnectors(std::forward<ActionConnectorsT>(value));
79 return *this;
80 }
81 template <typename ActionConnectorsT = Aws::String>
82 Agent& AddActionConnectors(ActionConnectorsT&& value) {
83 m_actionConnectorsHasBeenSet = true;
84 m_actionConnectors.emplace_back(std::forward<ActionConnectorsT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDescription() const { return m_description; }
94 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 template <typename DescriptionT = Aws::String>
96 void SetDescription(DescriptionT&& value) {
97 m_descriptionHasBeenSet = true;
98 m_description = std::forward<DescriptionT>(value);
99 }
100 template <typename DescriptionT = Aws::String>
101 Agent& WithDescription(DescriptionT&& value) {
102 SetDescription(std::forward<DescriptionT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetIconId() const { return m_iconId; }
112 inline bool IconIdHasBeenSet() const { return m_iconIdHasBeenSet; }
113 template <typename IconIdT = Aws::String>
114 void SetIconId(IconIdT&& value) {
115 m_iconIdHasBeenSet = true;
116 m_iconId = std::forward<IconIdT>(value);
117 }
118 template <typename IconIdT = Aws::String>
119 Agent& WithIconId(IconIdT&& value) {
120 SetIconId(std::forward<IconIdT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetName() const { return m_name; }
130 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
131 template <typename NameT = Aws::String>
132 void SetName(NameT&& value) {
133 m_nameHasBeenSet = true;
134 m_name = std::forward<NameT>(value);
135 }
136 template <typename NameT = Aws::String>
137 Agent& WithName(NameT&& value) {
138 SetName(std::forward<NameT>(value));
139 return *this;
140 }
142
144
148 inline const Aws::Vector<Aws::String>& GetStarterPrompts() const { return m_starterPrompts; }
149 inline bool StarterPromptsHasBeenSet() const { return m_starterPromptsHasBeenSet; }
150 template <typename StarterPromptsT = Aws::Vector<Aws::String>>
151 void SetStarterPrompts(StarterPromptsT&& value) {
152 m_starterPromptsHasBeenSet = true;
153 m_starterPrompts = std::forward<StarterPromptsT>(value);
154 }
155 template <typename StarterPromptsT = Aws::Vector<Aws::String>>
156 Agent& WithStarterPrompts(StarterPromptsT&& value) {
157 SetStarterPrompts(std::forward<StarterPromptsT>(value));
158 return *this;
159 }
160 template <typename StarterPromptsT = Aws::String>
161 Agent& AddStarterPrompts(StarterPromptsT&& value) {
162 m_starterPromptsHasBeenSet = true;
163 m_starterPrompts.emplace_back(std::forward<StarterPromptsT>(value));
164 return *this;
165 }
167
169
173 inline const Aws::String& GetWelcomeMessage() const { return m_welcomeMessage; }
174 inline bool WelcomeMessageHasBeenSet() const { return m_welcomeMessageHasBeenSet; }
175 template <typename WelcomeMessageT = Aws::String>
176 void SetWelcomeMessage(WelcomeMessageT&& value) {
177 m_welcomeMessageHasBeenSet = true;
178 m_welcomeMessage = std::forward<WelcomeMessageT>(value);
179 }
180 template <typename WelcomeMessageT = Aws::String>
181 Agent& WithWelcomeMessage(WelcomeMessageT&& value) {
182 SetWelcomeMessage(std::forward<WelcomeMessageT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::String& GetArn() const { return m_arn; }
192 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
193 template <typename ArnT = Aws::String>
194 void SetArn(ArnT&& value) {
195 m_arnHasBeenSet = true;
196 m_arn = std::forward<ArnT>(value);
197 }
198 template <typename ArnT = Aws::String>
199 Agent& WithArn(ArnT&& value) {
200 SetArn(std::forward<ArnT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::String& GetAgentId() const { return m_agentId; }
210 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
211 template <typename AgentIdT = Aws::String>
212 void SetAgentId(AgentIdT&& value) {
213 m_agentIdHasBeenSet = true;
214 m_agentId = std::forward<AgentIdT>(value);
215 }
216 template <typename AgentIdT = Aws::String>
217 Agent& WithAgentId(AgentIdT&& value) {
218 SetAgentId(std::forward<AgentIdT>(value));
219 return *this;
220 }
222
224
228 inline AgentLifecycle GetAgentLifecycle() const { return m_agentLifecycle; }
229 inline bool AgentLifecycleHasBeenSet() const { return m_agentLifecycleHasBeenSet; }
231 m_agentLifecycleHasBeenSet = true;
232 m_agentLifecycle = value;
233 }
235 SetAgentLifecycle(value);
236 return *this;
237 }
239
241
244 inline AgentStatus GetAgentStatus() const { return m_agentStatus; }
245 inline bool AgentStatusHasBeenSet() const { return m_agentStatusHasBeenSet; }
246 inline void SetAgentStatus(AgentStatus value) {
247 m_agentStatusHasBeenSet = true;
248 m_agentStatus = value;
249 }
251 SetAgentStatus(value);
252 return *this;
253 }
255
257
260 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
261 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
262 template <typename CreatedAtT = Aws::Utils::DateTime>
263 void SetCreatedAt(CreatedAtT&& value) {
264 m_createdAtHasBeenSet = true;
265 m_createdAt = std::forward<CreatedAtT>(value);
266 }
267 template <typename CreatedAtT = Aws::Utils::DateTime>
268 Agent& WithCreatedAt(CreatedAtT&& value) {
269 SetCreatedAt(std::forward<CreatedAtT>(value));
270 return *this;
271 }
273
275
278 inline const Aws::String& GetCreator() const { return m_creator; }
279 inline bool CreatorHasBeenSet() const { return m_creatorHasBeenSet; }
280 template <typename CreatorT = Aws::String>
281 void SetCreator(CreatorT&& value) {
282 m_creatorHasBeenSet = true;
283 m_creator = std::forward<CreatorT>(value);
284 }
285 template <typename CreatorT = Aws::String>
286 Agent& WithCreator(CreatorT&& value) {
287 SetCreator(std::forward<CreatorT>(value));
288 return *this;
289 }
291
293
296 inline const CustomPromptInterface& GetCustomPromptInterface() const { return m_customPromptInterface; }
297 inline bool CustomPromptInterfaceHasBeenSet() const { return m_customPromptInterfaceHasBeenSet; }
298 template <typename CustomPromptInterfaceT = CustomPromptInterface>
299 void SetCustomPromptInterface(CustomPromptInterfaceT&& value) {
300 m_customPromptInterfaceHasBeenSet = true;
301 m_customPromptInterface = std::forward<CustomPromptInterfaceT>(value);
302 }
303 template <typename CustomPromptInterfaceT = CustomPromptInterface>
304 Agent& WithCustomPromptInterface(CustomPromptInterfaceT&& value) {
305 SetCustomPromptInterface(std::forward<CustomPromptInterfaceT>(value));
306 return *this;
307 }
309
311
314 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
315 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
316 template <typename ErrorMessageT = Aws::String>
317 void SetErrorMessage(ErrorMessageT&& value) {
318 m_errorMessageHasBeenSet = true;
319 m_errorMessage = std::forward<ErrorMessageT>(value);
320 }
321 template <typename ErrorMessageT = Aws::String>
322 Agent& WithErrorMessage(ErrorMessageT&& value) {
323 SetErrorMessage(std::forward<ErrorMessageT>(value));
324 return *this;
325 }
327
329
332 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
333 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
334 template <typename UpdatedAtT = Aws::Utils::DateTime>
335 void SetUpdatedAt(UpdatedAtT&& value) {
336 m_updatedAtHasBeenSet = true;
337 m_updatedAt = std::forward<UpdatedAtT>(value);
338 }
339 template <typename UpdatedAtT = Aws::Utils::DateTime>
340 Agent& WithUpdatedAt(UpdatedAtT&& value) {
341 SetUpdatedAt(std::forward<UpdatedAtT>(value));
342 return *this;
343 }
345 private:
347
348 Aws::Vector<Aws::String> m_actionConnectors;
349
350 Aws::String m_description;
351
352 Aws::String m_iconId;
353
354 Aws::String m_name;
355
356 Aws::Vector<Aws::String> m_starterPrompts;
357
358 Aws::String m_welcomeMessage;
359
360 Aws::String m_arn;
361
362 Aws::String m_agentId;
363
364 AgentLifecycle m_agentLifecycle{AgentLifecycle::NOT_SET};
365
366 AgentStatus m_agentStatus{AgentStatus::NOT_SET};
367
368 Aws::Utils::DateTime m_createdAt{};
369
370 Aws::String m_creator;
371
372 CustomPromptInterface m_customPromptInterface;
373
374 Aws::String m_errorMessage;
375
376 Aws::Utils::DateTime m_updatedAt{};
377 bool m_spacesHasBeenSet = false;
378 bool m_actionConnectorsHasBeenSet = false;
379 bool m_descriptionHasBeenSet = false;
380 bool m_iconIdHasBeenSet = false;
381 bool m_nameHasBeenSet = false;
382 bool m_starterPromptsHasBeenSet = false;
383 bool m_welcomeMessageHasBeenSet = false;
384 bool m_arnHasBeenSet = false;
385 bool m_agentIdHasBeenSet = false;
386 bool m_agentLifecycleHasBeenSet = false;
387 bool m_agentStatusHasBeenSet = false;
388 bool m_createdAtHasBeenSet = false;
389 bool m_creatorHasBeenSet = false;
390 bool m_customPromptInterfaceHasBeenSet = false;
391 bool m_errorMessageHasBeenSet = false;
392 bool m_updatedAtHasBeenSet = false;
393};
394
395} // namespace Model
396} // namespace QuickSight
397} // namespace Aws
Agent & WithAgentLifecycle(AgentLifecycle value)
Definition Agent.h:234
Agent & AddStarterPrompts(StarterPromptsT &&value)
Definition Agent.h:161
Agent & WithCustomPromptInterface(CustomPromptInterfaceT &&value)
Definition Agent.h:304
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Agent.h:260
bool WelcomeMessageHasBeenSet() const
Definition Agent.h:174
void SetCustomPromptInterface(CustomPromptInterfaceT &&value)
Definition Agent.h:299
Agent & WithDescription(DescriptionT &&value)
Definition Agent.h:101
bool SpacesHasBeenSet() const
Definition Agent.h:45
void SetAgentStatus(AgentStatus value)
Definition Agent.h:246
void SetIconId(IconIdT &&value)
Definition Agent.h:114
const Aws::Vector< Aws::String > & GetActionConnectors() const
Definition Agent.h:69
Agent & WithActionConnectors(ActionConnectorsT &&value)
Definition Agent.h:77
bool ArnHasBeenSet() const
Definition Agent.h:192
void SetUpdatedAt(UpdatedAtT &&value)
Definition Agent.h:335
bool AgentStatusHasBeenSet() const
Definition Agent.h:245
void SetStarterPrompts(StarterPromptsT &&value)
Definition Agent.h:151
const Aws::String & GetWelcomeMessage() const
Definition Agent.h:173
bool DescriptionHasBeenSet() const
Definition Agent.h:94
Agent & WithCreator(CreatorT &&value)
Definition Agent.h:286
Agent & WithUpdatedAt(UpdatedAtT &&value)
Definition Agent.h:340
void SetArn(ArnT &&value)
Definition Agent.h:194
Agent & AddSpaces(SpacesT &&value)
Definition Agent.h:57
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
const CustomPromptInterface & GetCustomPromptInterface() const
Definition Agent.h:296
const Aws::String & GetAgentId() const
Definition Agent.h:209
Agent & WithAgentStatus(AgentStatus value)
Definition Agent.h:250
void SetAgentId(AgentIdT &&value)
Definition Agent.h:212
void SetWelcomeMessage(WelcomeMessageT &&value)
Definition Agent.h:176
bool ErrorMessageHasBeenSet() const
Definition Agent.h:315
Agent & AddActionConnectors(ActionConnectorsT &&value)
Definition Agent.h:82
void SetName(NameT &&value)
Definition Agent.h:132
bool CreatedAtHasBeenSet() const
Definition Agent.h:261
bool AgentLifecycleHasBeenSet() const
Definition Agent.h:229
bool CreatorHasBeenSet() const
Definition Agent.h:279
bool NameHasBeenSet() const
Definition Agent.h:130
AgentStatus GetAgentStatus() const
Definition Agent.h:244
Agent & WithName(NameT &&value)
Definition Agent.h:137
Agent & WithSpaces(SpacesT &&value)
Definition Agent.h:52
void SetCreator(CreatorT &&value)
Definition Agent.h:281
bool StarterPromptsHasBeenSet() const
Definition Agent.h:149
const Aws::String & GetDescription() const
Definition Agent.h:93
Agent & WithCreatedAt(CreatedAtT &&value)
Definition Agent.h:268
void SetCreatedAt(CreatedAtT &&value)
Definition Agent.h:263
void SetDescription(DescriptionT &&value)
Definition Agent.h:96
Agent & WithWelcomeMessage(WelcomeMessageT &&value)
Definition Agent.h:181
const Aws::String & GetName() const
Definition Agent.h:129
bool CustomPromptInterfaceHasBeenSet() const
Definition Agent.h:297
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Agent.h:332
void SetAgentLifecycle(AgentLifecycle value)
Definition Agent.h:230
void SetActionConnectors(ActionConnectorsT &&value)
Definition Agent.h:72
bool AgentIdHasBeenSet() const
Definition Agent.h:210
const Aws::String & GetArn() const
Definition Agent.h:191
void SetSpaces(SpacesT &&value)
Definition Agent.h:47
AWS_QUICKSIGHT_API Agent()=default
AWS_QUICKSIGHT_API Agent & operator=(Aws::Utils::Json::JsonView jsonValue)
Agent & WithErrorMessage(ErrorMessageT &&value)
Definition Agent.h:322
const Aws::String & GetIconId() const
Definition Agent.h:111
Agent & WithIconId(IconIdT &&value)
Definition Agent.h:119
Agent & WithStarterPrompts(StarterPromptsT &&value)
Definition Agent.h:156
const Aws::String & GetErrorMessage() const
Definition Agent.h:314
bool ActionConnectorsHasBeenSet() const
Definition Agent.h:70
const Aws::Vector< Aws::String > & GetSpaces() const
Definition Agent.h:44
void SetErrorMessage(ErrorMessageT &&value)
Definition Agent.h:317
AWS_QUICKSIGHT_API Agent(Aws::Utils::Json::JsonView jsonValue)
bool IconIdHasBeenSet() const
Definition Agent.h:112
Agent & WithArn(ArnT &&value)
Definition Agent.h:199
const Aws::String & GetCreator() const
Definition Agent.h:278
AgentLifecycle GetAgentLifecycle() const
Definition Agent.h:228
const Aws::Vector< Aws::String > & GetStarterPrompts() const
Definition Agent.h:148
bool UpdatedAtHasBeenSet() const
Definition Agent.h:333
Agent & WithAgentId(AgentIdT &&value)
Definition Agent.h:217
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue