AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PromptConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-agent/model/InferenceConfiguration.h>
10#include <aws/bedrock-agent/model/CreationMode.h>
11#include <aws/bedrock-agent/model/PromptState.h>
12#include <aws/bedrock-agent/model/PromptType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace BedrockAgent
26{
27namespace Model
28{
29
39 {
40 public:
41 AWS_BEDROCKAGENT_API PromptConfiguration();
42 AWS_BEDROCKAGENT_API PromptConfiguration(Aws::Utils::Json::JsonView jsonValue);
44 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
57 inline const Aws::String& GetBasePromptTemplate() const{ return m_basePromptTemplate; }
58 inline bool BasePromptTemplateHasBeenSet() const { return m_basePromptTemplateHasBeenSet; }
59 inline void SetBasePromptTemplate(const Aws::String& value) { m_basePromptTemplateHasBeenSet = true; m_basePromptTemplate = value; }
60 inline void SetBasePromptTemplate(Aws::String&& value) { m_basePromptTemplateHasBeenSet = true; m_basePromptTemplate = std::move(value); }
61 inline void SetBasePromptTemplate(const char* value) { m_basePromptTemplateHasBeenSet = true; m_basePromptTemplate.assign(value); }
62 inline PromptConfiguration& WithBasePromptTemplate(const Aws::String& value) { SetBasePromptTemplate(value); return *this;}
63 inline PromptConfiguration& WithBasePromptTemplate(Aws::String&& value) { SetBasePromptTemplate(std::move(value)); return *this;}
64 inline PromptConfiguration& WithBasePromptTemplate(const char* value) { SetBasePromptTemplate(value); return *this;}
66
68
75 inline const InferenceConfiguration& GetInferenceConfiguration() const{ return m_inferenceConfiguration; }
76 inline bool InferenceConfigurationHasBeenSet() const { return m_inferenceConfigurationHasBeenSet; }
77 inline void SetInferenceConfiguration(const InferenceConfiguration& value) { m_inferenceConfigurationHasBeenSet = true; m_inferenceConfiguration = value; }
78 inline void SetInferenceConfiguration(InferenceConfiguration&& value) { m_inferenceConfigurationHasBeenSet = true; m_inferenceConfiguration = std::move(value); }
82
84
92 inline const CreationMode& GetParserMode() const{ return m_parserMode; }
93 inline bool ParserModeHasBeenSet() const { return m_parserModeHasBeenSet; }
94 inline void SetParserMode(const CreationMode& value) { m_parserModeHasBeenSet = true; m_parserMode = value; }
95 inline void SetParserMode(CreationMode&& value) { m_parserModeHasBeenSet = true; m_parserMode = std::move(value); }
96 inline PromptConfiguration& WithParserMode(const CreationMode& value) { SetParserMode(value); return *this;}
97 inline PromptConfiguration& WithParserMode(CreationMode&& value) { SetParserMode(std::move(value)); return *this;}
99
101
107 inline const CreationMode& GetPromptCreationMode() const{ return m_promptCreationMode; }
108 inline bool PromptCreationModeHasBeenSet() const { return m_promptCreationModeHasBeenSet; }
109 inline void SetPromptCreationMode(const CreationMode& value) { m_promptCreationModeHasBeenSet = true; m_promptCreationMode = value; }
110 inline void SetPromptCreationMode(CreationMode&& value) { m_promptCreationModeHasBeenSet = true; m_promptCreationMode = std::move(value); }
112 inline PromptConfiguration& WithPromptCreationMode(CreationMode&& value) { SetPromptCreationMode(std::move(value)); return *this;}
114
116
126 inline const PromptState& GetPromptState() const{ return m_promptState; }
127 inline bool PromptStateHasBeenSet() const { return m_promptStateHasBeenSet; }
128 inline void SetPromptState(const PromptState& value) { m_promptStateHasBeenSet = true; m_promptState = value; }
129 inline void SetPromptState(PromptState&& value) { m_promptStateHasBeenSet = true; m_promptState = std::move(value); }
130 inline PromptConfiguration& WithPromptState(const PromptState& value) { SetPromptState(value); return *this;}
131 inline PromptConfiguration& WithPromptState(PromptState&& value) { SetPromptState(std::move(value)); return *this;}
133
135
138 inline const PromptType& GetPromptType() const{ return m_promptType; }
139 inline bool PromptTypeHasBeenSet() const { return m_promptTypeHasBeenSet; }
140 inline void SetPromptType(const PromptType& value) { m_promptTypeHasBeenSet = true; m_promptType = value; }
141 inline void SetPromptType(PromptType&& value) { m_promptTypeHasBeenSet = true; m_promptType = std::move(value); }
142 inline PromptConfiguration& WithPromptType(const PromptType& value) { SetPromptType(value); return *this;}
143 inline PromptConfiguration& WithPromptType(PromptType&& value) { SetPromptType(std::move(value)); return *this;}
145 private:
146
147 Aws::String m_basePromptTemplate;
148 bool m_basePromptTemplateHasBeenSet = false;
149
150 InferenceConfiguration m_inferenceConfiguration;
151 bool m_inferenceConfigurationHasBeenSet = false;
152
153 CreationMode m_parserMode;
154 bool m_parserModeHasBeenSet = false;
155
156 CreationMode m_promptCreationMode;
157 bool m_promptCreationModeHasBeenSet = false;
158
159 PromptState m_promptState;
160 bool m_promptStateHasBeenSet = false;
161
162 PromptType m_promptType;
163 bool m_promptTypeHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace BedrockAgent
168} // namespace Aws
PromptConfiguration & WithPromptCreationMode(CreationMode &&value)
PromptConfiguration & WithPromptType(const PromptType &value)
PromptConfiguration & WithPromptState(PromptState &&value)
void SetPromptCreationMode(const CreationMode &value)
PromptConfiguration & WithParserMode(CreationMode &&value)
void SetInferenceConfiguration(InferenceConfiguration &&value)
AWS_BEDROCKAGENT_API PromptConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
PromptConfiguration & WithBasePromptTemplate(const Aws::String &value)
PromptConfiguration & WithParserMode(const CreationMode &value)
const InferenceConfiguration & GetInferenceConfiguration() const
void SetInferenceConfiguration(const InferenceConfiguration &value)
AWS_BEDROCKAGENT_API PromptConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetParserMode(const CreationMode &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)
PromptConfiguration & WithInferenceConfiguration(const InferenceConfiguration &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue