AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ChatT = ChatPromptTemplateConfiguration>
51 void SetChat(ChatT&& value) { m_chatHasBeenSet = true; m_chat = std::forward<ChatT>(value); }
52 template<typename ChatT = ChatPromptTemplateConfiguration>
53 PromptTemplateConfiguration& WithChat(ChatT&& value) { SetChat(std::forward<ChatT>(value)); return *this;}
55
57
60 inline const TextPromptTemplateConfiguration& GetText() const { return m_text; }
61 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
62 template<typename TextT = TextPromptTemplateConfiguration>
63 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
64 template<typename TextT = TextPromptTemplateConfiguration>
65 PromptTemplateConfiguration& WithText(TextT&& value) { SetText(std::forward<TextT>(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
AWS_BEDROCKAGENT_API PromptTemplateConfiguration()=default
const ChatPromptTemplateConfiguration & GetChat() const
const TextPromptTemplateConfiguration & GetText() const
PromptTemplateConfiguration & WithChat(ChatT &&value)
PromptTemplateConfiguration & WithText(TextT &&value)
AWS_BEDROCKAGENT_API PromptTemplateConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENT_API PromptTemplateConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue