AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
PromptVariant.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/PromptGenAiResource.h>
9#include <aws/bedrock-agent/model/PromptInferenceConfiguration.h>
10#include <aws/bedrock-agent/model/PromptMetadataEntry.h>
11#include <aws/bedrock-agent/model/PromptTemplateConfiguration.h>
12#include <aws/bedrock-agent/model/PromptTemplateType.h>
13#include <aws/core/utils/Document.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace BedrockAgent {
27namespace Model {
28
35 public:
36 AWS_BEDROCKAGENT_API PromptVariant() = default;
39 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template <typename NameT = Aws::String>
48 void SetName(NameT&& value) {
49 m_nameHasBeenSet = true;
50 m_name = std::forward<NameT>(value);
51 }
52 template <typename NameT = Aws::String>
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
63 inline PromptTemplateType GetTemplateType() const { return m_templateType; }
64 inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
66 m_templateTypeHasBeenSet = true;
67 m_templateType = value;
68 }
70 SetTemplateType(value);
71 return *this;
72 }
74
76
79 inline const PromptTemplateConfiguration& GetTemplateConfiguration() const { return m_templateConfiguration; }
80 inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }
81 template <typename TemplateConfigurationT = PromptTemplateConfiguration>
83 m_templateConfigurationHasBeenSet = true;
84 m_templateConfiguration = std::forward<TemplateConfigurationT>(value);
85 }
86 template <typename TemplateConfigurationT = PromptTemplateConfiguration>
88 SetTemplateConfiguration(std::forward<TemplateConfigurationT>(value));
89 return *this;
90 }
92
94
99 inline const Aws::String& GetModelId() const { return m_modelId; }
100 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
101 template <typename ModelIdT = Aws::String>
102 void SetModelId(ModelIdT&& value) {
103 m_modelIdHasBeenSet = true;
104 m_modelId = std::forward<ModelIdT>(value);
105 }
106 template <typename ModelIdT = Aws::String>
108 SetModelId(std::forward<ModelIdT>(value));
109 return *this;
110 }
112
114
117 inline const PromptInferenceConfiguration& GetInferenceConfiguration() const { return m_inferenceConfiguration; }
118 inline bool InferenceConfigurationHasBeenSet() const { return m_inferenceConfigurationHasBeenSet; }
119 template <typename InferenceConfigurationT = PromptInferenceConfiguration>
121 m_inferenceConfigurationHasBeenSet = true;
122 m_inferenceConfiguration = std::forward<InferenceConfigurationT>(value);
123 }
124 template <typename InferenceConfigurationT = PromptInferenceConfiguration>
126 SetInferenceConfiguration(std::forward<InferenceConfigurationT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::Vector<PromptMetadataEntry>& GetMetadata() const { return m_metadata; }
137 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
138 template <typename MetadataT = Aws::Vector<PromptMetadataEntry>>
139 void SetMetadata(MetadataT&& value) {
140 m_metadataHasBeenSet = true;
141 m_metadata = std::forward<MetadataT>(value);
142 }
143 template <typename MetadataT = Aws::Vector<PromptMetadataEntry>>
145 SetMetadata(std::forward<MetadataT>(value));
146 return *this;
147 }
148 template <typename MetadataT = PromptMetadataEntry>
150 m_metadataHasBeenSet = true;
151 m_metadata.emplace_back(std::forward<MetadataT>(value));
152 return *this;
153 }
155
157
164 inline Aws::Utils::DocumentView GetAdditionalModelRequestFields() const { return m_additionalModelRequestFields; }
165 inline bool AdditionalModelRequestFieldsHasBeenSet() const { return m_additionalModelRequestFieldsHasBeenSet; }
166 template <typename AdditionalModelRequestFieldsT = Aws::Utils::Document>
168 m_additionalModelRequestFieldsHasBeenSet = true;
169 m_additionalModelRequestFields = std::forward<AdditionalModelRequestFieldsT>(value);
170 }
171 template <typename AdditionalModelRequestFieldsT = Aws::Utils::Document>
173 SetAdditionalModelRequestFields(std::forward<AdditionalModelRequestFieldsT>(value));
174 return *this;
175 }
177
179
182 inline const PromptGenAiResource& GetGenAiResource() const { return m_genAiResource; }
183 inline bool GenAiResourceHasBeenSet() const { return m_genAiResourceHasBeenSet; }
184 template <typename GenAiResourceT = PromptGenAiResource>
186 m_genAiResourceHasBeenSet = true;
187 m_genAiResource = std::forward<GenAiResourceT>(value);
188 }
189 template <typename GenAiResourceT = PromptGenAiResource>
191 SetGenAiResource(std::forward<GenAiResourceT>(value));
192 return *this;
193 }
195 private:
196 Aws::String m_name;
197
199
200 PromptTemplateConfiguration m_templateConfiguration;
201
202 Aws::String m_modelId;
203
204 PromptInferenceConfiguration m_inferenceConfiguration;
205
207
208 Aws::Utils::Document m_additionalModelRequestFields;
209
210 PromptGenAiResource m_genAiResource;
211 bool m_nameHasBeenSet = false;
212 bool m_templateTypeHasBeenSet = false;
213 bool m_templateConfigurationHasBeenSet = false;
214 bool m_modelIdHasBeenSet = false;
215 bool m_inferenceConfigurationHasBeenSet = false;
216 bool m_metadataHasBeenSet = false;
217 bool m_additionalModelRequestFieldsHasBeenSet = false;
218 bool m_genAiResourceHasBeenSet = false;
219};
220
221} // namespace Model
222} // namespace BedrockAgent
223} // namespace Aws
const PromptGenAiResource & GetGenAiResource() const
AWS_BEDROCKAGENT_API PromptVariant & operator=(Aws::Utils::Json::JsonView jsonValue)
PromptVariant & WithTemplateConfiguration(TemplateConfigurationT &&value)
const PromptInferenceConfiguration & GetInferenceConfiguration() const
void SetAdditionalModelRequestFields(AdditionalModelRequestFieldsT &&value)
const Aws::String & GetName() const
const PromptTemplateConfiguration & GetTemplateConfiguration() const
PromptVariant & AddMetadata(MetadataT &&value)
const Aws::Vector< PromptMetadataEntry > & GetMetadata() const
void SetTemplateType(PromptTemplateType value)
PromptVariant & WithMetadata(MetadataT &&value)
Aws::Utils::DocumentView GetAdditionalModelRequestFields() const
void SetGenAiResource(GenAiResourceT &&value)
AWS_BEDROCKAGENT_API PromptVariant()=default
const Aws::String & GetModelId() const
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
PromptVariant & WithModelId(ModelIdT &&value)
PromptVariant & WithAdditionalModelRequestFields(AdditionalModelRequestFieldsT &&value)
AWS_BEDROCKAGENT_API PromptVariant(Aws::Utils::Json::JsonView jsonValue)
void SetTemplateConfiguration(TemplateConfigurationT &&value)
PromptTemplateType GetTemplateType() const
PromptVariant & WithTemplateType(PromptTemplateType value)
PromptVariant & WithName(NameT &&value)
void SetInferenceConfiguration(InferenceConfigurationT &&value)
PromptVariant & WithGenAiResource(GenAiResourceT &&value)
PromptVariant & WithInferenceConfiguration(InferenceConfigurationT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue