AWS SDK for C++

AWS SDK for C++ Version 1.11.509

Loading...
Searching...
No Matches
PromptTemplateConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/ChatPromptTemplateConfiguration.h>
9#include <aws/bedrock-agent/model/TextPromptTemplateConfiguration.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgent
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_BEDROCKAGENT_API PromptTemplateConfiguration();
41 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const ChatPromptTemplateConfiguration& GetChat() const{ return m_chat; }
49 inline bool ChatHasBeenSet() const { return m_chatHasBeenSet; }
50 inline void SetChat(const ChatPromptTemplateConfiguration& value) { m_chatHasBeenSet = true; m_chat = value; }
51 inline void SetChat(ChatPromptTemplateConfiguration&& value) { m_chatHasBeenSet = true; m_chat = std::move(value); }
52 inline PromptTemplateConfiguration& WithChat(const ChatPromptTemplateConfiguration& value) { SetChat(value); return *this;}
53 inline PromptTemplateConfiguration& WithChat(ChatPromptTemplateConfiguration&& value) { SetChat(std::move(value)); return *this;}
55
57
60 inline const TextPromptTemplateConfiguration& GetText() const{ return m_text; }
61 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
62 inline void SetText(const TextPromptTemplateConfiguration& value) { m_textHasBeenSet = true; m_text = value; }
63 inline void SetText(TextPromptTemplateConfiguration&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
64 inline PromptTemplateConfiguration& WithText(const TextPromptTemplateConfiguration& value) { SetText(value); return *this;}
65 inline PromptTemplateConfiguration& WithText(TextPromptTemplateConfiguration&& value) { SetText(std::move(value)); return *this;}
67 private:
68
70 bool m_chatHasBeenSet = false;
71
73 bool m_textHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace BedrockAgent
78} // namespace Aws
void SetChat(ChatPromptTemplateConfiguration &&value)
const ChatPromptTemplateConfiguration & GetChat() const
const TextPromptTemplateConfiguration & GetText() const
PromptTemplateConfiguration & WithChat(ChatPromptTemplateConfiguration &&value)
PromptTemplateConfiguration & WithChat(const ChatPromptTemplateConfiguration &value)
PromptTemplateConfiguration & WithText(const TextPromptTemplateConfiguration &value)
void SetText(const TextPromptTemplateConfiguration &value)
AWS_BEDROCKAGENT_API PromptTemplateConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetChat(const ChatPromptTemplateConfiguration &value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENT_API PromptTemplateConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetText(TextPromptTemplateConfiguration &&value)
PromptTemplateConfiguration & WithText(TextPromptTemplateConfiguration &&value)
Aws::Utils::Json::JsonValue JsonValue