7#include <aws/bedrock-agentcore/BedrockAgentCore_EXPORTS.h>
8#include <aws/bedrock-agentcore/model/ContentBlockType.h>
9#include <aws/bedrock-agentcore/model/ResourceContent.h>
10#include <aws/core/utils/Array.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
22namespace BedrockAgentCore {
44 m_typeHasBeenSet =
true;
59 template <
typename TextT = Aws::String>
61 m_textHasBeenSet =
true;
62 m_text = std::forward<TextT>(value);
64 template <
typename TextT = Aws::String>
66 SetText(std::forward<TextT>(value));
77 template <
typename DataT = Aws::Utils::ByteBuffer>
79 m_dataHasBeenSet =
true;
80 m_data = std::forward<DataT>(value);
82 template <
typename DataT = Aws::Utils::ByteBuffer>
84 SetData(std::forward<DataT>(value));
95 template <
typename MimeTypeT = Aws::String>
97 m_mimeTypeHasBeenSet =
true;
98 m_mimeType = std::forward<MimeTypeT>(value);
100 template <
typename MimeTypeT = Aws::String>
113 template <
typename UriT = Aws::String>
115 m_uriHasBeenSet =
true;
116 m_uri = std::forward<UriT>(value);
118 template <
typename UriT = Aws::String>
120 SetUri(std::forward<UriT>(value));
131 template <
typename NameT = Aws::String>
133 m_nameHasBeenSet =
true;
134 m_name = std::forward<NameT>(value);
136 template <
typename NameT = Aws::String>
138 SetName(std::forward<NameT>(value));
149 template <
typename DescriptionT = Aws::String>
151 m_descriptionHasBeenSet =
true;
152 m_description = std::forward<DescriptionT>(value);
154 template <
typename DescriptionT = Aws::String>
165 inline long long GetSize()
const {
return m_size; }
168 m_sizeHasBeenSet =
true;
183 template <
typename ResourceT = ResourceContent>
185 m_resourceHasBeenSet =
true;
186 m_resource = std::forward<ResourceT>(value);
188 template <
typename ResourceT = ResourceContent>
211 ResourceContent m_resource;
212 bool m_typeHasBeenSet =
false;
213 bool m_textHasBeenSet =
false;
214 bool m_dataHasBeenSet =
false;
215 bool m_mimeTypeHasBeenSet =
false;
216 bool m_uriHasBeenSet =
false;
217 bool m_nameHasBeenSet =
false;
218 bool m_descriptionHasBeenSet =
false;
219 bool m_sizeHasBeenSet =
false;
220 bool m_resourceHasBeenSet =
false;
bool TextHasBeenSet() const
AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const
ContentBlockType GetType() const
void SetText(TextT &&value)
const Aws::String & GetMimeType() const
ContentBlock & WithText(TextT &&value)
ContentBlock & WithName(NameT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetName() const
void SetName(NameT &&value)
bool DescriptionHasBeenSet() const
long long GetSize() const
void SetMimeType(MimeTypeT &&value)
void SetType(ContentBlockType value)
bool ResourceHasBeenSet() const
ContentBlock & WithData(DataT &&value)
bool UriHasBeenSet() const
AWS_BEDROCKAGENTCORE_API ContentBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
ContentBlock & WithMimeType(MimeTypeT &&value)
bool MimeTypeHasBeenSet() const
ContentBlock & WithResource(ResourceT &&value)
void SetData(DataT &&value)
bool TypeHasBeenSet() const
const Aws::String & GetUri() const
AWS_BEDROCKAGENTCORE_API ContentBlock()=default
ContentBlock & WithUri(UriT &&value)
const Aws::String & GetText() const
void SetUri(UriT &&value)
ContentBlock & WithDescription(DescriptionT &&value)
ContentBlock & WithType(ContentBlockType value)
void SetResource(ResourceT &&value)
const ResourceContent & GetResource() const
bool SizeHasBeenSet() const
AWS_BEDROCKAGENTCORE_API ContentBlock(Aws::Utils::Json::JsonView jsonValue)
bool DataHasBeenSet() const
void SetSize(long long value)
ContentBlock & WithSize(long long value)
const Aws::Utils::ByteBuffer & GetData() const
bool NameHasBeenSet() const
const Aws::String & GetDescription() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue