AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ExternalSourcesGenerationConfiguration.h
1
6#pragma once
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>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Bedrock {
25namespace Model {
26
34 public:
35 AWS_BEDROCK_API ExternalSourcesGenerationConfiguration() = default;
38 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const PromptTemplate& GetPromptTemplate() const { return m_promptTemplate; }
46 inline bool PromptTemplateHasBeenSet() const { return m_promptTemplateHasBeenSet; }
47 template <typename PromptTemplateT = PromptTemplate>
49 m_promptTemplateHasBeenSet = true;
50 m_promptTemplate = std::forward<PromptTemplateT>(value);
51 }
52 template <typename PromptTemplateT = PromptTemplate>
54 SetPromptTemplate(std::forward<PromptTemplateT>(value));
55 return *this;
56 }
58
60
63 inline const GuardrailConfiguration& GetGuardrailConfiguration() const { return m_guardrailConfiguration; }
64 inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; }
65 template <typename GuardrailConfigurationT = GuardrailConfiguration>
67 m_guardrailConfigurationHasBeenSet = true;
68 m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value);
69 }
70 template <typename GuardrailConfigurationT = GuardrailConfiguration>
72 SetGuardrailConfiguration(std::forward<GuardrailConfigurationT>(value));
73 return *this;
74 }
76
78
83 inline const KbInferenceConfig& GetKbInferenceConfig() const { return m_kbInferenceConfig; }
84 inline bool KbInferenceConfigHasBeenSet() const { return m_kbInferenceConfigHasBeenSet; }
85 template <typename KbInferenceConfigT = KbInferenceConfig>
87 m_kbInferenceConfigHasBeenSet = true;
88 m_kbInferenceConfig = std::forward<KbInferenceConfigT>(value);
89 }
90 template <typename KbInferenceConfigT = KbInferenceConfig>
92 SetKbInferenceConfig(std::forward<KbInferenceConfigT>(value));
93 return *this;
94 }
96
98
104 return m_additionalModelRequestFields;
105 }
106 inline bool AdditionalModelRequestFieldsHasBeenSet() const { return m_additionalModelRequestFieldsHasBeenSet; }
107 template <typename AdditionalModelRequestFieldsT = Aws::Map<Aws::String, Aws::Utils::Document>>
109 m_additionalModelRequestFieldsHasBeenSet = true;
110 m_additionalModelRequestFields = std::forward<AdditionalModelRequestFieldsT>(value);
111 }
112 template <typename AdditionalModelRequestFieldsT = Aws::Map<Aws::String, Aws::Utils::Document>>
114 SetAdditionalModelRequestFields(std::forward<AdditionalModelRequestFieldsT>(value));
115 return *this;
116 }
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));
123 return *this;
124 }
126 private:
127 PromptTemplate m_promptTemplate;
128
129 GuardrailConfiguration m_guardrailConfiguration;
130
131 KbInferenceConfig m_kbInferenceConfig;
132
133 Aws::Map<Aws::String, Aws::Utils::Document> m_additionalModelRequestFields;
134 bool m_promptTemplateHasBeenSet = false;
135 bool m_guardrailConfigurationHasBeenSet = false;
136 bool m_kbInferenceConfigHasBeenSet = false;
137 bool m_additionalModelRequestFieldsHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace Bedrock
142} // namespace Aws
AWS_BEDROCK_API ExternalSourcesGenerationConfiguration(Aws::Utils::Json::JsonView jsonValue)
ExternalSourcesGenerationConfiguration & WithGuardrailConfiguration(GuardrailConfigurationT &&value)
ExternalSourcesGenerationConfiguration & WithAdditionalModelRequestFields(AdditionalModelRequestFieldsT &&value)
const Aws::Map< Aws::String, Aws::Utils::Document > & GetAdditionalModelRequestFields() const
ExternalSourcesGenerationConfiguration & WithKbInferenceConfig(KbInferenceConfigT &&value)
ExternalSourcesGenerationConfiguration & WithPromptTemplate(PromptTemplateT &&value)
ExternalSourcesGenerationConfiguration & AddAdditionalModelRequestFields(AdditionalModelRequestFieldsKeyT &&key, AdditionalModelRequestFieldsValueT &&value)
AWS_BEDROCK_API ExternalSourcesGenerationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
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