AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GenerationConfiguration.h
1
6#pragma once
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/PromptTemplate.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/Document.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace BedrockAgentRuntime
27{
28namespace Model
29{
30
41 {
42 public:
43 AWS_BEDROCKAGENTRUNTIME_API GenerationConfiguration();
44 AWS_BEDROCKAGENTRUNTIME_API GenerationConfiguration(Aws::Utils::Json::JsonView jsonValue);
45 AWS_BEDROCKAGENTRUNTIME_API GenerationConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
55 inline const Aws::Map<Aws::String, Aws::Utils::Document>& GetAdditionalModelRequestFields() const{ return m_additionalModelRequestFields; }
56 inline bool AdditionalModelRequestFieldsHasBeenSet() const { return m_additionalModelRequestFieldsHasBeenSet; }
57 inline void SetAdditionalModelRequestFields(const Aws::Map<Aws::String, Aws::Utils::Document>& value) { m_additionalModelRequestFieldsHasBeenSet = true; m_additionalModelRequestFields = value; }
58 inline void SetAdditionalModelRequestFields(Aws::Map<Aws::String, Aws::Utils::Document>&& value) { m_additionalModelRequestFieldsHasBeenSet = true; m_additionalModelRequestFields = std::move(value); }
61 inline GenerationConfiguration& AddAdditionalModelRequestFields(const Aws::String& key, const Aws::Utils::Document& value) { m_additionalModelRequestFieldsHasBeenSet = true; m_additionalModelRequestFields.emplace(key, value); return *this; }
62 inline GenerationConfiguration& AddAdditionalModelRequestFields(Aws::String&& key, const Aws::Utils::Document& value) { m_additionalModelRequestFieldsHasBeenSet = true; m_additionalModelRequestFields.emplace(std::move(key), value); return *this; }
63 inline GenerationConfiguration& AddAdditionalModelRequestFields(const Aws::String& key, Aws::Utils::Document&& value) { m_additionalModelRequestFieldsHasBeenSet = true; m_additionalModelRequestFields.emplace(key, std::move(value)); return *this; }
64 inline GenerationConfiguration& AddAdditionalModelRequestFields(Aws::String&& key, Aws::Utils::Document&& value) { m_additionalModelRequestFieldsHasBeenSet = true; m_additionalModelRequestFields.emplace(std::move(key), std::move(value)); return *this; }
65 inline GenerationConfiguration& AddAdditionalModelRequestFields(const char* key, Aws::Utils::Document&& value) { m_additionalModelRequestFieldsHasBeenSet = true; m_additionalModelRequestFields.emplace(key, std::move(value)); return *this; }
66 inline GenerationConfiguration& AddAdditionalModelRequestFields(const char* key, const Aws::Utils::Document& value) { m_additionalModelRequestFieldsHasBeenSet = true; m_additionalModelRequestFields.emplace(key, value); return *this; }
68
70
73 inline const GuardrailConfiguration& GetGuardrailConfiguration() const{ return m_guardrailConfiguration; }
74 inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; }
75 inline void SetGuardrailConfiguration(const GuardrailConfiguration& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = value; }
76 inline void SetGuardrailConfiguration(GuardrailConfiguration&& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = std::move(value); }
80
82
86 inline const InferenceConfig& GetInferenceConfig() const{ return m_inferenceConfig; }
87 inline bool InferenceConfigHasBeenSet() const { return m_inferenceConfigHasBeenSet; }
88 inline void SetInferenceConfig(const InferenceConfig& value) { m_inferenceConfigHasBeenSet = true; m_inferenceConfig = value; }
89 inline void SetInferenceConfig(InferenceConfig&& value) { m_inferenceConfigHasBeenSet = true; m_inferenceConfig = std::move(value); }
91 inline GenerationConfiguration& WithInferenceConfig(InferenceConfig&& value) { SetInferenceConfig(std::move(value)); return *this;}
93
95
99 inline const PromptTemplate& GetPromptTemplate() const{ return m_promptTemplate; }
100 inline bool PromptTemplateHasBeenSet() const { return m_promptTemplateHasBeenSet; }
101 inline void SetPromptTemplate(const PromptTemplate& value) { m_promptTemplateHasBeenSet = true; m_promptTemplate = value; }
102 inline void SetPromptTemplate(PromptTemplate&& value) { m_promptTemplateHasBeenSet = true; m_promptTemplate = std::move(value); }
103 inline GenerationConfiguration& WithPromptTemplate(const PromptTemplate& value) { SetPromptTemplate(value); return *this;}
104 inline GenerationConfiguration& WithPromptTemplate(PromptTemplate&& value) { SetPromptTemplate(std::move(value)); return *this;}
106 private:
107
108 Aws::Map<Aws::String, Aws::Utils::Document> m_additionalModelRequestFields;
109 bool m_additionalModelRequestFieldsHasBeenSet = false;
110
111 GuardrailConfiguration m_guardrailConfiguration;
112 bool m_guardrailConfigurationHasBeenSet = false;
113
114 InferenceConfig m_inferenceConfig;
115 bool m_inferenceConfigHasBeenSet = false;
116
117 PromptTemplate m_promptTemplate;
118 bool m_promptTemplateHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace BedrockAgentRuntime
123} // namespace Aws
void SetGuardrailConfiguration(const GuardrailConfiguration &value)
void SetAdditionalModelRequestFields(Aws::Map< Aws::String, Aws::Utils::Document > &&value)
GenerationConfiguration & WithInferenceConfig(const InferenceConfig &value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
GenerationConfiguration & WithGuardrailConfiguration(GuardrailConfiguration &&value)
GenerationConfiguration & WithGuardrailConfiguration(const GuardrailConfiguration &value)
GenerationConfiguration & AddAdditionalModelRequestFields(const Aws::String &key, Aws::Utils::Document &&value)
AWS_BEDROCKAGENTRUNTIME_API GenerationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
GenerationConfiguration & WithAdditionalModelRequestFields(const Aws::Map< Aws::String, Aws::Utils::Document > &value)
GenerationConfiguration & AddAdditionalModelRequestFields(Aws::String &&key, const Aws::Utils::Document &value)
const Aws::Map< Aws::String, Aws::Utils::Document > & GetAdditionalModelRequestFields() const
GenerationConfiguration & AddAdditionalModelRequestFields(Aws::String &&key, Aws::Utils::Document &&value)
AWS_BEDROCKAGENTRUNTIME_API GenerationConfiguration(Aws::Utils::Json::JsonView jsonValue)
GenerationConfiguration & WithAdditionalModelRequestFields(Aws::Map< Aws::String, Aws::Utils::Document > &&value)
GenerationConfiguration & AddAdditionalModelRequestFields(const char *key, Aws::Utils::Document &&value)
GenerationConfiguration & WithPromptTemplate(PromptTemplate &&value)
const GuardrailConfiguration & GetGuardrailConfiguration() const
GenerationConfiguration & AddAdditionalModelRequestFields(const Aws::String &key, const Aws::Utils::Document &value)
GenerationConfiguration & AddAdditionalModelRequestFields(const char *key, const Aws::Utils::Document &value)
GenerationConfiguration & WithPromptTemplate(const PromptTemplate &value)
GenerationConfiguration & WithInferenceConfig(InferenceConfig &&value)
void SetAdditionalModelRequestFields(const Aws::Map< Aws::String, Aws::Utils::Document > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue