AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
DocumentSource.h
1
6#pragma once
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>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace BedrockRuntime
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_BEDROCKRUNTIME_API DocumentSource() = default;
39 AWS_BEDROCKRUNTIME_API DocumentSource(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKRUNTIME_API DocumentSource& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::Utils::ByteBuffer& GetBytes() const { return m_bytes; }
50 inline bool BytesHasBeenSet() const { return m_bytesHasBeenSet; }
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>
54 DocumentSource& WithBytes(BytesT&& value) { SetBytes(std::forward<BytesT>(value)); return *this;}
56
58
64 inline const S3Location& GetS3Location() const { return m_s3Location; }
65 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
66 template<typename S3LocationT = S3Location>
67 void SetS3Location(S3LocationT&& value) { m_s3LocationHasBeenSet = true; m_s3Location = std::forward<S3LocationT>(value); }
68 template<typename S3LocationT = S3Location>
69 DocumentSource& WithS3Location(S3LocationT&& value) { SetS3Location(std::forward<S3LocationT>(value)); return *this;}
71
73
76 inline const Aws::String& GetText() const { return m_text; }
77 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
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>
81 DocumentSource& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
83
85
89 inline const Aws::Vector<DocumentContentBlock>& GetContent() const { return m_content; }
90 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
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>>
94 DocumentSource& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
95 template<typename ContentT = DocumentContentBlock>
96 DocumentSource& AddContent(ContentT&& value) { m_contentHasBeenSet = true; m_content.emplace_back(std::forward<ContentT>(value)); return *this; }
98 private:
99
100 Aws::Utils::ByteBuffer m_bytes{};
101 bool m_bytesHasBeenSet = false;
102
103 S3Location m_s3Location;
104 bool m_s3LocationHasBeenSet = false;
105
106 Aws::String m_text;
107 bool m_textHasBeenSet = false;
108
110 bool m_contentHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace BedrockRuntime
115} // namespace Aws
const S3Location & GetS3Location() const
AWS_BEDROCKRUNTIME_API DocumentSource()=default
DocumentSource & WithContent(ContentT &&value)
AWS_BEDROCKRUNTIME_API DocumentSource & operator=(Aws::Utils::Json::JsonView jsonValue)
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
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