AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateAIPromptRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qconnect/QConnectRequest.h>
11#include <aws/qconnect/QConnect_EXPORTS.h>
12#include <aws/qconnect/model/AIPromptAPIFormat.h>
13#include <aws/qconnect/model/AIPromptInferenceConfiguration.h>
14#include <aws/qconnect/model/AIPromptTemplateConfiguration.h>
15#include <aws/qconnect/model/AIPromptTemplateType.h>
16#include <aws/qconnect/model/AIPromptType.h>
17#include <aws/qconnect/model/VisibilityStatus.h>
18
19#include <utility>
20
21namespace Aws {
22namespace QConnect {
23namespace Model {
24
28 public:
29 AWS_QCONNECT_API CreateAIPromptRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateAIPrompt"; }
36
37 AWS_QCONNECT_API Aws::String SerializePayload() const override;
38
40
47 inline const Aws::String& GetClientToken() const { return m_clientToken; }
48 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
49 template <typename ClientTokenT = Aws::String>
50 void SetClientToken(ClientTokenT&& value) {
51 m_clientTokenHasBeenSet = true;
52 m_clientToken = std::forward<ClientTokenT>(value);
53 }
54 template <typename ClientTokenT = Aws::String>
55 CreateAIPromptRequest& WithClientToken(ClientTokenT&& value) {
56 SetClientToken(std::forward<ClientTokenT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::String& GetAssistantId() const { return m_assistantId; }
67 inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; }
68 template <typename AssistantIdT = Aws::String>
69 void SetAssistantId(AssistantIdT&& value) {
70 m_assistantIdHasBeenSet = true;
71 m_assistantId = std::forward<AssistantIdT>(value);
72 }
73 template <typename AssistantIdT = Aws::String>
74 CreateAIPromptRequest& WithAssistantId(AssistantIdT&& value) {
75 SetAssistantId(std::forward<AssistantIdT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetName() const { return m_name; }
85 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
86 template <typename NameT = Aws::String>
87 void SetName(NameT&& value) {
88 m_nameHasBeenSet = true;
89 m_name = std::forward<NameT>(value);
90 }
91 template <typename NameT = Aws::String>
93 SetName(std::forward<NameT>(value));
94 return *this;
95 }
97
99
102 inline AIPromptType GetType() const { return m_type; }
103 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
104 inline void SetType(AIPromptType value) {
105 m_typeHasBeenSet = true;
106 m_type = value;
107 }
109 SetType(value);
110 return *this;
111 }
113
115
118 inline const AIPromptTemplateConfiguration& GetTemplateConfiguration() const { return m_templateConfiguration; }
119 inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }
120 template <typename TemplateConfigurationT = AIPromptTemplateConfiguration>
121 void SetTemplateConfiguration(TemplateConfigurationT&& value) {
122 m_templateConfigurationHasBeenSet = true;
123 m_templateConfiguration = std::forward<TemplateConfigurationT>(value);
124 }
125 template <typename TemplateConfigurationT = AIPromptTemplateConfiguration>
126 CreateAIPromptRequest& WithTemplateConfiguration(TemplateConfigurationT&& value) {
127 SetTemplateConfiguration(std::forward<TemplateConfigurationT>(value));
128 return *this;
129 }
131
133
136 inline VisibilityStatus GetVisibilityStatus() const { return m_visibilityStatus; }
137 inline bool VisibilityStatusHasBeenSet() const { return m_visibilityStatusHasBeenSet; }
139 m_visibilityStatusHasBeenSet = true;
140 m_visibilityStatus = value;
141 }
143 SetVisibilityStatus(value);
144 return *this;
145 }
147
149
152 inline AIPromptTemplateType GetTemplateType() const { return m_templateType; }
153 inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
155 m_templateTypeHasBeenSet = true;
156 m_templateType = value;
157 }
159 SetTemplateType(value);
160 return *this;
161 }
163
165
172 inline const Aws::String& GetModelId() const { return m_modelId; }
173 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
174 template <typename ModelIdT = Aws::String>
175 void SetModelId(ModelIdT&& value) {
176 m_modelIdHasBeenSet = true;
177 m_modelId = std::forward<ModelIdT>(value);
178 }
179 template <typename ModelIdT = Aws::String>
181 SetModelId(std::forward<ModelIdT>(value));
182 return *this;
183 }
185
187
193 inline AIPromptAPIFormat GetApiFormat() const { return m_apiFormat; }
194 inline bool ApiFormatHasBeenSet() const { return m_apiFormatHasBeenSet; }
195 inline void SetApiFormat(AIPromptAPIFormat value) {
196 m_apiFormatHasBeenSet = true;
197 m_apiFormat = value;
198 }
200 SetApiFormat(value);
201 return *this;
202 }
204
206
209 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
210 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
211 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
212 void SetTags(TagsT&& value) {
213 m_tagsHasBeenSet = true;
214 m_tags = std::forward<TagsT>(value);
215 }
216 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
218 SetTags(std::forward<TagsT>(value));
219 return *this;
220 }
221 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
222 CreateAIPromptRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
223 m_tagsHasBeenSet = true;
224 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
225 return *this;
226 }
228
230
233 inline const Aws::String& GetDescription() const { return m_description; }
234 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
235 template <typename DescriptionT = Aws::String>
236 void SetDescription(DescriptionT&& value) {
237 m_descriptionHasBeenSet = true;
238 m_description = std::forward<DescriptionT>(value);
239 }
240 template <typename DescriptionT = Aws::String>
241 CreateAIPromptRequest& WithDescription(DescriptionT&& value) {
242 SetDescription(std::forward<DescriptionT>(value));
243 return *this;
244 }
246
248
251 inline const AIPromptInferenceConfiguration& GetInferenceConfiguration() const { return m_inferenceConfiguration; }
252 inline bool InferenceConfigurationHasBeenSet() const { return m_inferenceConfigurationHasBeenSet; }
253 template <typename InferenceConfigurationT = AIPromptInferenceConfiguration>
254 void SetInferenceConfiguration(InferenceConfigurationT&& value) {
255 m_inferenceConfigurationHasBeenSet = true;
256 m_inferenceConfiguration = std::forward<InferenceConfigurationT>(value);
257 }
258 template <typename InferenceConfigurationT = AIPromptInferenceConfiguration>
259 CreateAIPromptRequest& WithInferenceConfiguration(InferenceConfigurationT&& value) {
260 SetInferenceConfiguration(std::forward<InferenceConfigurationT>(value));
261 return *this;
262 }
264 private:
266
267 Aws::String m_assistantId;
268
269 Aws::String m_name;
270
272
273 AIPromptTemplateConfiguration m_templateConfiguration;
274
276
278
279 Aws::String m_modelId;
280
282
284
285 Aws::String m_description;
286
287 AIPromptInferenceConfiguration m_inferenceConfiguration;
288 bool m_clientTokenHasBeenSet = true;
289 bool m_assistantIdHasBeenSet = false;
290 bool m_nameHasBeenSet = false;
291 bool m_typeHasBeenSet = false;
292 bool m_templateConfigurationHasBeenSet = false;
293 bool m_visibilityStatusHasBeenSet = false;
294 bool m_templateTypeHasBeenSet = false;
295 bool m_modelIdHasBeenSet = false;
296 bool m_apiFormatHasBeenSet = false;
297 bool m_tagsHasBeenSet = false;
298 bool m_descriptionHasBeenSet = false;
299 bool m_inferenceConfigurationHasBeenSet = false;
300};
301
302} // namespace Model
303} // namespace QConnect
304} // namespace Aws
CreateAIPromptRequest & WithTemplateConfiguration(TemplateConfigurationT &&value)
CreateAIPromptRequest & WithModelId(ModelIdT &&value)
void SetTemplateConfiguration(TemplateConfigurationT &&value)
const AIPromptInferenceConfiguration & GetInferenceConfiguration() const
CreateAIPromptRequest & WithTags(TagsT &&value)
AWS_QCONNECT_API Aws::String SerializePayload() const override
void SetInferenceConfiguration(InferenceConfigurationT &&value)
void SetTemplateType(AIPromptTemplateType value)
CreateAIPromptRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAIPromptRequest & WithClientToken(ClientTokenT &&value)
CreateAIPromptRequest & WithInferenceConfiguration(InferenceConfigurationT &&value)
CreateAIPromptRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
CreateAIPromptRequest & WithDescription(DescriptionT &&value)
CreateAIPromptRequest & WithType(AIPromptType value)
const AIPromptTemplateConfiguration & GetTemplateConfiguration() const
CreateAIPromptRequest & WithApiFormat(AIPromptAPIFormat value)
CreateAIPromptRequest & WithTemplateType(AIPromptTemplateType value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_QCONNECT_API CreateAIPromptRequest()=default
CreateAIPromptRequest & WithVisibilityStatus(VisibilityStatus value)
CreateAIPromptRequest & WithAssistantId(AssistantIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String