AWS SDK for C++

AWS SDK for C++ Version 1.11.509

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();
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 inline void SetCachePoint(const CachePointBlock& value) { m_cachePointHasBeenSet = true; m_cachePoint = value; }
52 inline void SetCachePoint(CachePointBlock&& value) { m_cachePointHasBeenSet = true; m_cachePoint = std::move(value); }
53 inline TextPromptTemplateConfiguration& WithCachePoint(const CachePointBlock& value) { SetCachePoint(value); return *this;}
54 inline TextPromptTemplateConfiguration& WithCachePoint(CachePointBlock&& value) { SetCachePoint(std::move(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 inline void SetInputVariables(const Aws::Vector<PromptInputVariable>& value) { m_inputVariablesHasBeenSet = true; m_inputVariables = value; }
64 inline void SetInputVariables(Aws::Vector<PromptInputVariable>&& value) { m_inputVariablesHasBeenSet = true; m_inputVariables = std::move(value); }
67 inline TextPromptTemplateConfiguration& AddInputVariables(const PromptInputVariable& value) { m_inputVariablesHasBeenSet = true; m_inputVariables.push_back(value); return *this; }
68 inline TextPromptTemplateConfiguration& AddInputVariables(PromptInputVariable&& value) { m_inputVariablesHasBeenSet = true; m_inputVariables.push_back(std::move(value)); return *this; }
70
72
75 inline const Aws::String& GetText() const{ return m_text; }
76 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
77 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
78 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
79 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
80 inline TextPromptTemplateConfiguration& WithText(const Aws::String& value) { SetText(value); return *this;}
81 inline TextPromptTemplateConfiguration& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
82 inline TextPromptTemplateConfiguration& WithText(const char* value) { SetText(value); return *this;}
84 private:
85
86 CachePointBlock m_cachePoint;
87 bool m_cachePointHasBeenSet = false;
88
89 Aws::Vector<PromptInputVariable> m_inputVariables;
90 bool m_inputVariablesHasBeenSet = false;
91
92 Aws::String m_text;
93 bool m_textHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace BedrockAgent
98} // namespace Aws
TextPromptTemplateConfiguration & WithInputVariables(const Aws::Vector< PromptInputVariable > &value)
TextPromptTemplateConfiguration & WithCachePoint(const CachePointBlock &value)
TextPromptTemplateConfiguration & WithText(const Aws::String &value)
AWS_BEDROCKAGENT_API TextPromptTemplateConfiguration(Aws::Utils::Json::JsonView jsonValue)
TextPromptTemplateConfiguration & AddInputVariables(const PromptInputVariable &value)
TextPromptTemplateConfiguration & WithText(Aws::String &&value)
TextPromptTemplateConfiguration & AddInputVariables(PromptInputVariable &&value)
TextPromptTemplateConfiguration & WithCachePoint(CachePointBlock &&value)
TextPromptTemplateConfiguration & WithText(const char *value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetInputVariables(Aws::Vector< PromptInputVariable > &&value)
const Aws::Vector< PromptInputVariable > & GetInputVariables() const
AWS_BEDROCKAGENT_API TextPromptTemplateConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
TextPromptTemplateConfiguration & WithInputVariables(Aws::Vector< PromptInputVariable > &&value)
void SetInputVariables(const Aws::Vector< PromptInputVariable > &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