7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock-agent-runtime/model/ConversationRole.h>
10#include <aws/bedrock-agent-runtime/model/ContentBlock.h>
23namespace BedrockAgentRuntime
36 AWS_BEDROCKAGENTRUNTIME_API
Message() =
default;
48 template<
typename ContentT = Aws::Vector<ContentBlock>>
49 void SetContent(ContentT&& value) { m_contentHasBeenSet =
true; m_content = std::forward<ContentT>(value); }
50 template<
typename ContentT = Aws::Vector<ContentBlock>>
52 template<
typename ContentT = ContentBlock>
53 Message&
AddContent(ContentT&& value) { m_contentHasBeenSet =
true; m_content.emplace_back(std::forward<ContentT>(value));
return *
this; }
68 bool m_contentHasBeenSet =
false;
71 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::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue