7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-runtime/model/ImageBlock.h>
10#include <aws/bedrock-runtime/model/DocumentBlock.h>
11#include <aws/bedrock-runtime/model/ToolUseBlock.h>
12#include <aws/bedrock-runtime/model/ToolResultBlock.h>
13#include <aws/bedrock-runtime/model/GuardrailConverseContentBlock.h>
26namespace BedrockRuntime
58 inline void SetText(
const char* value) { m_textHasBeenSet =
true; m_text.assign(value); }
72 inline void SetImage(
ImageBlock&& value) { m_imageHasBeenSet =
true; m_image = std::move(value); }
131 bool m_textHasBeenSet =
false;
134 bool m_imageHasBeenSet =
false;
137 bool m_documentHasBeenSet =
false;
140 bool m_toolUseHasBeenSet =
false;
143 bool m_toolResultHasBeenSet =
false;
146 bool m_guardContentHasBeenSet =
false;
bool GuardContentHasBeenSet() const
ContentBlock & WithToolResult(ToolResultBlock &&value)
ContentBlock & WithToolResult(const ToolResultBlock &value)
bool ToolUseHasBeenSet() const
void SetToolUse(const ToolUseBlock &value)
void SetToolResult(const ToolResultBlock &value)
bool ToolResultHasBeenSet() const
const GuardrailConverseContentBlock & GetGuardContent() const
const Aws::String & GetText() const
ContentBlock & WithText(const Aws::String &value)
ContentBlock & WithDocument(DocumentBlock &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ContentBlock & WithImage(const ImageBlock &value)
const ToolUseBlock & GetToolUse() const
AWS_BEDROCKRUNTIME_API ContentBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetText(Aws::String &&value)
AWS_BEDROCKRUNTIME_API ContentBlock(Aws::Utils::Json::JsonView jsonValue)
bool ImageHasBeenSet() const
void SetText(const char *value)
ContentBlock & WithGuardContent(GuardrailConverseContentBlock &&value)
ContentBlock & WithText(const char *value)
ContentBlock & WithText(Aws::String &&value)
void SetDocument(DocumentBlock &&value)
const DocumentBlock & GetDocument() const
void SetGuardContent(GuardrailConverseContentBlock &&value)
void SetImage(const ImageBlock &value)
const ImageBlock & GetImage() const
ContentBlock & WithToolUse(const ToolUseBlock &value)
void SetDocument(const DocumentBlock &value)
bool DocumentHasBeenSet() const
void SetToolResult(ToolResultBlock &&value)
ContentBlock & WithGuardContent(const GuardrailConverseContentBlock &value)
ContentBlock & WithDocument(const DocumentBlock &value)
void SetGuardContent(const GuardrailConverseContentBlock &value)
bool TextHasBeenSet() const
AWS_BEDROCKRUNTIME_API ContentBlock()
void SetToolUse(ToolUseBlock &&value)
void SetImage(ImageBlock &&value)
ContentBlock & WithImage(ImageBlock &&value)
void SetText(const Aws::String &value)
ContentBlock & WithToolUse(ToolUseBlock &&value)
const ToolResultBlock & GetToolResult() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue