7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/qbusiness/QBusiness_EXPORTS.h>
11#include <aws/qbusiness/model/TextSegment.h>
45 template <
typename TitleT = Aws::String>
47 m_titleHasBeenSet =
true;
48 m_title = std::forward<TitleT>(value);
50 template <
typename TitleT = Aws::String>
52 SetTitle(std::forward<TitleT>(value));
64 template <
typename SnippetT = Aws::String>
66 m_snippetHasBeenSet =
true;
67 m_snippet = std::forward<SnippetT>(value);
69 template <
typename SnippetT = Aws::String>
83 template <
typename UrlT = Aws::String>
85 m_urlHasBeenSet =
true;
86 m_url = std::forward<UrlT>(value);
88 template <
typename UrlT = Aws::String>
90 SetUrl(std::forward<UrlT>(value));
103 m_citationNumberHasBeenSet =
true;
104 m_citationNumber = value;
119 template <
typename UpdatedAtT = Aws::Utils::DateTime>
121 m_updatedAtHasBeenSet =
true;
122 m_updatedAt = std::forward<UpdatedAtT>(value);
124 template <
typename UpdatedAtT = Aws::Utils::DateTime>
138 template <
typename TextMessageSegmentsT = Aws::Vector<TextSegment>>
140 m_textMessageSegmentsHasBeenSet =
true;
141 m_textMessageSegments = std::forward<TextMessageSegmentsT>(value);
143 template <
typename TextMessageSegmentsT = Aws::Vector<TextSegment>>
148 template <
typename TextMessageSegmentsT = TextSegment>
150 m_textMessageSegmentsHasBeenSet =
true;
151 m_textMessageSegments.emplace_back(std::forward<TextMessageSegmentsT>(value));
165 template <
typename DocumentIdT = Aws::String>
167 m_documentIdHasBeenSet =
true;
168 m_documentId = std::forward<DocumentIdT>(value);
170 template <
typename DocumentIdT = Aws::String>
186 template <
typename IndexIdT = Aws::String>
188 m_indexIdHasBeenSet =
true;
189 m_indexId = std::forward<IndexIdT>(value);
191 template <
typename IndexIdT = Aws::String>
208 template <
typename DatasourceIdT = Aws::String>
210 m_datasourceIdHasBeenSet =
true;
211 m_datasourceId = std::forward<DatasourceIdT>(value);
213 template <
typename DatasourceIdT = Aws::String>
226 int m_citationNumber{0};
237 bool m_titleHasBeenSet =
false;
238 bool m_snippetHasBeenSet =
false;
239 bool m_urlHasBeenSet =
false;
240 bool m_citationNumberHasBeenSet =
false;
241 bool m_updatedAtHasBeenSet =
false;
242 bool m_textMessageSegmentsHasBeenSet =
false;
243 bool m_documentIdHasBeenSet =
false;
244 bool m_indexIdHasBeenSet =
false;
245 bool m_datasourceIdHasBeenSet =
false;
void SetUpdatedAt(UpdatedAtT &&value)
SourceAttribution & WithDocumentId(DocumentIdT &&value)
const Aws::String & GetSnippet() const
const Aws::String & GetUrl() const
void SetTitle(TitleT &&value)
SourceAttribution & WithDatasourceId(DatasourceIdT &&value)
const Aws::String & GetDocumentId() const
void SetSnippet(SnippetT &&value)
const Aws::String & GetDatasourceId() const
bool TitleHasBeenSet() const
bool TextMessageSegmentsHasBeenSet() const
const Aws::String & GetIndexId() const
void SetUrl(UrlT &&value)
SourceAttribution & AddTextMessageSegments(TextMessageSegmentsT &&value)
AWS_QBUSINESS_API SourceAttribution()=default
SourceAttribution & WithSnippet(SnippetT &&value)
bool UrlHasBeenSet() const
SourceAttribution & WithCitationNumber(int value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetTitle() const
SourceAttribution & WithUpdatedAt(UpdatedAtT &&value)
void SetIndexId(IndexIdT &&value)
AWS_QBUSINESS_API SourceAttribution(Aws::Utils::Json::JsonView jsonValue)
SourceAttribution & WithIndexId(IndexIdT &&value)
bool DatasourceIdHasBeenSet() const
void SetDatasourceId(DatasourceIdT &&value)
int GetCitationNumber() const
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
SourceAttribution & WithUrl(UrlT &&value)
void SetCitationNumber(int value)
SourceAttribution & WithTextMessageSegments(TextMessageSegmentsT &&value)
void SetTextMessageSegments(TextMessageSegmentsT &&value)
void SetDocumentId(DocumentIdT &&value)
bool DocumentIdHasBeenSet() const
bool UpdatedAtHasBeenSet() const
const Aws::Vector< TextSegment > & GetTextMessageSegments() const
AWS_QBUSINESS_API SourceAttribution & operator=(Aws::Utils::Json::JsonView jsonValue)
bool IndexIdHasBeenSet() const
bool SnippetHasBeenSet() const
bool CitationNumberHasBeenSet() const
SourceAttribution & WithTitle(TitleT &&value)
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