7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/DocumentFormat.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/bedrock-runtime/model/DocumentSource.h>
11#include <aws/bedrock-runtime/model/CitationsConfig.h>
24namespace BedrockRuntime
65 template<
typename NameT = Aws::String>
66 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
67 template<
typename NameT = Aws::String>
77 template<
typename SourceT = DocumentSource>
78 void SetSource(SourceT&& value) { m_sourceHasBeenSet =
true; m_source = std::forward<SourceT>(value); }
79 template<
typename SourceT = DocumentSource>
90 template<
typename ContextT = Aws::String>
91 void SetContext(ContextT&& value) { m_contextHasBeenSet =
true; m_context = std::forward<ContextT>(value); }
92 template<
typename ContextT = Aws::String>
103 template<
typename CitationsT = CitationsConfig>
104 void SetCitations(CitationsT&& value) { m_citationsHasBeenSet =
true; m_citations = std::forward<CitationsT>(value); }
105 template<
typename CitationsT = CitationsConfig>
111 bool m_formatHasBeenSet =
false;
114 bool m_nameHasBeenSet =
false;
116 DocumentSource m_source;
117 bool m_sourceHasBeenSet =
false;
120 bool m_contextHasBeenSet =
false;
122 CitationsConfig m_citations;
123 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue