AWS SDK for C++

AWS SDK for C++ Version 1.11.826

Loading...
Searching...
No Matches
CreateAgentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/quicksight/QuickSightRequest.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11#include <aws/quicksight/model/AgentLifecycle.h>
12#include <aws/quicksight/model/CustomPromptInput.h>
13
14#include <utility>
15
16namespace Aws {
17namespace QuickSight {
18namespace Model {
19
23 public:
24 AWS_QUICKSIGHT_API CreateAgentRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateAgent"; }
31
32 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::Vector<Aws::String>& GetSpaces() const { return m_spaces; }
39 inline bool SpacesHasBeenSet() const { return m_spacesHasBeenSet; }
40 template <typename SpacesT = Aws::Vector<Aws::String>>
41 void SetSpaces(SpacesT&& value) {
42 m_spacesHasBeenSet = true;
43 m_spaces = std::forward<SpacesT>(value);
44 }
45 template <typename SpacesT = Aws::Vector<Aws::String>>
46 CreateAgentRequest& WithSpaces(SpacesT&& value) {
47 SetSpaces(std::forward<SpacesT>(value));
48 return *this;
49 }
50 template <typename SpacesT = Aws::String>
51 CreateAgentRequest& AddSpaces(SpacesT&& value) {
52 m_spacesHasBeenSet = true;
53 m_spaces.emplace_back(std::forward<SpacesT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::Vector<Aws::String>& GetActionConnectors() const { return m_actionConnectors; }
64 inline bool ActionConnectorsHasBeenSet() const { return m_actionConnectorsHasBeenSet; }
65 template <typename ActionConnectorsT = Aws::Vector<Aws::String>>
66 void SetActionConnectors(ActionConnectorsT&& value) {
67 m_actionConnectorsHasBeenSet = true;
68 m_actionConnectors = std::forward<ActionConnectorsT>(value);
69 }
70 template <typename ActionConnectorsT = Aws::Vector<Aws::String>>
71 CreateAgentRequest& WithActionConnectors(ActionConnectorsT&& value) {
72 SetActionConnectors(std::forward<ActionConnectorsT>(value));
73 return *this;
74 }
75 template <typename ActionConnectorsT = Aws::String>
76 CreateAgentRequest& AddActionConnectors(ActionConnectorsT&& value) {
77 m_actionConnectorsHasBeenSet = true;
78 m_actionConnectors.emplace_back(std::forward<ActionConnectorsT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
88 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
89 template <typename AwsAccountIdT = Aws::String>
90 void SetAwsAccountId(AwsAccountIdT&& value) {
91 m_awsAccountIdHasBeenSet = true;
92 m_awsAccountId = std::forward<AwsAccountIdT>(value);
93 }
94 template <typename AwsAccountIdT = Aws::String>
95 CreateAgentRequest& WithAwsAccountId(AwsAccountIdT&& value) {
96 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetAgentId() const { return m_agentId; }
106 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
107 template <typename AgentIdT = Aws::String>
108 void SetAgentId(AgentIdT&& value) {
109 m_agentIdHasBeenSet = true;
110 m_agentId = std::forward<AgentIdT>(value);
111 }
112 template <typename AgentIdT = Aws::String>
113 CreateAgentRequest& WithAgentId(AgentIdT&& value) {
114 SetAgentId(std::forward<AgentIdT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::String& GetName() const { return m_name; }
124 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
125 template <typename NameT = Aws::String>
126 void SetName(NameT&& value) {
127 m_nameHasBeenSet = true;
128 m_name = std::forward<NameT>(value);
129 }
130 template <typename NameT = Aws::String>
131 CreateAgentRequest& WithName(NameT&& value) {
132 SetName(std::forward<NameT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::String& GetDescription() const { return m_description; }
142 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
143 template <typename DescriptionT = Aws::String>
144 void SetDescription(DescriptionT&& value) {
145 m_descriptionHasBeenSet = true;
146 m_description = std::forward<DescriptionT>(value);
147 }
148 template <typename DescriptionT = Aws::String>
149 CreateAgentRequest& WithDescription(DescriptionT&& value) {
150 SetDescription(std::forward<DescriptionT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::String& GetIconId() const { return m_iconId; }
160 inline bool IconIdHasBeenSet() const { return m_iconIdHasBeenSet; }
161 template <typename IconIdT = Aws::String>
162 void SetIconId(IconIdT&& value) {
163 m_iconIdHasBeenSet = true;
164 m_iconId = std::forward<IconIdT>(value);
165 }
166 template <typename IconIdT = Aws::String>
167 CreateAgentRequest& WithIconId(IconIdT&& value) {
168 SetIconId(std::forward<IconIdT>(value));
169 return *this;
170 }
172
174
178 inline const Aws::Vector<Aws::String>& GetStarterPrompts() const { return m_starterPrompts; }
179 inline bool StarterPromptsHasBeenSet() const { return m_starterPromptsHasBeenSet; }
180 template <typename StarterPromptsT = Aws::Vector<Aws::String>>
181 void SetStarterPrompts(StarterPromptsT&& value) {
182 m_starterPromptsHasBeenSet = true;
183 m_starterPrompts = std::forward<StarterPromptsT>(value);
184 }
185 template <typename StarterPromptsT = Aws::Vector<Aws::String>>
186 CreateAgentRequest& WithStarterPrompts(StarterPromptsT&& value) {
187 SetStarterPrompts(std::forward<StarterPromptsT>(value));
188 return *this;
189 }
190 template <typename StarterPromptsT = Aws::String>
191 CreateAgentRequest& AddStarterPrompts(StarterPromptsT&& value) {
192 m_starterPromptsHasBeenSet = true;
193 m_starterPrompts.emplace_back(std::forward<StarterPromptsT>(value));
194 return *this;
195 }
197
199
203 inline const Aws::String& GetWelcomeMessage() const { return m_welcomeMessage; }
204 inline bool WelcomeMessageHasBeenSet() const { return m_welcomeMessageHasBeenSet; }
205 template <typename WelcomeMessageT = Aws::String>
206 void SetWelcomeMessage(WelcomeMessageT&& value) {
207 m_welcomeMessageHasBeenSet = true;
208 m_welcomeMessage = std::forward<WelcomeMessageT>(value);
209 }
210 template <typename WelcomeMessageT = Aws::String>
211 CreateAgentRequest& WithWelcomeMessage(WelcomeMessageT&& value) {
212 SetWelcomeMessage(std::forward<WelcomeMessageT>(value));
213 return *this;
214 }
216
218
222 inline AgentLifecycle GetAgentLifecycle() const { return m_agentLifecycle; }
223 inline bool AgentLifecycleHasBeenSet() const { return m_agentLifecycleHasBeenSet; }
225 m_agentLifecycleHasBeenSet = true;
226 m_agentLifecycle = value;
227 }
229 SetAgentLifecycle(value);
230 return *this;
231 }
233
235
238 inline const CustomPromptInput& GetCustomPromptInput() const { return m_customPromptInput; }
239 inline bool CustomPromptInputHasBeenSet() const { return m_customPromptInputHasBeenSet; }
240 template <typename CustomPromptInputT = CustomPromptInput>
241 void SetCustomPromptInput(CustomPromptInputT&& value) {
242 m_customPromptInputHasBeenSet = true;
243 m_customPromptInput = std::forward<CustomPromptInputT>(value);
244 }
245 template <typename CustomPromptInputT = CustomPromptInput>
246 CreateAgentRequest& WithCustomPromptInput(CustomPromptInputT&& value) {
247 SetCustomPromptInput(std::forward<CustomPromptInputT>(value));
248 return *this;
249 }
251 private:
253
254 Aws::Vector<Aws::String> m_actionConnectors;
255
256 Aws::String m_awsAccountId;
257
258 Aws::String m_agentId;
259
260 Aws::String m_name;
261
262 Aws::String m_description;
263
264 Aws::String m_iconId;
265
266 Aws::Vector<Aws::String> m_starterPrompts;
267
268 Aws::String m_welcomeMessage;
269
270 AgentLifecycle m_agentLifecycle{AgentLifecycle::NOT_SET};
271
272 CustomPromptInput m_customPromptInput;
273 bool m_spacesHasBeenSet = false;
274 bool m_actionConnectorsHasBeenSet = false;
275 bool m_awsAccountIdHasBeenSet = false;
276 bool m_agentIdHasBeenSet = false;
277 bool m_nameHasBeenSet = false;
278 bool m_descriptionHasBeenSet = false;
279 bool m_iconIdHasBeenSet = false;
280 bool m_starterPromptsHasBeenSet = false;
281 bool m_welcomeMessageHasBeenSet = false;
282 bool m_agentLifecycleHasBeenSet = false;
283 bool m_customPromptInputHasBeenSet = false;
284};
285
286} // namespace Model
287} // namespace QuickSight
288} // namespace Aws
CreateAgentRequest & WithSpaces(SpacesT &&value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
void SetCustomPromptInput(CustomPromptInputT &&value)
CreateAgentRequest & AddStarterPrompts(StarterPromptsT &&value)
void SetStarterPrompts(StarterPromptsT &&value)
void SetActionConnectors(ActionConnectorsT &&value)
CreateAgentRequest & WithAgentLifecycle(AgentLifecycle value)
const Aws::Vector< Aws::String > & GetActionConnectors() const
CreateAgentRequest & AddSpaces(SpacesT &&value)
const Aws::Vector< Aws::String > & GetStarterPrompts() const
const CustomPromptInput & GetCustomPromptInput() const
void SetWelcomeMessage(WelcomeMessageT &&value)
AWS_QUICKSIGHT_API CreateAgentRequest()=default
virtual const char * GetServiceRequestName() const override
CreateAgentRequest & WithAwsAccountId(AwsAccountIdT &&value)
CreateAgentRequest & WithIconId(IconIdT &&value)
CreateAgentRequest & WithName(NameT &&value)
CreateAgentRequest & WithDescription(DescriptionT &&value)
CreateAgentRequest & WithStarterPrompts(StarterPromptsT &&value)
const Aws::Vector< Aws::String > & GetSpaces() const
CreateAgentRequest & AddActionConnectors(ActionConnectorsT &&value)
CreateAgentRequest & WithActionConnectors(ActionConnectorsT &&value)
CreateAgentRequest & WithAgentId(AgentIdT &&value)
CreateAgentRequest & WithWelcomeMessage(WelcomeMessageT &&value)
CreateAgentRequest & WithCustomPromptInput(CustomPromptInputT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector