7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/ContentBlock.h>
9#include <aws/bedrock-agent-runtime/model/ConversationRole.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
21namespace BedrockAgentRuntime {
31 AWS_BEDROCKAGENTRUNTIME_API
Message() =
default;
42 template <
typename ContentT = Aws::Vector<ContentBlock>>
44 m_contentHasBeenSet =
true;
45 m_content = std::forward<ContentT>(value);
47 template <
typename ContentT = Aws::Vector<ContentBlock>>
52 template <
typename ContentT = ContentBlock>
54 m_contentHasBeenSet =
true;
55 m_content.emplace_back(std::forward<ContentT>(value));
67 m_roleHasBeenSet =
true;
79 bool m_contentHasBeenSet =
false;
80 bool m_roleHasBeenSet =
false;
Message & WithRole(ConversationRole value)
const Aws::Vector< ContentBlock > & GetContent() const
Message & WithContent(ContentT &&value)
bool RoleHasBeenSet() const
AWS_BEDROCKAGENTRUNTIME_API Message(Aws::Utils::Json::JsonView jsonValue)
void SetRole(ConversationRole value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
bool ContentHasBeenSet() const
AWS_BEDROCKAGENTRUNTIME_API Message()=default
ConversationRole GetRole() const
AWS_BEDROCKAGENTRUNTIME_API Message & operator=(Aws::Utils::Json::JsonView jsonValue)
Message & AddContent(ContentT &&value)
void SetContent(ContentT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue