AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ModelInvocationInput.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-agent-runtime/model/InferenceConfiguration.h>
10#include <aws/bedrock-agent-runtime/model/CreationMode.h>
11#include <aws/bedrock-agent-runtime/model/PromptType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockAgentRuntime
25{
26namespace Model
27{
28
42 {
43 public:
44 AWS_BEDROCKAGENTRUNTIME_API ModelInvocationInput() = default;
45 AWS_BEDROCKAGENTRUNTIME_API ModelInvocationInput(Aws::Utils::Json::JsonView jsonValue);
46 AWS_BEDROCKAGENTRUNTIME_API ModelInvocationInput& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const Aws::String& GetFoundationModel() const { return m_foundationModel; }
55 inline bool FoundationModelHasBeenSet() const { return m_foundationModelHasBeenSet; }
56 template<typename FoundationModelT = Aws::String>
57 void SetFoundationModel(FoundationModelT&& value) { m_foundationModelHasBeenSet = true; m_foundationModel = std::forward<FoundationModelT>(value); }
58 template<typename FoundationModelT = Aws::String>
59 ModelInvocationInput& WithFoundationModel(FoundationModelT&& value) { SetFoundationModel(std::forward<FoundationModelT>(value)); return *this;}
61
63
72 inline const InferenceConfiguration& GetInferenceConfiguration() const { return m_inferenceConfiguration; }
73 inline bool InferenceConfigurationHasBeenSet() const { return m_inferenceConfigurationHasBeenSet; }
74 template<typename InferenceConfigurationT = InferenceConfiguration>
75 void SetInferenceConfiguration(InferenceConfigurationT&& value) { m_inferenceConfigurationHasBeenSet = true; m_inferenceConfiguration = std::forward<InferenceConfigurationT>(value); }
76 template<typename InferenceConfigurationT = InferenceConfiguration>
77 ModelInvocationInput& WithInferenceConfiguration(InferenceConfigurationT&& value) { SetInferenceConfiguration(std::forward<InferenceConfigurationT>(value)); return *this;}
79
81
85 inline const Aws::String& GetOverrideLambda() const { return m_overrideLambda; }
86 inline bool OverrideLambdaHasBeenSet() const { return m_overrideLambdaHasBeenSet; }
87 template<typename OverrideLambdaT = Aws::String>
88 void SetOverrideLambda(OverrideLambdaT&& value) { m_overrideLambdaHasBeenSet = true; m_overrideLambda = std::forward<OverrideLambdaT>(value); }
89 template<typename OverrideLambdaT = Aws::String>
90 ModelInvocationInput& WithOverrideLambda(OverrideLambdaT&& value) { SetOverrideLambda(std::forward<OverrideLambdaT>(value)); return *this;}
92
94
99 inline CreationMode GetParserMode() const { return m_parserMode; }
100 inline bool ParserModeHasBeenSet() const { return m_parserModeHasBeenSet; }
101 inline void SetParserMode(CreationMode value) { m_parserModeHasBeenSet = true; m_parserMode = value; }
102 inline ModelInvocationInput& WithParserMode(CreationMode value) { SetParserMode(value); return *this;}
104
106
112 inline CreationMode GetPromptCreationMode() const { return m_promptCreationMode; }
113 inline bool PromptCreationModeHasBeenSet() const { return m_promptCreationModeHasBeenSet; }
114 inline void SetPromptCreationMode(CreationMode value) { m_promptCreationModeHasBeenSet = true; m_promptCreationMode = value; }
117
119
122 inline const Aws::String& GetText() const { return m_text; }
123 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
124 template<typename TextT = Aws::String>
125 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
126 template<typename TextT = Aws::String>
127 ModelInvocationInput& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
129
131
134 inline const Aws::String& GetTraceId() const { return m_traceId; }
135 inline bool TraceIdHasBeenSet() const { return m_traceIdHasBeenSet; }
136 template<typename TraceIdT = Aws::String>
137 void SetTraceId(TraceIdT&& value) { m_traceIdHasBeenSet = true; m_traceId = std::forward<TraceIdT>(value); }
138 template<typename TraceIdT = Aws::String>
139 ModelInvocationInput& WithTraceId(TraceIdT&& value) { SetTraceId(std::forward<TraceIdT>(value)); return *this;}
141
143
146 inline PromptType GetType() const { return m_type; }
147 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
148 inline void SetType(PromptType value) { m_typeHasBeenSet = true; m_type = value; }
149 inline ModelInvocationInput& WithType(PromptType value) { SetType(value); return *this;}
151 private:
152
153 Aws::String m_foundationModel;
154 bool m_foundationModelHasBeenSet = false;
155
156 InferenceConfiguration m_inferenceConfiguration;
157 bool m_inferenceConfigurationHasBeenSet = false;
158
159 Aws::String m_overrideLambda;
160 bool m_overrideLambdaHasBeenSet = false;
161
163 bool m_parserModeHasBeenSet = false;
164
165 CreationMode m_promptCreationMode{CreationMode::NOT_SET};
166 bool m_promptCreationModeHasBeenSet = false;
167
168 Aws::String m_text;
169 bool m_textHasBeenSet = false;
170
171 Aws::String m_traceId;
172 bool m_traceIdHasBeenSet = false;
173
175 bool m_typeHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace BedrockAgentRuntime
180} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue