7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/DocumentContentBlock.h>
9#include <aws/bedrock-runtime/model/S3Location.h>
10#include <aws/core/utils/Array.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
23namespace BedrockRuntime {
45 template <
typename BytesT = Aws::Utils::ByteBuffer>
47 m_bytesHasBeenSet =
true;
48 m_bytes = std::forward<BytesT>(value);
50 template <
typename BytesT = Aws::Utils::ByteBuffer>
52 SetBytes(std::forward<BytesT>(value));
66 template <
typename S3LocationT = S3Location>
68 m_s3LocationHasBeenSet =
true;
69 m_s3Location = std::forward<S3LocationT>(value);
71 template <
typename S3LocationT = S3Location>
84 template <
typename TextT = Aws::String>
86 m_textHasBeenSet =
true;
87 m_text = std::forward<TextT>(value);
89 template <
typename TextT = Aws::String>
91 SetText(std::forward<TextT>(value));
103 template <
typename ContentT = Aws::Vector<DocumentContentBlock>>
105 m_contentHasBeenSet =
true;
106 m_content = std::forward<ContentT>(value);
108 template <
typename ContentT = Aws::Vector<DocumentContentBlock>>
113 template <
typename ContentT = DocumentContentBlock>
115 m_contentHasBeenSet =
true;
116 m_content.emplace_back(std::forward<ContentT>(value));
123 S3Location m_s3Location;
128 bool m_bytesHasBeenSet =
false;
129 bool m_s3LocationHasBeenSet =
false;
130 bool m_textHasBeenSet =
false;
131 bool m_contentHasBeenSet =
false;
const S3Location & GetS3Location() const
AWS_BEDROCKRUNTIME_API DocumentSource()=default
bool S3LocationHasBeenSet() const
const Aws::String & GetText() const
void SetText(TextT &&value)
DocumentSource & WithContent(ContentT &&value)
bool BytesHasBeenSet() const
void SetContent(ContentT &&value)
AWS_BEDROCKRUNTIME_API DocumentSource & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ContentHasBeenSet() const
AWS_BEDROCKRUNTIME_API DocumentSource(Aws::Utils::Json::JsonView jsonValue)
DocumentSource & AddContent(ContentT &&value)
DocumentSource & WithText(TextT &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
DocumentSource & WithS3Location(S3LocationT &&value)
const Aws::Utils::ByteBuffer & GetBytes() const
bool TextHasBeenSet() const
void SetBytes(BytesT &&value)
void SetS3Location(S3LocationT &&value)
const Aws::Vector< DocumentContentBlock > & GetContent() const
DocumentSource & WithBytes(BytesT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue