AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
PromptConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/CreationMode.h>
9#include <aws/bedrock-agent/model/InferenceConfiguration.h>
10#include <aws/bedrock-agent/model/PromptState.h>
11#include <aws/bedrock-agent/model/PromptType.h>
12#include <aws/core/utils/Document.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockAgent {
25namespace Model {
26
36 public:
37 AWS_BEDROCKAGENT_API PromptConfiguration() = default;
40 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline PromptType GetPromptType() const { return m_promptType; }
47 inline bool PromptTypeHasBeenSet() const { return m_promptTypeHasBeenSet; }
48 inline void SetPromptType(PromptType value) {
49 m_promptTypeHasBeenSet = true;
50 m_promptType = value;
51 }
53 SetPromptType(value);
54 return *this;
55 }
57
59
65 inline CreationMode GetPromptCreationMode() const { return m_promptCreationMode; }
66 inline bool PromptCreationModeHasBeenSet() const { return m_promptCreationModeHasBeenSet; }
68 m_promptCreationModeHasBeenSet = true;
69 m_promptCreationMode = value;
70 }
73 return *this;
74 }
76
78
88 inline PromptState GetPromptState() const { return m_promptState; }
89 inline bool PromptStateHasBeenSet() const { return m_promptStateHasBeenSet; }
90 inline void SetPromptState(PromptState value) {
91 m_promptStateHasBeenSet = true;
92 m_promptState = value;
93 }
95 SetPromptState(value);
96 return *this;
97 }
99
101
110 inline const Aws::String& GetBasePromptTemplate() const { return m_basePromptTemplate; }
111 inline bool BasePromptTemplateHasBeenSet() const { return m_basePromptTemplateHasBeenSet; }
112 template <typename BasePromptTemplateT = Aws::String>
114 m_basePromptTemplateHasBeenSet = true;
115 m_basePromptTemplate = std::forward<BasePromptTemplateT>(value);
116 }
117 template <typename BasePromptTemplateT = Aws::String>
119 SetBasePromptTemplate(std::forward<BasePromptTemplateT>(value));
120 return *this;
121 }
123
125
132 inline const InferenceConfiguration& GetInferenceConfiguration() const { return m_inferenceConfiguration; }
133 inline bool InferenceConfigurationHasBeenSet() const { return m_inferenceConfigurationHasBeenSet; }
134 template <typename InferenceConfigurationT = InferenceConfiguration>
136 m_inferenceConfigurationHasBeenSet = true;
137 m_inferenceConfiguration = std::forward<InferenceConfigurationT>(value);
138 }
139 template <typename InferenceConfigurationT = InferenceConfiguration>
141 SetInferenceConfiguration(std::forward<InferenceConfigurationT>(value));
142 return *this;
143 }
145
147
155 inline CreationMode GetParserMode() const { return m_parserMode; }
156 inline bool ParserModeHasBeenSet() const { return m_parserModeHasBeenSet; }
157 inline void SetParserMode(CreationMode value) {
158 m_parserModeHasBeenSet = true;
159 m_parserMode = value;
160 }
162 SetParserMode(value);
163 return *this;
164 }
166
168
171 inline const Aws::String& GetFoundationModel() const { return m_foundationModel; }
172 inline bool FoundationModelHasBeenSet() const { return m_foundationModelHasBeenSet; }
173 template <typename FoundationModelT = Aws::String>
175 m_foundationModelHasBeenSet = true;
176 m_foundationModel = std::forward<FoundationModelT>(value);
177 }
178 template <typename FoundationModelT = Aws::String>
180 SetFoundationModel(std::forward<FoundationModelT>(value));
181 return *this;
182 }
184
186
194 inline Aws::Utils::DocumentView GetAdditionalModelRequestFields() const { return m_additionalModelRequestFields; }
195 inline bool AdditionalModelRequestFieldsHasBeenSet() const { return m_additionalModelRequestFieldsHasBeenSet; }
196 template <typename AdditionalModelRequestFieldsT = Aws::Utils::Document>
198 m_additionalModelRequestFieldsHasBeenSet = true;
199 m_additionalModelRequestFields = std::forward<AdditionalModelRequestFieldsT>(value);
200 }
201 template <typename AdditionalModelRequestFieldsT = Aws::Utils::Document>
203 SetAdditionalModelRequestFields(std::forward<AdditionalModelRequestFieldsT>(value));
204 return *this;
205 }
207 private:
208 PromptType m_promptType{PromptType::NOT_SET};
209
210 CreationMode m_promptCreationMode{CreationMode::NOT_SET};
211
212 PromptState m_promptState{PromptState::NOT_SET};
213
214 Aws::String m_basePromptTemplate;
215
216 InferenceConfiguration m_inferenceConfiguration;
217
219
220 Aws::String m_foundationModel;
221
222 Aws::Utils::Document m_additionalModelRequestFields;
223 bool m_promptTypeHasBeenSet = false;
224 bool m_promptCreationModeHasBeenSet = false;
225 bool m_promptStateHasBeenSet = false;
226 bool m_basePromptTemplateHasBeenSet = false;
227 bool m_inferenceConfigurationHasBeenSet = false;
228 bool m_parserModeHasBeenSet = false;
229 bool m_foundationModelHasBeenSet = false;
230 bool m_additionalModelRequestFieldsHasBeenSet = false;
231};
232
233} // namespace Model
234} // namespace BedrockAgent
235} // namespace Aws
void SetFoundationModel(FoundationModelT &&value)
PromptConfiguration & WithInferenceConfiguration(InferenceConfigurationT &&value)
PromptConfiguration & WithAdditionalModelRequestFields(AdditionalModelRequestFieldsT &&value)
AWS_BEDROCKAGENT_API PromptConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetInferenceConfiguration(InferenceConfigurationT &&value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetBasePromptTemplate(BasePromptTemplateT &&value)
PromptConfiguration & WithBasePromptTemplate(BasePromptTemplateT &&value)
PromptConfiguration & WithPromptCreationMode(CreationMode value)
const InferenceConfiguration & GetInferenceConfiguration() const
Aws::Utils::DocumentView GetAdditionalModelRequestFields() const
PromptConfiguration & WithPromptType(PromptType value)
PromptConfiguration & WithPromptState(PromptState value)
AWS_BEDROCKAGENT_API PromptConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API PromptConfiguration()=default
PromptConfiguration & WithFoundationModel(FoundationModelT &&value)
void SetAdditionalModelRequestFields(AdditionalModelRequestFieldsT &&value)
PromptConfiguration & WithParserMode(CreationMode value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue