7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/Array.h>
9#include <aws/bedrock-runtime/model/S3Location.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/bedrock-runtime/model/DocumentContentBlock.h>
25namespace BedrockRuntime
51 template<
typename BytesT = Aws::Utils::ByteBuffer>
52 void SetBytes(BytesT&& value) { m_bytesHasBeenSet =
true; m_bytes = std::forward<BytesT>(value); }
53 template<
typename BytesT = Aws::Utils::ByteBuffer>
66 template<
typename S3LocationT = S3Location>
67 void SetS3Location(S3LocationT&& value) { m_s3LocationHasBeenSet =
true; m_s3Location = std::forward<S3LocationT>(value); }
68 template<
typename S3LocationT = S3Location>
78 template<
typename TextT = Aws::String>
79 void SetText(TextT&& value) { m_textHasBeenSet =
true; m_text = std::forward<TextT>(value); }
80 template<
typename TextT = Aws::String>
91 template<
typename ContentT = Aws::Vector<DocumentContentBlock>>
92 void SetContent(ContentT&& value) { m_contentHasBeenSet =
true; m_content = std::forward<ContentT>(value); }
93 template<
typename ContentT = Aws::Vector<DocumentContentBlock>>
95 template<
typename ContentT = DocumentContentBlock>
96 DocumentSource&
AddContent(ContentT&& value) { m_contentHasBeenSet =
true; m_content.emplace_back(std::forward<ContentT>(value));
return *
this; }
101 bool m_bytesHasBeenSet =
false;
103 S3Location m_s3Location;
104 bool m_s3LocationHasBeenSet =
false;
107 bool m_textHasBeenSet =
false;
110 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue