7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/PromptTemplate.h>
9#include <aws/bedrock/model/GuardrailConfiguration.h>
10#include <aws/bedrock/model/KbInferenceConfig.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/Document.h>
53 template<
typename PromptTemplateT = PromptTemplate>
54 void SetPromptTemplate(PromptTemplateT&& value) { m_promptTemplateHasBeenSet =
true; m_promptTemplate = std::forward<PromptTemplateT>(value); }
55 template<
typename PromptTemplateT = PromptTemplate>
65 template<
typename GuardrailConfigurationT = GuardrailConfiguration>
66 void SetGuardrailConfiguration(GuardrailConfigurationT&& value) { m_guardrailConfigurationHasBeenSet =
true; m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value); }
67 template<
typename GuardrailConfigurationT = GuardrailConfiguration>
78 template<
typename KbInferenceConfigT = KbInferenceConfig>
79 void SetKbInferenceConfig(KbInferenceConfigT&& value) { m_kbInferenceConfigHasBeenSet =
true; m_kbInferenceConfig = std::forward<KbInferenceConfigT>(value); }
80 template<
typename KbInferenceConfigT = KbInferenceConfig>
93 template<
typename AdditionalModelRequestFieldsT = Aws::Map<Aws::String, Aws::Utils::Document>>
94 void SetAdditionalModelRequestFields(AdditionalModelRequestFieldsT&& value) { m_additionalModelRequestFieldsHasBeenSet =
true; m_additionalModelRequestFields = std::forward<AdditionalModelRequestFieldsT>(value); }
95 template<
typename AdditionalModelRequestFieldsT = Aws::Map<Aws::String, Aws::Utils::Document>>
97 template<
typename AdditionalModelRequestFieldsKeyT = Aws::String,
typename AdditionalModelRequestFieldsValueT = Aws::Utils::Document>
99 m_additionalModelRequestFieldsHasBeenSet =
true; m_additionalModelRequestFields.emplace(std::forward<AdditionalModelRequestFieldsKeyT>(key), std::forward<AdditionalModelRequestFieldsValueT>(value));
return *
this;
105 bool m_promptTemplateHasBeenSet =
false;
108 bool m_guardrailConfigurationHasBeenSet =
false;
111 bool m_kbInferenceConfigHasBeenSet =
false;
114 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::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue