AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
AgenticRetrieveMessage.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/AgenticRetrieveMessageContent.h>
9#include <aws/bedrock-agent-runtime/model/ConversationRole.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgentRuntime {
21namespace Model {
22
30 public:
31 AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveMessage() = default;
34 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const AgenticRetrieveMessageContent& GetContent() const { return m_content; }
41 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
42 template <typename ContentT = AgenticRetrieveMessageContent>
43 void SetContent(ContentT&& value) {
44 m_contentHasBeenSet = true;
45 m_content = std::forward<ContentT>(value);
46 }
47 template <typename ContentT = AgenticRetrieveMessageContent>
49 SetContent(std::forward<ContentT>(value));
50 return *this;
51 }
53
55
58 inline ConversationRole GetRole() const { return m_role; }
59 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
60 inline void SetRole(ConversationRole value) {
61 m_roleHasBeenSet = true;
62 m_role = value;
63 }
65 SetRole(value);
66 return *this;
67 }
69 private:
71
73 bool m_contentHasBeenSet = false;
74 bool m_roleHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace BedrockAgentRuntime
79} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveMessage()=default
AgenticRetrieveMessage & WithContent(ContentT &&value)
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveMessage(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
AgenticRetrieveMessage & WithRole(ConversationRole value)
const AgenticRetrieveMessageContent & GetContent() const
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue