7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/GuardrailConfiguration.h>
9#include <aws/bedrock/model/KbInferenceConfig.h>
10#include <aws/bedrock/model/PromptTemplate.h>
11#include <aws/core/utils/Document.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
47 template <
typename PromptTemplateT = PromptTemplate>
49 m_promptTemplateHasBeenSet =
true;
50 m_promptTemplate = std::forward<PromptTemplateT>(value);
52 template <
typename PromptTemplateT = PromptTemplate>
65 template <
typename GuardrailConfigurationT = GuardrailConfiguration>
67 m_guardrailConfigurationHasBeenSet =
true;
68 m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value);
70 template <
typename GuardrailConfigurationT = GuardrailConfiguration>
84 template <
typename KbInferenceConfigT = KbInferenceConfig>
86 m_kbInferenceConfigHasBeenSet =
true;
87 m_kbInferenceConfig = std::forward<KbInferenceConfigT>(value);
89 template <
typename KbInferenceConfigT = KbInferenceConfig>
104 return m_additionalModelRequestFields;
107 template <
typename AdditionalModelRequestFieldsT = Aws::Map<Aws::String, Aws::Utils::Document>>
109 m_additionalModelRequestFieldsHasBeenSet =
true;
110 m_additionalModelRequestFields = std::forward<AdditionalModelRequestFieldsT>(value);
112 template <
typename AdditionalModelRequestFieldsT = Aws::Map<Aws::String, Aws::Utils::Document>>
117 template <
typename AdditionalModelRequestFieldsKeyT = Aws::String,
typename AdditionalModelRequestFieldsValueT = Aws::Utils::Document>
120 m_additionalModelRequestFieldsHasBeenSet =
true;
121 m_additionalModelRequestFields.emplace(std::forward<AdditionalModelRequestFieldsKeyT>(
key),
122 std::forward<AdditionalModelRequestFieldsValueT>(value));
134 bool m_promptTemplateHasBeenSet =
false;
135 bool m_guardrailConfigurationHasBeenSet =
false;
136 bool m_kbInferenceConfigHasBeenSet =
false;
137 bool m_additionalModelRequestFieldsHasBeenSet =
false;
void SetKbInferenceConfig(KbInferenceConfigT &&value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCK_API GenerationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetGuardrailConfiguration(GuardrailConfigurationT &&value)
const KbInferenceConfig & GetKbInferenceConfig() const
const GuardrailConfiguration & GetGuardrailConfiguration() const
AWS_BEDROCK_API GenerationConfiguration(Aws::Utils::Json::JsonView jsonValue)
bool PromptTemplateHasBeenSet() const
GenerationConfiguration & WithAdditionalModelRequestFields(AdditionalModelRequestFieldsT &&value)
const PromptTemplate & GetPromptTemplate() const
const Aws::Map< Aws::String, Aws::Utils::Document > & GetAdditionalModelRequestFields() const
bool KbInferenceConfigHasBeenSet() const
void SetAdditionalModelRequestFields(AdditionalModelRequestFieldsT &&value)
void SetPromptTemplate(PromptTemplateT &&value)
GenerationConfiguration & WithKbInferenceConfig(KbInferenceConfigT &&value)
GenerationConfiguration & AddAdditionalModelRequestFields(AdditionalModelRequestFieldsKeyT &&key, AdditionalModelRequestFieldsValueT &&value)
GenerationConfiguration & WithGuardrailConfiguration(GuardrailConfigurationT &&value)
bool GuardrailConfigurationHasBeenSet() const
AWS_BEDROCK_API GenerationConfiguration()=default
bool AdditionalModelRequestFieldsHasBeenSet() const
GenerationConfiguration & WithPromptTemplate(PromptTemplateT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue