AWS SDK for C++

AWS SDK for C++ Version 1.11.509

Loading...
Searching...
No Matches
PromptConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/Document.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/bedrock-agent/model/InferenceConfiguration.h>
11#include <aws/bedrock-agent/model/CreationMode.h>
12#include <aws/bedrock-agent/model/PromptState.h>
13#include <aws/bedrock-agent/model/PromptType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace BedrockAgent
27{
28namespace Model
29{
30
40 {
41 public:
42 AWS_BEDROCKAGENT_API PromptConfiguration();
43 AWS_BEDROCKAGENT_API PromptConfiguration(Aws::Utils::Json::JsonView jsonValue);
45 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
57 inline Aws::Utils::DocumentView GetAdditionalModelRequestFields() const{ return m_additionalModelRequestFields; }
58 inline bool AdditionalModelRequestFieldsHasBeenSet() const { return m_additionalModelRequestFieldsHasBeenSet; }
59 inline void SetAdditionalModelRequestFields(const Aws::Utils::Document& value) { m_additionalModelRequestFieldsHasBeenSet = true; m_additionalModelRequestFields = value; }
60 inline void SetAdditionalModelRequestFields(Aws::Utils::Document&& value) { m_additionalModelRequestFieldsHasBeenSet = true; m_additionalModelRequestFields = std::move(value); }
64
66
75 inline const Aws::String& GetBasePromptTemplate() const{ return m_basePromptTemplate; }
76 inline bool BasePromptTemplateHasBeenSet() const { return m_basePromptTemplateHasBeenSet; }
77 inline void SetBasePromptTemplate(const Aws::String& value) { m_basePromptTemplateHasBeenSet = true; m_basePromptTemplate = value; }
78 inline void SetBasePromptTemplate(Aws::String&& value) { m_basePromptTemplateHasBeenSet = true; m_basePromptTemplate = std::move(value); }
79 inline void SetBasePromptTemplate(const char* value) { m_basePromptTemplateHasBeenSet = true; m_basePromptTemplate.assign(value); }
80 inline PromptConfiguration& WithBasePromptTemplate(const Aws::String& value) { SetBasePromptTemplate(value); return *this;}
81 inline PromptConfiguration& WithBasePromptTemplate(Aws::String&& value) { SetBasePromptTemplate(std::move(value)); return *this;}
82 inline PromptConfiguration& WithBasePromptTemplate(const char* value) { SetBasePromptTemplate(value); return *this;}
84
86
89 inline const Aws::String& GetFoundationModel() const{ return m_foundationModel; }
90 inline bool FoundationModelHasBeenSet() const { return m_foundationModelHasBeenSet; }
91 inline void SetFoundationModel(const Aws::String& value) { m_foundationModelHasBeenSet = true; m_foundationModel = value; }
92 inline void SetFoundationModel(Aws::String&& value) { m_foundationModelHasBeenSet = true; m_foundationModel = std::move(value); }
93 inline void SetFoundationModel(const char* value) { m_foundationModelHasBeenSet = true; m_foundationModel.assign(value); }
94 inline PromptConfiguration& WithFoundationModel(const Aws::String& value) { SetFoundationModel(value); return *this;}
95 inline PromptConfiguration& WithFoundationModel(Aws::String&& value) { SetFoundationModel(std::move(value)); return *this;}
96 inline PromptConfiguration& WithFoundationModel(const char* value) { SetFoundationModel(value); return *this;}
98
100
107 inline const InferenceConfiguration& GetInferenceConfiguration() const{ return m_inferenceConfiguration; }
108 inline bool InferenceConfigurationHasBeenSet() const { return m_inferenceConfigurationHasBeenSet; }
109 inline void SetInferenceConfiguration(const InferenceConfiguration& value) { m_inferenceConfigurationHasBeenSet = true; m_inferenceConfiguration = value; }
110 inline void SetInferenceConfiguration(InferenceConfiguration&& value) { m_inferenceConfigurationHasBeenSet = true; m_inferenceConfiguration = std::move(value); }
114
116
124 inline const CreationMode& GetParserMode() const{ return m_parserMode; }
125 inline bool ParserModeHasBeenSet() const { return m_parserModeHasBeenSet; }
126 inline void SetParserMode(const CreationMode& value) { m_parserModeHasBeenSet = true; m_parserMode = value; }
127 inline void SetParserMode(CreationMode&& value) { m_parserModeHasBeenSet = true; m_parserMode = std::move(value); }
128 inline PromptConfiguration& WithParserMode(const CreationMode& value) { SetParserMode(value); return *this;}
129 inline PromptConfiguration& WithParserMode(CreationMode&& value) { SetParserMode(std::move(value)); return *this;}
131
133
139 inline const CreationMode& GetPromptCreationMode() const{ return m_promptCreationMode; }
140 inline bool PromptCreationModeHasBeenSet() const { return m_promptCreationModeHasBeenSet; }
141 inline void SetPromptCreationMode(const CreationMode& value) { m_promptCreationModeHasBeenSet = true; m_promptCreationMode = value; }
142 inline void SetPromptCreationMode(CreationMode&& value) { m_promptCreationModeHasBeenSet = true; m_promptCreationMode = std::move(value); }
144 inline PromptConfiguration& WithPromptCreationMode(CreationMode&& value) { SetPromptCreationMode(std::move(value)); return *this;}
146
148
158 inline const PromptState& GetPromptState() const{ return m_promptState; }
159 inline bool PromptStateHasBeenSet() const { return m_promptStateHasBeenSet; }
160 inline void SetPromptState(const PromptState& value) { m_promptStateHasBeenSet = true; m_promptState = value; }
161 inline void SetPromptState(PromptState&& value) { m_promptStateHasBeenSet = true; m_promptState = std::move(value); }
162 inline PromptConfiguration& WithPromptState(const PromptState& value) { SetPromptState(value); return *this;}
163 inline PromptConfiguration& WithPromptState(PromptState&& value) { SetPromptState(std::move(value)); return *this;}
165
167
170 inline const PromptType& GetPromptType() const{ return m_promptType; }
171 inline bool PromptTypeHasBeenSet() const { return m_promptTypeHasBeenSet; }
172 inline void SetPromptType(const PromptType& value) { m_promptTypeHasBeenSet = true; m_promptType = value; }
173 inline void SetPromptType(PromptType&& value) { m_promptTypeHasBeenSet = true; m_promptType = std::move(value); }
174 inline PromptConfiguration& WithPromptType(const PromptType& value) { SetPromptType(value); return *this;}
175 inline PromptConfiguration& WithPromptType(PromptType&& value) { SetPromptType(std::move(value)); return *this;}
177 private:
178
179 Aws::Utils::Document m_additionalModelRequestFields;
180 bool m_additionalModelRequestFieldsHasBeenSet = false;
181
182 Aws::String m_basePromptTemplate;
183 bool m_basePromptTemplateHasBeenSet = false;
184
185 Aws::String m_foundationModel;
186 bool m_foundationModelHasBeenSet = false;
187
188 InferenceConfiguration m_inferenceConfiguration;
189 bool m_inferenceConfigurationHasBeenSet = false;
190
191 CreationMode m_parserMode;
192 bool m_parserModeHasBeenSet = false;
193
194 CreationMode m_promptCreationMode;
195 bool m_promptCreationModeHasBeenSet = false;
196
197 PromptState m_promptState;
198 bool m_promptStateHasBeenSet = false;
199
200 PromptType m_promptType;
201 bool m_promptTypeHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace BedrockAgent
206} // namespace Aws
PromptConfiguration & WithPromptCreationMode(CreationMode &&value)
PromptConfiguration & WithPromptType(const PromptType &value)
PromptConfiguration & WithPromptState(PromptState &&value)
PromptConfiguration & WithFoundationModel(Aws::String &&value)
PromptConfiguration & WithFoundationModel(const char *value)
PromptConfiguration & WithAdditionalModelRequestFields(Aws::Utils::Document &&value)
void SetPromptCreationMode(const CreationMode &value)
PromptConfiguration & WithParserMode(CreationMode &&value)
void SetInferenceConfiguration(InferenceConfiguration &&value)
AWS_BEDROCKAGENT_API PromptConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
PromptConfiguration & WithAdditionalModelRequestFields(const Aws::Utils::Document &value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
PromptConfiguration & WithBasePromptTemplate(const Aws::String &value)
PromptConfiguration & WithParserMode(const CreationMode &value)
void SetAdditionalModelRequestFields(const Aws::Utils::Document &value)
void SetFoundationModel(const Aws::String &value)
const InferenceConfiguration & GetInferenceConfiguration() const
Aws::Utils::DocumentView GetAdditionalModelRequestFields() const
void SetInferenceConfiguration(const InferenceConfiguration &value)
AWS_BEDROCKAGENT_API PromptConfiguration(Aws::Utils::Json::JsonView jsonValue)
PromptConfiguration & WithFoundationModel(const Aws::String &value)
PromptConfiguration & WithPromptCreationMode(const CreationMode &value)
PromptConfiguration & WithPromptType(PromptType &&value)
PromptConfiguration & WithBasePromptTemplate(const char *value)
PromptConfiguration & WithPromptState(const PromptState &value)
PromptConfiguration & WithBasePromptTemplate(Aws::String &&value)
void SetBasePromptTemplate(const Aws::String &value)
PromptConfiguration & WithInferenceConfiguration(InferenceConfiguration &&value)
void SetAdditionalModelRequestFields(Aws::Utils::Document &&value)
PromptConfiguration & WithInferenceConfiguration(const InferenceConfiguration &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue