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>
85 template <
typename KbInferenceConfigT = KbInferenceConfig>
87 m_kbInferenceConfigHasBeenSet =
true;
88 m_kbInferenceConfig = std::forward<KbInferenceConfigT>(value);
90 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;
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::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