7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/CitationLocation.h>
9#include <aws/bedrock-runtime/model/CitationSourceContent.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
22namespace BedrockRuntime {
46 template <
typename TitleT = Aws::String>
48 m_titleHasBeenSet =
true;
49 m_title = std::forward<TitleT>(value);
51 template <
typename TitleT = Aws::String>
53 SetTitle(std::forward<TitleT>(value));
65 template <
typename SourceT = Aws::String>
67 m_sourceHasBeenSet =
true;
68 m_source = std::forward<SourceT>(value);
70 template <
typename SourceT = Aws::String>
84 template <
typename SourceContentT = Aws::Vector<CitationSourceContent>>
86 m_sourceContentHasBeenSet =
true;
87 m_sourceContent = std::forward<SourceContentT>(value);
89 template <
typename SourceContentT = Aws::Vector<CitationSourceContent>>
94 template <
typename SourceContentT = CitationSourceContent>
96 m_sourceContentHasBeenSet =
true;
97 m_sourceContent.emplace_back(std::forward<SourceContentT>(value));
109 template <
typename LocationT = CitationLocation>
111 m_locationHasBeenSet =
true;
112 m_location = std::forward<LocationT>(value);
114 template <
typename LocationT = CitationLocation>
128 bool m_titleHasBeenSet =
false;
129 bool m_sourceHasBeenSet =
false;
130 bool m_sourceContentHasBeenSet =
false;
131 bool m_locationHasBeenSet =
false;
bool LocationHasBeenSet() const
Citation & WithSource(SourceT &&value)
void SetSource(SourceT &&value)
void SetSourceContent(SourceContentT &&value)
AWS_BEDROCKRUNTIME_API Citation()=default
const Aws::String & GetTitle() const
AWS_BEDROCKRUNTIME_API Citation(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< CitationSourceContent > & GetSourceContent() const
Citation & WithTitle(TitleT &&value)
bool SourceContentHasBeenSet() const
void SetLocation(LocationT &&value)
Citation & WithLocation(LocationT &&value)
Citation & WithSourceContent(SourceContentT &&value)
bool SourceHasBeenSet() const
const Aws::String & GetSource() const
bool TitleHasBeenSet() const
AWS_BEDROCKRUNTIME_API Citation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
Citation & AddSourceContent(SourceContentT &&value)
void SetTitle(TitleT &&value)
const CitationLocation & GetLocation() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue