AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
SourceAttribution.h
1
6#pragma once
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>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QBusiness {
23namespace Model {
24
32 public:
33 AWS_QBUSINESS_API SourceAttribution() = default;
36 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetTitle() const { return m_title; }
44 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
45 template <typename TitleT = Aws::String>
46 void SetTitle(TitleT&& value) {
47 m_titleHasBeenSet = true;
48 m_title = std::forward<TitleT>(value);
49 }
50 template <typename TitleT = Aws::String>
52 SetTitle(std::forward<TitleT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetSnippet() const { return m_snippet; }
63 inline bool SnippetHasBeenSet() const { return m_snippetHasBeenSet; }
64 template <typename SnippetT = Aws::String>
65 void SetSnippet(SnippetT&& value) {
66 m_snippetHasBeenSet = true;
67 m_snippet = std::forward<SnippetT>(value);
68 }
69 template <typename SnippetT = Aws::String>
71 SetSnippet(std::forward<SnippetT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetUrl() const { return m_url; }
82 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
83 template <typename UrlT = Aws::String>
84 void SetUrl(UrlT&& value) {
85 m_urlHasBeenSet = true;
86 m_url = std::forward<UrlT>(value);
87 }
88 template <typename UrlT = Aws::String>
90 SetUrl(std::forward<UrlT>(value));
91 return *this;
92 }
94
96
100 inline int GetCitationNumber() const { return m_citationNumber; }
101 inline bool CitationNumberHasBeenSet() const { return m_citationNumberHasBeenSet; }
102 inline void SetCitationNumber(int value) {
103 m_citationNumberHasBeenSet = true;
104 m_citationNumber = value;
105 }
107 SetCitationNumber(value);
108 return *this;
109 }
111
113
117 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
118 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
119 template <typename UpdatedAtT = Aws::Utils::DateTime>
120 void SetUpdatedAt(UpdatedAtT&& value) {
121 m_updatedAtHasBeenSet = true;
122 m_updatedAt = std::forward<UpdatedAtT>(value);
123 }
124 template <typename UpdatedAtT = Aws::Utils::DateTime>
126 SetUpdatedAt(std::forward<UpdatedAtT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::Vector<TextSegment>& GetTextMessageSegments() const { return m_textMessageSegments; }
137 inline bool TextMessageSegmentsHasBeenSet() const { return m_textMessageSegmentsHasBeenSet; }
138 template <typename TextMessageSegmentsT = Aws::Vector<TextSegment>>
140 m_textMessageSegmentsHasBeenSet = true;
141 m_textMessageSegments = std::forward<TextMessageSegmentsT>(value);
142 }
143 template <typename TextMessageSegmentsT = Aws::Vector<TextSegment>>
145 SetTextMessageSegments(std::forward<TextMessageSegmentsT>(value));
146 return *this;
147 }
148 template <typename TextMessageSegmentsT = TextSegment>
150 m_textMessageSegmentsHasBeenSet = true;
151 m_textMessageSegments.emplace_back(std::forward<TextMessageSegmentsT>(value));
152 return *this;
153 }
155
157
163 inline const Aws::String& GetDocumentId() const { return m_documentId; }
164 inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
165 template <typename DocumentIdT = Aws::String>
167 m_documentIdHasBeenSet = true;
168 m_documentId = std::forward<DocumentIdT>(value);
169 }
170 template <typename DocumentIdT = Aws::String>
172 SetDocumentId(std::forward<DocumentIdT>(value));
173 return *this;
174 }
176
178
184 inline const Aws::String& GetIndexId() const { return m_indexId; }
185 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
186 template <typename IndexIdT = Aws::String>
187 void SetIndexId(IndexIdT&& value) {
188 m_indexIdHasBeenSet = true;
189 m_indexId = std::forward<IndexIdT>(value);
190 }
191 template <typename IndexIdT = Aws::String>
193 SetIndexId(std::forward<IndexIdT>(value));
194 return *this;
195 }
197
199
206 inline const Aws::String& GetDatasourceId() const { return m_datasourceId; }
207 inline bool DatasourceIdHasBeenSet() const { return m_datasourceIdHasBeenSet; }
208 template <typename DatasourceIdT = Aws::String>
210 m_datasourceIdHasBeenSet = true;
211 m_datasourceId = std::forward<DatasourceIdT>(value);
212 }
213 template <typename DatasourceIdT = Aws::String>
215 SetDatasourceId(std::forward<DatasourceIdT>(value));
216 return *this;
217 }
219 private:
220 Aws::String m_title;
221
222 Aws::String m_snippet;
223
224 Aws::String m_url;
225
226 int m_citationNumber{0};
227
228 Aws::Utils::DateTime m_updatedAt{};
229
230 Aws::Vector<TextSegment> m_textMessageSegments;
231
232 Aws::String m_documentId;
233
234 Aws::String m_indexId;
235
236 Aws::String m_datasourceId;
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;
246};
247
248} // namespace Model
249} // namespace QBusiness
250} // namespace Aws
SourceAttribution & WithDocumentId(DocumentIdT &&value)
SourceAttribution & WithDatasourceId(DatasourceIdT &&value)
const Aws::String & GetDocumentId() const
const Aws::String & GetDatasourceId() const
SourceAttribution & AddTextMessageSegments(TextMessageSegmentsT &&value)
AWS_QBUSINESS_API SourceAttribution()=default
SourceAttribution & WithSnippet(SnippetT &&value)
SourceAttribution & WithCitationNumber(int value)
const Aws::Utils::DateTime & GetUpdatedAt() const
SourceAttribution & WithUpdatedAt(UpdatedAtT &&value)
AWS_QBUSINESS_API SourceAttribution(Aws::Utils::Json::JsonView jsonValue)
SourceAttribution & WithIndexId(IndexIdT &&value)
void SetDatasourceId(DatasourceIdT &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
SourceAttribution & WithUrl(UrlT &&value)
SourceAttribution & WithTextMessageSegments(TextMessageSegmentsT &&value)
void SetTextMessageSegments(TextMessageSegmentsT &&value)
const Aws::Vector< TextSegment > & GetTextMessageSegments() const
AWS_QBUSINESS_API SourceAttribution & operator=(Aws::Utils::Json::JsonView jsonValue)
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