AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
DocumentBlock.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/CitationsConfig.h>
9#include <aws/bedrock-runtime/model/DocumentFormat.h>
10#include <aws/bedrock-runtime/model/DocumentSource.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockRuntime {
23namespace Model {
24
31 public:
32 AWS_BEDROCKRUNTIME_API DocumentBlock() = default;
35 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline DocumentFormat GetFormat() const { return m_format; }
42 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
43 inline void SetFormat(DocumentFormat value) {
44 m_formatHasBeenSet = true;
45 m_format = value;
46 }
48 SetFormat(value);
49 return *this;
50 }
52
54
63 inline const Aws::String& GetName() const { return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 template <typename NameT = Aws::String>
66 void SetName(NameT&& value) {
67 m_nameHasBeenSet = true;
68 m_name = std::forward<NameT>(value);
69 }
70 template <typename NameT = Aws::String>
72 SetName(std::forward<NameT>(value));
73 return *this;
74 }
76
78
81 inline const DocumentSource& GetSource() const { return m_source; }
82 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
83 template <typename SourceT = DocumentSource>
84 void SetSource(SourceT&& value) {
85 m_sourceHasBeenSet = true;
86 m_source = std::forward<SourceT>(value);
87 }
88 template <typename SourceT = DocumentSource>
90 SetSource(std::forward<SourceT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetContext() const { return m_context; }
101 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
102 template <typename ContextT = Aws::String>
103 void SetContext(ContextT&& value) {
104 m_contextHasBeenSet = true;
105 m_context = std::forward<ContextT>(value);
106 }
107 template <typename ContextT = Aws::String>
109 SetContext(std::forward<ContextT>(value));
110 return *this;
111 }
113
115
119 inline const CitationsConfig& GetCitations() const { return m_citations; }
120 inline bool CitationsHasBeenSet() const { return m_citationsHasBeenSet; }
121 template <typename CitationsT = CitationsConfig>
122 void SetCitations(CitationsT&& value) {
123 m_citationsHasBeenSet = true;
124 m_citations = std::forward<CitationsT>(value);
125 }
126 template <typename CitationsT = CitationsConfig>
128 SetCitations(std::forward<CitationsT>(value));
129 return *this;
130 }
132 private:
134
135 Aws::String m_name;
136
137 DocumentSource m_source;
138
139 Aws::String m_context;
140
141 CitationsConfig m_citations;
142 bool m_formatHasBeenSet = false;
143 bool m_nameHasBeenSet = false;
144 bool m_sourceHasBeenSet = false;
145 bool m_contextHasBeenSet = false;
146 bool m_citationsHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace BedrockRuntime
151} // namespace Aws
DocumentBlock & WithFormat(DocumentFormat value)
const Aws::String & GetName() const
DocumentBlock & WithContext(ContextT &&value)
DocumentBlock & WithSource(SourceT &&value)
AWS_BEDROCKRUNTIME_API DocumentBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
DocumentBlock & WithCitations(CitationsT &&value)
const CitationsConfig & GetCitations() const
AWS_BEDROCKRUNTIME_API DocumentBlock(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API DocumentBlock()=default
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFormat(DocumentFormat value)
const DocumentSource & GetSource() const
DocumentBlock & WithName(NameT &&value)
const Aws::String & GetContext() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue