AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TextPromptTemplateConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/CachePointBlock.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/bedrock-agent/model/PromptInputVariable.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockAgent
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_BEDROCKAGENT_API TextPromptTemplateConfiguration() = default;
42 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const CachePointBlock& GetCachePoint() const { return m_cachePoint; }
50 inline bool CachePointHasBeenSet() const { return m_cachePointHasBeenSet; }
51 template<typename CachePointT = CachePointBlock>
52 void SetCachePoint(CachePointT&& value) { m_cachePointHasBeenSet = true; m_cachePoint = std::forward<CachePointT>(value); }
53 template<typename CachePointT = CachePointBlock>
54 TextPromptTemplateConfiguration& WithCachePoint(CachePointT&& value) { SetCachePoint(std::forward<CachePointT>(value)); return *this;}
56
58
61 inline const Aws::Vector<PromptInputVariable>& GetInputVariables() const { return m_inputVariables; }
62 inline bool InputVariablesHasBeenSet() const { return m_inputVariablesHasBeenSet; }
63 template<typename InputVariablesT = Aws::Vector<PromptInputVariable>>
64 void SetInputVariables(InputVariablesT&& value) { m_inputVariablesHasBeenSet = true; m_inputVariables = std::forward<InputVariablesT>(value); }
65 template<typename InputVariablesT = Aws::Vector<PromptInputVariable>>
66 TextPromptTemplateConfiguration& WithInputVariables(InputVariablesT&& value) { SetInputVariables(std::forward<InputVariablesT>(value)); return *this;}
67 template<typename InputVariablesT = PromptInputVariable>
68 TextPromptTemplateConfiguration& AddInputVariables(InputVariablesT&& value) { m_inputVariablesHasBeenSet = true; m_inputVariables.emplace_back(std::forward<InputVariablesT>(value)); return *this; }
70
72
75 inline const Aws::String& GetText() const { return m_text; }
76 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
77 template<typename TextT = Aws::String>
78 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
79 template<typename TextT = Aws::String>
80 TextPromptTemplateConfiguration& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
82 private:
83
84 CachePointBlock m_cachePoint;
85 bool m_cachePointHasBeenSet = false;
86
87 Aws::Vector<PromptInputVariable> m_inputVariables;
88 bool m_inputVariablesHasBeenSet = false;
89
90 Aws::String m_text;
91 bool m_textHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace BedrockAgent
96} // namespace Aws
TextPromptTemplateConfiguration & AddInputVariables(InputVariablesT &&value)
TextPromptTemplateConfiguration & WithInputVariables(InputVariablesT &&value)
AWS_BEDROCKAGENT_API TextPromptTemplateConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API TextPromptTemplateConfiguration()=default
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< PromptInputVariable > & GetInputVariables() const
AWS_BEDROCKAGENT_API TextPromptTemplateConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
TextPromptTemplateConfiguration & WithCachePoint(CachePointT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue