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>
79 template<
typename KbInferenceConfigT = KbInferenceConfig>
80 void SetKbInferenceConfig(KbInferenceConfigT&& value) { m_kbInferenceConfigHasBeenSet =
true; m_kbInferenceConfig = std::forward<KbInferenceConfigT>(value); }
81 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;
AWS_BEDROCK_API ExternalSourcesGenerationConfiguration()=default
const GuardrailConfiguration & GetGuardrailConfiguration() const
bool PromptTemplateHasBeenSet() const
AWS_BEDROCK_API ExternalSourcesGenerationConfiguration(Aws::Utils::Json::JsonView jsonValue)
const KbInferenceConfig & GetKbInferenceConfig() const
ExternalSourcesGenerationConfiguration & WithGuardrailConfiguration(GuardrailConfigurationT &&value)
ExternalSourcesGenerationConfiguration & WithAdditionalModelRequestFields(AdditionalModelRequestFieldsT &&value)
bool GuardrailConfigurationHasBeenSet() const
const PromptTemplate & GetPromptTemplate() const
const Aws::Map< Aws::String, Aws::Utils::Document > & GetAdditionalModelRequestFields() const
void SetPromptTemplate(PromptTemplateT &&value)
void SetKbInferenceConfig(KbInferenceConfigT &&value)
ExternalSourcesGenerationConfiguration & WithKbInferenceConfig(KbInferenceConfigT &&value)
ExternalSourcesGenerationConfiguration & WithPromptTemplate(PromptTemplateT &&value)
ExternalSourcesGenerationConfiguration & AddAdditionalModelRequestFields(AdditionalModelRequestFieldsKeyT &&key, AdditionalModelRequestFieldsValueT &&value)
bool AdditionalModelRequestFieldsHasBeenSet() const
void SetAdditionalModelRequestFields(AdditionalModelRequestFieldsT &&value)
AWS_BEDROCK_API ExternalSourcesGenerationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
bool KbInferenceConfigHasBeenSet() const
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
void SetGuardrailConfiguration(GuardrailConfigurationT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue