AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ModelInvocationInput.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/CreationMode.h>
9#include <aws/bedrock-agent-runtime/model/InferenceConfiguration.h>
10#include <aws/bedrock-agent-runtime/model/PromptType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgentRuntime {
23namespace Model {
24
38 public:
39 AWS_BEDROCKAGENTRUNTIME_API ModelInvocationInput() = default;
42 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::String& GetFoundationModel() const { return m_foundationModel; }
49 inline bool FoundationModelHasBeenSet() const { return m_foundationModelHasBeenSet; }
50 template <typename FoundationModelT = Aws::String>
52 m_foundationModelHasBeenSet = true;
53 m_foundationModel = std::forward<FoundationModelT>(value);
54 }
55 template <typename FoundationModelT = Aws::String>
57 SetFoundationModel(std::forward<FoundationModelT>(value));
58 return *this;
59 }
61
63
72 inline const InferenceConfiguration& GetInferenceConfiguration() const { return m_inferenceConfiguration; }
73 inline bool InferenceConfigurationHasBeenSet() const { return m_inferenceConfigurationHasBeenSet; }
74 template <typename InferenceConfigurationT = InferenceConfiguration>
76 m_inferenceConfigurationHasBeenSet = true;
77 m_inferenceConfiguration = std::forward<InferenceConfigurationT>(value);
78 }
79 template <typename InferenceConfigurationT = InferenceConfiguration>
81 SetInferenceConfiguration(std::forward<InferenceConfigurationT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::String& GetOverrideLambda() const { return m_overrideLambda; }
92 inline bool OverrideLambdaHasBeenSet() const { return m_overrideLambdaHasBeenSet; }
93 template <typename OverrideLambdaT = Aws::String>
95 m_overrideLambdaHasBeenSet = true;
96 m_overrideLambda = std::forward<OverrideLambdaT>(value);
97 }
98 template <typename OverrideLambdaT = Aws::String>
100 SetOverrideLambda(std::forward<OverrideLambdaT>(value));
101 return *this;
102 }
104
106
111 inline CreationMode GetParserMode() const { return m_parserMode; }
112 inline bool ParserModeHasBeenSet() const { return m_parserModeHasBeenSet; }
113 inline void SetParserMode(CreationMode value) {
114 m_parserModeHasBeenSet = true;
115 m_parserMode = value;
116 }
118 SetParserMode(value);
119 return *this;
120 }
122
124
130 inline CreationMode GetPromptCreationMode() const { return m_promptCreationMode; }
131 inline bool PromptCreationModeHasBeenSet() const { return m_promptCreationModeHasBeenSet; }
133 m_promptCreationModeHasBeenSet = true;
134 m_promptCreationMode = value;
135 }
138 return *this;
139 }
141
143
146 inline const Aws::String& GetText() const { return m_text; }
147 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
148 template <typename TextT = Aws::String>
149 void SetText(TextT&& value) {
150 m_textHasBeenSet = true;
151 m_text = std::forward<TextT>(value);
152 }
153 template <typename TextT = Aws::String>
155 SetText(std::forward<TextT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetTraceId() const { return m_traceId; }
165 inline bool TraceIdHasBeenSet() const { return m_traceIdHasBeenSet; }
166 template <typename TraceIdT = Aws::String>
167 void SetTraceId(TraceIdT&& value) {
168 m_traceIdHasBeenSet = true;
169 m_traceId = std::forward<TraceIdT>(value);
170 }
171 template <typename TraceIdT = Aws::String>
173 SetTraceId(std::forward<TraceIdT>(value));
174 return *this;
175 }
177
179
182 inline PromptType GetType() const { return m_type; }
183 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
184 inline void SetType(PromptType value) {
185 m_typeHasBeenSet = true;
186 m_type = value;
187 }
189 SetType(value);
190 return *this;
191 }
193 private:
194 Aws::String m_foundationModel;
195
196 InferenceConfiguration m_inferenceConfiguration;
197
198 Aws::String m_overrideLambda;
199
201
202 CreationMode m_promptCreationMode{CreationMode::NOT_SET};
203
204 Aws::String m_text;
205
206 Aws::String m_traceId;
207
209 bool m_foundationModelHasBeenSet = false;
210 bool m_inferenceConfigurationHasBeenSet = false;
211 bool m_overrideLambdaHasBeenSet = false;
212 bool m_parserModeHasBeenSet = false;
213 bool m_promptCreationModeHasBeenSet = false;
214 bool m_textHasBeenSet = false;
215 bool m_traceIdHasBeenSet = false;
216 bool m_typeHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace BedrockAgentRuntime
221} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API ModelInvocationInput & operator=(Aws::Utils::Json::JsonView jsonValue)
ModelInvocationInput & WithPromptCreationMode(CreationMode value)
ModelInvocationInput & WithTraceId(TraceIdT &&value)
ModelInvocationInput & WithType(PromptType value)
const InferenceConfiguration & GetInferenceConfiguration() const
void SetInferenceConfiguration(InferenceConfigurationT &&value)
ModelInvocationInput & WithParserMode(CreationMode value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ModelInvocationInput & WithOverrideLambda(OverrideLambdaT &&value)
ModelInvocationInput & WithInferenceConfiguration(InferenceConfigurationT &&value)
AWS_BEDROCKAGENTRUNTIME_API ModelInvocationInput()=default
ModelInvocationInput & WithFoundationModel(FoundationModelT &&value)
AWS_BEDROCKAGENTRUNTIME_API ModelInvocationInput(Aws::Utils::Json::JsonView jsonValue)
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