AWS SDK for C++

AWS SDK for C++ Version 1.11.749

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgent {
21namespace Model {
22
32 public:
33 AWS_BEDROCKAGENT_API PromptTemplateConfiguration() = default;
36 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const TextPromptTemplateConfiguration& GetText() const { return m_text; }
43 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
44 template <typename TextT = TextPromptTemplateConfiguration>
45 void SetText(TextT&& value) {
46 m_textHasBeenSet = true;
47 m_text = std::forward<TextT>(value);
48 }
49 template <typename TextT = TextPromptTemplateConfiguration>
51 SetText(std::forward<TextT>(value));
52 return *this;
53 }
55
57
60 inline const ChatPromptTemplateConfiguration& GetChat() const { return m_chat; }
61 inline bool ChatHasBeenSet() const { return m_chatHasBeenSet; }
62 template <typename ChatT = ChatPromptTemplateConfiguration>
63 void SetChat(ChatT&& value) {
64 m_chatHasBeenSet = true;
65 m_chat = std::forward<ChatT>(value);
66 }
67 template <typename ChatT = ChatPromptTemplateConfiguration>
69 SetChat(std::forward<ChatT>(value));
70 return *this;
71 }
73 private:
75
77 bool m_textHasBeenSet = false;
78 bool m_chatHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace BedrockAgent
83} // 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)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue