AWS SDK for C++

AWS SDK for C++ Version 1.11.750

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/bedrock-agent/model/PromptInputVariable.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgent {
23namespace Model {
24
33 public:
34 AWS_BEDROCKAGENT_API TextPromptTemplateConfiguration() = default;
37 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetText() const { return m_text; }
44 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
45 template <typename TextT = Aws::String>
46 void SetText(TextT&& value) {
47 m_textHasBeenSet = true;
48 m_text = std::forward<TextT>(value);
49 }
50 template <typename TextT = Aws::String>
52 SetText(std::forward<TextT>(value));
53 return *this;
54 }
56
58
61 inline const CachePointBlock& GetCachePoint() const { return m_cachePoint; }
62 inline bool CachePointHasBeenSet() const { return m_cachePointHasBeenSet; }
63 template <typename CachePointT = CachePointBlock>
64 void SetCachePoint(CachePointT&& value) {
65 m_cachePointHasBeenSet = true;
66 m_cachePoint = std::forward<CachePointT>(value);
67 }
68 template <typename CachePointT = CachePointBlock>
70 SetCachePoint(std::forward<CachePointT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<PromptInputVariable>& GetInputVariables() const { return m_inputVariables; }
80 inline bool InputVariablesHasBeenSet() const { return m_inputVariablesHasBeenSet; }
81 template <typename InputVariablesT = Aws::Vector<PromptInputVariable>>
83 m_inputVariablesHasBeenSet = true;
84 m_inputVariables = std::forward<InputVariablesT>(value);
85 }
86 template <typename InputVariablesT = Aws::Vector<PromptInputVariable>>
88 SetInputVariables(std::forward<InputVariablesT>(value));
89 return *this;
90 }
91 template <typename InputVariablesT = PromptInputVariable>
93 m_inputVariablesHasBeenSet = true;
94 m_inputVariables.emplace_back(std::forward<InputVariablesT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_text;
100
101 CachePointBlock m_cachePoint;
102
103 Aws::Vector<PromptInputVariable> m_inputVariables;
104 bool m_textHasBeenSet = false;
105 bool m_cachePointHasBeenSet = false;
106 bool m_inputVariablesHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace BedrockAgent
111} // 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::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue