AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TextPromptTemplateConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/bedrock-agent/model/PromptInputVariable.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgent
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_BEDROCKAGENT_API TextPromptTemplateConfiguration();
41 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<PromptInputVariable>& GetInputVariables() const{ return m_inputVariables; }
49 inline bool InputVariablesHasBeenSet() const { return m_inputVariablesHasBeenSet; }
50 inline void SetInputVariables(const Aws::Vector<PromptInputVariable>& value) { m_inputVariablesHasBeenSet = true; m_inputVariables = value; }
51 inline void SetInputVariables(Aws::Vector<PromptInputVariable>&& value) { m_inputVariablesHasBeenSet = true; m_inputVariables = std::move(value); }
54 inline TextPromptTemplateConfiguration& AddInputVariables(const PromptInputVariable& value) { m_inputVariablesHasBeenSet = true; m_inputVariables.push_back(value); return *this; }
55 inline TextPromptTemplateConfiguration& AddInputVariables(PromptInputVariable&& value) { m_inputVariablesHasBeenSet = true; m_inputVariables.push_back(std::move(value)); return *this; }
57
59
62 inline const Aws::String& GetText() const{ return m_text; }
63 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
64 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
65 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
66 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
67 inline TextPromptTemplateConfiguration& WithText(const Aws::String& value) { SetText(value); return *this;}
68 inline TextPromptTemplateConfiguration& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
69 inline TextPromptTemplateConfiguration& WithText(const char* value) { SetText(value); return *this;}
71 private:
72
73 Aws::Vector<PromptInputVariable> m_inputVariables;
74 bool m_inputVariablesHasBeenSet = false;
75
76 Aws::String m_text;
77 bool m_textHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace BedrockAgent
82} // namespace Aws
TextPromptTemplateConfiguration & WithInputVariables(const Aws::Vector< PromptInputVariable > &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 & 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