AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/InferenceConfiguration.h>
9#include <aws/core/utils/memory/stl/AWSString.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();
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
60 inline const InferenceConfiguration& GetInferenceConfiguration() const{ return m_inferenceConfiguration; }
61 inline bool InferenceConfigurationHasBeenSet() const { return m_inferenceConfigurationHasBeenSet; }
62 inline void SetInferenceConfiguration(const InferenceConfiguration& value) { m_inferenceConfigurationHasBeenSet = true; m_inferenceConfiguration = value; }
63 inline void SetInferenceConfiguration(InferenceConfiguration&& value) { m_inferenceConfigurationHasBeenSet = true; m_inferenceConfiguration = std::move(value); }
67
69
73 inline const Aws::String& GetOverrideLambda() const{ return m_overrideLambda; }
74 inline bool OverrideLambdaHasBeenSet() const { return m_overrideLambdaHasBeenSet; }
75 inline void SetOverrideLambda(const Aws::String& value) { m_overrideLambdaHasBeenSet = true; m_overrideLambda = value; }
76 inline void SetOverrideLambda(Aws::String&& value) { m_overrideLambdaHasBeenSet = true; m_overrideLambda = std::move(value); }
77 inline void SetOverrideLambda(const char* value) { m_overrideLambdaHasBeenSet = true; m_overrideLambda.assign(value); }
78 inline ModelInvocationInput& WithOverrideLambda(const Aws::String& value) { SetOverrideLambda(value); return *this;}
79 inline ModelInvocationInput& WithOverrideLambda(Aws::String&& value) { SetOverrideLambda(std::move(value)); return *this;}
80 inline ModelInvocationInput& WithOverrideLambda(const char* value) { SetOverrideLambda(value); return *this;}
82
84
89 inline const CreationMode& GetParserMode() const{ return m_parserMode; }
90 inline bool ParserModeHasBeenSet() const { return m_parserModeHasBeenSet; }
91 inline void SetParserMode(const CreationMode& value) { m_parserModeHasBeenSet = true; m_parserMode = value; }
92 inline void SetParserMode(CreationMode&& value) { m_parserModeHasBeenSet = true; m_parserMode = std::move(value); }
93 inline ModelInvocationInput& WithParserMode(const CreationMode& value) { SetParserMode(value); return *this;}
94 inline ModelInvocationInput& WithParserMode(CreationMode&& value) { SetParserMode(std::move(value)); return *this;}
96
98
104 inline const CreationMode& GetPromptCreationMode() const{ return m_promptCreationMode; }
105 inline bool PromptCreationModeHasBeenSet() const { return m_promptCreationModeHasBeenSet; }
106 inline void SetPromptCreationMode(const CreationMode& value) { m_promptCreationModeHasBeenSet = true; m_promptCreationMode = value; }
107 inline void SetPromptCreationMode(CreationMode&& value) { m_promptCreationModeHasBeenSet = true; m_promptCreationMode = std::move(value); }
109 inline ModelInvocationInput& WithPromptCreationMode(CreationMode&& value) { SetPromptCreationMode(std::move(value)); return *this;}
111
113
116 inline const Aws::String& GetText() const{ return m_text; }
117 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
118 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
119 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
120 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
121 inline ModelInvocationInput& WithText(const Aws::String& value) { SetText(value); return *this;}
122 inline ModelInvocationInput& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
123 inline ModelInvocationInput& WithText(const char* value) { SetText(value); return *this;}
125
127
130 inline const Aws::String& GetTraceId() const{ return m_traceId; }
131 inline bool TraceIdHasBeenSet() const { return m_traceIdHasBeenSet; }
132 inline void SetTraceId(const Aws::String& value) { m_traceIdHasBeenSet = true; m_traceId = value; }
133 inline void SetTraceId(Aws::String&& value) { m_traceIdHasBeenSet = true; m_traceId = std::move(value); }
134 inline void SetTraceId(const char* value) { m_traceIdHasBeenSet = true; m_traceId.assign(value); }
135 inline ModelInvocationInput& WithTraceId(const Aws::String& value) { SetTraceId(value); return *this;}
136 inline ModelInvocationInput& WithTraceId(Aws::String&& value) { SetTraceId(std::move(value)); return *this;}
137 inline ModelInvocationInput& WithTraceId(const char* value) { SetTraceId(value); return *this;}
139
141
144 inline const PromptType& GetType() const{ return m_type; }
145 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
146 inline void SetType(const PromptType& value) { m_typeHasBeenSet = true; m_type = value; }
147 inline void SetType(PromptType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
148 inline ModelInvocationInput& WithType(const PromptType& value) { SetType(value); return *this;}
149 inline ModelInvocationInput& WithType(PromptType&& value) { SetType(std::move(value)); return *this;}
151 private:
152
153 InferenceConfiguration m_inferenceConfiguration;
154 bool m_inferenceConfigurationHasBeenSet = false;
155
156 Aws::String m_overrideLambda;
157 bool m_overrideLambdaHasBeenSet = false;
158
159 CreationMode m_parserMode;
160 bool m_parserModeHasBeenSet = false;
161
162 CreationMode m_promptCreationMode;
163 bool m_promptCreationModeHasBeenSet = false;
164
165 Aws::String m_text;
166 bool m_textHasBeenSet = false;
167
168 Aws::String m_traceId;
169 bool m_traceIdHasBeenSet = false;
170
171 PromptType m_type;
172 bool m_typeHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace BedrockAgentRuntime
177} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API ModelInvocationInput & operator=(Aws::Utils::Json::JsonView jsonValue)
ModelInvocationInput & WithParserMode(const CreationMode &value)
ModelInvocationInput & WithParserMode(CreationMode &&value)
const InferenceConfiguration & GetInferenceConfiguration() const
ModelInvocationInput & WithInferenceConfiguration(const InferenceConfiguration &value)
ModelInvocationInput & WithPromptCreationMode(const CreationMode &value)
ModelInvocationInput & WithText(const Aws::String &value)
void SetInferenceConfiguration(const InferenceConfiguration &value)
ModelInvocationInput & WithOverrideLambda(const char *value)
ModelInvocationInput & WithOverrideLambda(const Aws::String &value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ModelInvocationInput & WithText(const char *value)
AWS_BEDROCKAGENTRUNTIME_API ModelInvocationInput()
ModelInvocationInput & WithType(PromptType &&value)
ModelInvocationInput & WithPromptCreationMode(CreationMode &&value)
ModelInvocationInput & WithTraceId(Aws::String &&value)
AWS_BEDROCKAGENTRUNTIME_API ModelInvocationInput(Aws::Utils::Json::JsonView jsonValue)
ModelInvocationInput & WithTraceId(const char *value)
void SetInferenceConfiguration(InferenceConfiguration &&value)
ModelInvocationInput & WithInferenceConfiguration(InferenceConfiguration &&value)
ModelInvocationInput & WithText(Aws::String &&value)
ModelInvocationInput & WithTraceId(const Aws::String &value)
ModelInvocationInput & WithType(const PromptType &value)
ModelInvocationInput & WithOverrideLambda(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue