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>
22namespace BedrockRuntime {
44 m_formatHasBeenSet =
true;
65 template <
typename NameT = Aws::String>
67 m_nameHasBeenSet =
true;
68 m_name = std::forward<NameT>(value);
70 template <
typename NameT = Aws::String>
72 SetName(std::forward<NameT>(value));
83 template <
typename SourceT = DocumentSource>
85 m_sourceHasBeenSet =
true;
86 m_source = std::forward<SourceT>(value);
88 template <
typename SourceT = DocumentSource>
102 template <
typename ContextT = Aws::String>
104 m_contextHasBeenSet =
true;
105 m_context = std::forward<ContextT>(value);
107 template <
typename ContextT = Aws::String>
121 template <
typename CitationsT = CitationsConfig>
123 m_citationsHasBeenSet =
true;
124 m_citations = std::forward<CitationsT>(value);
126 template <
typename CitationsT = CitationsConfig>
137 DocumentSource m_source;
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;
DocumentBlock & WithFormat(DocumentFormat value)
bool FormatHasBeenSet() const
bool SourceHasBeenSet() const
void SetCitations(CitationsT &&value)
const Aws::String & GetName() const
DocumentBlock & WithContext(ContextT &&value)
void SetSource(SourceT &&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)
void SetContext(ContextT &&value)
bool CitationsHasBeenSet() const
DocumentFormat GetFormat() const
AWS_BEDROCKRUNTIME_API DocumentBlock()=default
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
bool ContextHasBeenSet() const
void SetFormat(DocumentFormat value)
const DocumentSource & GetSource() const
DocumentBlock & WithName(NameT &&value)
void SetName(NameT &&value)
bool NameHasBeenSet() const
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