7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/bedrock-agent-runtime/model/GuardrailConfiguration.h>
10#include <aws/bedrock-agent-runtime/model/InferenceConfig.h>
11#include <aws/bedrock-agent-runtime/model/PerformanceConfiguration.h>
12#include <aws/bedrock-agent-runtime/model/PromptTemplate.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/Document.h>
27namespace BedrockAgentRuntime
58 template<
typename AdditionalModelRequestFieldsT = Aws::Map<Aws::String, Aws::Utils::Document>>
59 void SetAdditionalModelRequestFields(AdditionalModelRequestFieldsT&& value) { m_additionalModelRequestFieldsHasBeenSet =
true; m_additionalModelRequestFields = std::forward<AdditionalModelRequestFieldsT>(value); }
60 template<
typename AdditionalModelRequestFieldsT = Aws::Map<Aws::String, Aws::Utils::Document>>
62 template<
typename AdditionalModelRequestFieldsKeyT = Aws::String,
typename AdditionalModelRequestFieldsValueT = Aws::Utils::Document>
64 m_additionalModelRequestFieldsHasBeenSet =
true; m_additionalModelRequestFields.emplace(std::forward<AdditionalModelRequestFieldsKeyT>(key), std::forward<AdditionalModelRequestFieldsValueT>(value));
return *
this;
74 template<
typename GuardrailConfigurationT = GuardrailConfiguration>
75 void SetGuardrailConfiguration(GuardrailConfigurationT&& value) { m_guardrailConfigurationHasBeenSet =
true; m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value); }
76 template<
typename GuardrailConfigurationT = GuardrailConfiguration>
87 template<
typename InferenceConfigT = InferenceConfig>
88 void SetInferenceConfig(InferenceConfigT&& value) { m_inferenceConfigHasBeenSet =
true; m_inferenceConfig = std::forward<InferenceConfigT>(value); }
89 template<
typename InferenceConfigT = InferenceConfig>
99 template<
typename PerformanceConfigT = PerformanceConfiguration>
100 void SetPerformanceConfig(PerformanceConfigT&& value) { m_performanceConfigHasBeenSet =
true; m_performanceConfig = std::forward<PerformanceConfigT>(value); }
101 template<
typename PerformanceConfigT = PerformanceConfiguration>
115 template<
typename PromptTemplateT = PromptTemplate>
116 void SetPromptTemplate(PromptTemplateT&& value) { m_promptTemplateHasBeenSet =
true; m_promptTemplate = std::forward<PromptTemplateT>(value); }
117 template<
typename PromptTemplateT = PromptTemplate>
123 bool m_additionalModelRequestFieldsHasBeenSet =
false;
126 bool m_guardrailConfigurationHasBeenSet =
false;
129 bool m_inferenceConfigHasBeenSet =
false;
132 bool m_performanceConfigHasBeenSet =
false;
135 bool m_promptTemplateHasBeenSet =
false;
GenerationConfiguration & WithInferenceConfig(InferenceConfigT &&value)
GenerationConfiguration & AddAdditionalModelRequestFields(AdditionalModelRequestFieldsKeyT &&key, AdditionalModelRequestFieldsValueT &&value)
const PerformanceConfiguration & GetPerformanceConfig() const
const InferenceConfig & GetInferenceConfig() const
bool GuardrailConfigurationHasBeenSet() const
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const PromptTemplate & GetPromptTemplate() const
AWS_BEDROCKAGENTRUNTIME_API GenerationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPerformanceConfig(PerformanceConfigT &&value)
AWS_BEDROCKAGENTRUNTIME_API GenerationConfiguration()=default
GenerationConfiguration & WithPerformanceConfig(PerformanceConfigT &&value)
GenerationConfiguration & WithPromptTemplate(PromptTemplateT &&value)
GenerationConfiguration & WithAdditionalModelRequestFields(AdditionalModelRequestFieldsT &&value)
const Aws::Map< Aws::String, Aws::Utils::Document > & GetAdditionalModelRequestFields() const
void SetAdditionalModelRequestFields(AdditionalModelRequestFieldsT &&value)
void SetInferenceConfig(InferenceConfigT &&value)
AWS_BEDROCKAGENTRUNTIME_API GenerationConfiguration(Aws::Utils::Json::JsonView jsonValue)
bool AdditionalModelRequestFieldsHasBeenSet() const
const GuardrailConfiguration & GetGuardrailConfiguration() const
bool PerformanceConfigHasBeenSet() const
void SetGuardrailConfiguration(GuardrailConfigurationT &&value)
GenerationConfiguration & WithGuardrailConfiguration(GuardrailConfigurationT &&value)
bool PromptTemplateHasBeenSet() const
bool InferenceConfigHasBeenSet() const
void SetPromptTemplate(PromptTemplateT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue