7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/qbusiness/model/TextSegment.h>
51 template<
typename TitleT = Aws::String>
52 void SetTitle(
TitleT&& value) { m_titleHasBeenSet =
true; m_title = std::forward<TitleT>(value); }
53 template<
typename TitleT = Aws::String>
64 template<
typename SnippetT = Aws::String>
65 void SetSnippet(
SnippetT&& value) { m_snippetHasBeenSet =
true; m_snippet = std::forward<SnippetT>(value); }
66 template<
typename SnippetT = Aws::String>
77 template<
typename UrlT = Aws::String>
78 void SetUrl(
UrlT&& value) { m_urlHasBeenSet =
true; m_url = std::forward<UrlT>(value); }
79 template<
typename UrlT = Aws::String>
90 inline void SetCitationNumber(
int value) { m_citationNumberHasBeenSet =
true; m_citationNumber = value; }
101 template<
typename UpdatedAtT = Aws::Utils::DateTime>
103 template<
typename UpdatedAtT = Aws::Utils::DateTime>
114 template<
typename TextMessageSegmentsT = Aws::Vector<TextSegment>>
116 template<
typename TextMessageSegmentsT = Aws::Vector<TextSegment>>
118 template<
typename TextMessageSegmentsT = TextSegment>
131 template<
typename DocumentIdT = Aws::String>
133 template<
typename DocumentIdT = Aws::String>
146 template<
typename IndexIdT = Aws::String>
147 void SetIndexId(
IndexIdT&& value) { m_indexIdHasBeenSet =
true; m_indexId = std::forward<IndexIdT>(value); }
148 template<
typename IndexIdT = Aws::String>
162 template<
typename DatasourceIdT = Aws::String>
164 template<
typename DatasourceIdT = Aws::String>
170 bool m_titleHasBeenSet =
false;
173 bool m_snippetHasBeenSet =
false;
176 bool m_urlHasBeenSet =
false;
178 int m_citationNumber{0};
179 bool m_citationNumberHasBeenSet =
false;
182 bool m_updatedAtHasBeenSet =
false;
185 bool m_textMessageSegmentsHasBeenSet =
false;
188 bool m_documentIdHasBeenSet =
false;
191 bool m_indexIdHasBeenSet =
false;
194 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