7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/ContentBlock.h>
9#include <aws/bedrock-runtime/model/ConversationRole.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
21namespace BedrockRuntime {
35 AWS_BEDROCKRUNTIME_API
Message() =
default;
47 m_roleHasBeenSet =
true;
70 template <
typename ContentT = Aws::Vector<ContentBlock>>
72 m_contentHasBeenSet =
true;
73 m_content = std::forward<ContentT>(value);
75 template <
typename ContentT = Aws::Vector<ContentBlock>>
80 template <
typename ContentT = ContentBlock>
82 m_contentHasBeenSet =
true;
83 m_content.emplace_back(std::forward<ContentT>(value));
91 bool m_roleHasBeenSet =
false;
92 bool m_contentHasBeenSet =
false;
const Aws::Vector< ContentBlock > & GetContent() const
bool RoleHasBeenSet() const
AWS_BEDROCKRUNTIME_API Message()=default
Message & AddContent(ContentT &&value)
bool ContentHasBeenSet() const
ConversationRole GetRole() const
AWS_BEDROCKRUNTIME_API Message & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContent(ContentT &&value)
AWS_BEDROCKRUNTIME_API Message(Aws::Utils::Json::JsonView jsonValue)
Message & WithContent(ContentT &&value)
void SetRole(ConversationRole value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
Message & WithRole(ConversationRole value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue