AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAIPromptRequest.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/QConnectRequest.h>
9#include <aws/qconnect/model/AIPromptAPIFormat.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/qconnect/model/AIPromptTemplateConfiguration.h>
13#include <aws/qconnect/model/AIPromptTemplateType.h>
14#include <aws/qconnect/model/AIPromptType.h>
15#include <aws/qconnect/model/VisibilityStatus.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace QConnect
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_QCONNECT_API CreateAIPromptRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateAIPrompt"; }
38
39 AWS_QCONNECT_API Aws::String SerializePayload() const override;
40
41
43
46 inline const AIPromptAPIFormat& GetApiFormat() const{ return m_apiFormat; }
47 inline bool ApiFormatHasBeenSet() const { return m_apiFormatHasBeenSet; }
48 inline void SetApiFormat(const AIPromptAPIFormat& value) { m_apiFormatHasBeenSet = true; m_apiFormat = value; }
49 inline void SetApiFormat(AIPromptAPIFormat&& value) { m_apiFormatHasBeenSet = true; m_apiFormat = std::move(value); }
50 inline CreateAIPromptRequest& WithApiFormat(const AIPromptAPIFormat& value) { SetApiFormat(value); return *this;}
51 inline CreateAIPromptRequest& WithApiFormat(AIPromptAPIFormat&& value) { SetApiFormat(std::move(value)); return *this;}
53
55
59 inline const Aws::String& GetAssistantId() const{ return m_assistantId; }
60 inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; }
61 inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; }
62 inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); }
63 inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); }
64 inline CreateAIPromptRequest& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;}
65 inline CreateAIPromptRequest& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;}
66 inline CreateAIPromptRequest& WithAssistantId(const char* value) { SetAssistantId(value); return *this;}
68
70
77 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
78 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
79 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
80 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
81 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
82 inline CreateAIPromptRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
83 inline CreateAIPromptRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
84 inline CreateAIPromptRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
86
88
91 inline const Aws::String& GetDescription() const{ return m_description; }
92 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
94 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
95 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
96 inline CreateAIPromptRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
97 inline CreateAIPromptRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
98 inline CreateAIPromptRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
100
102
106 inline const Aws::String& GetModelId() const{ return m_modelId; }
107 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
108 inline void SetModelId(const Aws::String& value) { m_modelIdHasBeenSet = true; m_modelId = value; }
109 inline void SetModelId(Aws::String&& value) { m_modelIdHasBeenSet = true; m_modelId = std::move(value); }
110 inline void SetModelId(const char* value) { m_modelIdHasBeenSet = true; m_modelId.assign(value); }
111 inline CreateAIPromptRequest& WithModelId(const Aws::String& value) { SetModelId(value); return *this;}
112 inline CreateAIPromptRequest& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;}
113 inline CreateAIPromptRequest& WithModelId(const char* value) { SetModelId(value); return *this;}
115
117
120 inline const Aws::String& GetName() const{ return m_name; }
121 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
122 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
123 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
124 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
125 inline CreateAIPromptRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
126 inline CreateAIPromptRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
127 inline CreateAIPromptRequest& WithName(const char* value) { SetName(value); return *this;}
129
131
134 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
135 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
136 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
137 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
138 inline CreateAIPromptRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
139 inline CreateAIPromptRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
140 inline CreateAIPromptRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
141 inline CreateAIPromptRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
142 inline CreateAIPromptRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
143 inline CreateAIPromptRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
144 inline CreateAIPromptRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
145 inline CreateAIPromptRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
146 inline CreateAIPromptRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
148
150
153 inline const AIPromptTemplateConfiguration& GetTemplateConfiguration() const{ return m_templateConfiguration; }
154 inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }
155 inline void SetTemplateConfiguration(const AIPromptTemplateConfiguration& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = value; }
156 inline void SetTemplateConfiguration(AIPromptTemplateConfiguration&& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = std::move(value); }
160
162
165 inline const AIPromptTemplateType& GetTemplateType() const{ return m_templateType; }
166 inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
167 inline void SetTemplateType(const AIPromptTemplateType& value) { m_templateTypeHasBeenSet = true; m_templateType = value; }
168 inline void SetTemplateType(AIPromptTemplateType&& value) { m_templateTypeHasBeenSet = true; m_templateType = std::move(value); }
169 inline CreateAIPromptRequest& WithTemplateType(const AIPromptTemplateType& value) { SetTemplateType(value); return *this;}
170 inline CreateAIPromptRequest& WithTemplateType(AIPromptTemplateType&& value) { SetTemplateType(std::move(value)); return *this;}
172
174
177 inline const AIPromptType& GetType() const{ return m_type; }
178 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
179 inline void SetType(const AIPromptType& value) { m_typeHasBeenSet = true; m_type = value; }
180 inline void SetType(AIPromptType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
181 inline CreateAIPromptRequest& WithType(const AIPromptType& value) { SetType(value); return *this;}
182 inline CreateAIPromptRequest& WithType(AIPromptType&& value) { SetType(std::move(value)); return *this;}
184
186
189 inline const VisibilityStatus& GetVisibilityStatus() const{ return m_visibilityStatus; }
190 inline bool VisibilityStatusHasBeenSet() const { return m_visibilityStatusHasBeenSet; }
191 inline void SetVisibilityStatus(const VisibilityStatus& value) { m_visibilityStatusHasBeenSet = true; m_visibilityStatus = value; }
192 inline void SetVisibilityStatus(VisibilityStatus&& value) { m_visibilityStatusHasBeenSet = true; m_visibilityStatus = std::move(value); }
194 inline CreateAIPromptRequest& WithVisibilityStatus(VisibilityStatus&& value) { SetVisibilityStatus(std::move(value)); return *this;}
196 private:
197
198 AIPromptAPIFormat m_apiFormat;
199 bool m_apiFormatHasBeenSet = false;
200
201 Aws::String m_assistantId;
202 bool m_assistantIdHasBeenSet = false;
203
204 Aws::String m_clientToken;
205 bool m_clientTokenHasBeenSet = false;
206
207 Aws::String m_description;
208 bool m_descriptionHasBeenSet = false;
209
210 Aws::String m_modelId;
211 bool m_modelIdHasBeenSet = false;
212
213 Aws::String m_name;
214 bool m_nameHasBeenSet = false;
215
217 bool m_tagsHasBeenSet = false;
218
219 AIPromptTemplateConfiguration m_templateConfiguration;
220 bool m_templateConfigurationHasBeenSet = false;
221
222 AIPromptTemplateType m_templateType;
223 bool m_templateTypeHasBeenSet = false;
224
225 AIPromptType m_type;
226 bool m_typeHasBeenSet = false;
227
228 VisibilityStatus m_visibilityStatus;
229 bool m_visibilityStatusHasBeenSet = false;
230 };
231
232} // namespace Model
233} // namespace QConnect
234} // namespace Aws
void SetTemplateConfiguration(AIPromptTemplateConfiguration &&value)
const AIPromptAPIFormat & GetApiFormat() const
void SetTemplateType(AIPromptTemplateType &&value)
CreateAIPromptRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAIPromptRequest & WithModelId(const char *value)
CreateAIPromptRequest & WithDescription(Aws::String &&value)
void SetVisibilityStatus(VisibilityStatus &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAIPromptRequest & WithType(const AIPromptType &value)
CreateAIPromptRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const AIPromptTemplateType & GetTemplateType() const
AWS_QCONNECT_API Aws::String SerializePayload() const override
CreateAIPromptRequest & WithModelId(Aws::String &&value)
CreateAIPromptRequest & WithTemplateConfiguration(const AIPromptTemplateConfiguration &value)
CreateAIPromptRequest & WithClientToken(const char *value)
void SetApiFormat(const AIPromptAPIFormat &value)
CreateAIPromptRequest & WithAssistantId(const char *value)
CreateAIPromptRequest & WithModelId(const Aws::String &value)
CreateAIPromptRequest & WithType(AIPromptType &&value)
CreateAIPromptRequest & WithDescription(const char *value)
void SetVisibilityStatus(const VisibilityStatus &value)
CreateAIPromptRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateAIPromptRequest & WithName(const char *value)
CreateAIPromptRequest & WithTemplateConfiguration(AIPromptTemplateConfiguration &&value)
virtual const char * GetServiceRequestName() const override
void SetTemplateConfiguration(const AIPromptTemplateConfiguration &value)
CreateAIPromptRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateAIPromptRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateAIPromptRequest & WithClientToken(const Aws::String &value)
CreateAIPromptRequest & AddTags(const char *key, const char *value)
CreateAIPromptRequest & WithApiFormat(const AIPromptAPIFormat &value)
const AIPromptTemplateConfiguration & GetTemplateConfiguration() const
CreateAIPromptRequest & WithTemplateType(const AIPromptTemplateType &value)
void SetTemplateType(const AIPromptTemplateType &value)
CreateAIPromptRequest & WithVisibilityStatus(VisibilityStatus &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAIPromptRequest & WithAssistantId(Aws::String &&value)
CreateAIPromptRequest & WithName(const Aws::String &value)
CreateAIPromptRequest & WithApiFormat(AIPromptAPIFormat &&value)
CreateAIPromptRequest & WithDescription(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAIPromptRequest & AddTags(Aws::String &&key, const char *value)
CreateAIPromptRequest & WithClientToken(Aws::String &&value)
CreateAIPromptRequest & WithVisibilityStatus(const VisibilityStatus &value)
CreateAIPromptRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateAIPromptRequest & WithTemplateType(AIPromptTemplateType &&value)
CreateAIPromptRequest & AddTags(const char *key, Aws::String &&value)
const VisibilityStatus & GetVisibilityStatus() const
CreateAIPromptRequest & WithAssistantId(const Aws::String &value)
CreateAIPromptRequest & WithName(Aws::String &&value)
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