AWS SDK for C++

AWS SDK for C++ Version 1.11.636

Loading...
Searching...
No Matches
SourceAttribution.h
1
6#pragma once
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>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QBusiness
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_QBUSINESS_API SourceAttribution() = default;
41 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetTitle() const { return m_title; }
50 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
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>
54 SourceAttribution& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
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) { m_snippetHasBeenSet = true; m_snippet = std::forward<SnippetT>(value); }
66 template<typename SnippetT = Aws::String>
67 SourceAttribution& WithSnippet(SnippetT&& value) { SetSnippet(std::forward<SnippetT>(value)); return *this;}
69
71
75 inline const Aws::String& GetUrl() const { return m_url; }
76 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
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>
80 SourceAttribution& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
82
84
88 inline int GetCitationNumber() const { return m_citationNumber; }
89 inline bool CitationNumberHasBeenSet() const { return m_citationNumberHasBeenSet; }
90 inline void SetCitationNumber(int value) { m_citationNumberHasBeenSet = true; m_citationNumber = value; }
91 inline SourceAttribution& WithCitationNumber(int value) { SetCitationNumber(value); return *this;}
93
95
99 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
100 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
101 template<typename UpdatedAtT = Aws::Utils::DateTime>
102 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
103 template<typename UpdatedAtT = Aws::Utils::DateTime>
104 SourceAttribution& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
106
108
112 inline const Aws::Vector<TextSegment>& GetTextMessageSegments() const { return m_textMessageSegments; }
113 inline bool TextMessageSegmentsHasBeenSet() const { return m_textMessageSegmentsHasBeenSet; }
114 template<typename TextMessageSegmentsT = Aws::Vector<TextSegment>>
115 void SetTextMessageSegments(TextMessageSegmentsT&& value) { m_textMessageSegmentsHasBeenSet = true; m_textMessageSegments = std::forward<TextMessageSegmentsT>(value); }
116 template<typename TextMessageSegmentsT = Aws::Vector<TextSegment>>
117 SourceAttribution& WithTextMessageSegments(TextMessageSegmentsT&& value) { SetTextMessageSegments(std::forward<TextMessageSegmentsT>(value)); return *this;}
118 template<typename TextMessageSegmentsT = TextSegment>
119 SourceAttribution& AddTextMessageSegments(TextMessageSegmentsT&& value) { m_textMessageSegmentsHasBeenSet = true; m_textMessageSegments.emplace_back(std::forward<TextMessageSegmentsT>(value)); return *this; }
121
123
129 inline const Aws::String& GetDocumentId() const { return m_documentId; }
130 inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
131 template<typename DocumentIdT = Aws::String>
132 void SetDocumentId(DocumentIdT&& value) { m_documentIdHasBeenSet = true; m_documentId = std::forward<DocumentIdT>(value); }
133 template<typename DocumentIdT = Aws::String>
134 SourceAttribution& WithDocumentId(DocumentIdT&& value) { SetDocumentId(std::forward<DocumentIdT>(value)); return *this;}
136
138
144 inline const Aws::String& GetIndexId() const { return m_indexId; }
145 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
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>
149 SourceAttribution& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
151
153
160 inline const Aws::String& GetDatasourceId() const { return m_datasourceId; }
161 inline bool DatasourceIdHasBeenSet() const { return m_datasourceIdHasBeenSet; }
162 template<typename DatasourceIdT = Aws::String>
163 void SetDatasourceId(DatasourceIdT&& value) { m_datasourceIdHasBeenSet = true; m_datasourceId = std::forward<DatasourceIdT>(value); }
164 template<typename DatasourceIdT = Aws::String>
165 SourceAttribution& WithDatasourceId(DatasourceIdT&& value) { SetDatasourceId(std::forward<DatasourceIdT>(value)); return *this;}
167 private:
168
169 Aws::String m_title;
170 bool m_titleHasBeenSet = false;
171
172 Aws::String m_snippet;
173 bool m_snippetHasBeenSet = false;
174
175 Aws::String m_url;
176 bool m_urlHasBeenSet = false;
177
178 int m_citationNumber{0};
179 bool m_citationNumberHasBeenSet = false;
180
181 Aws::Utils::DateTime m_updatedAt{};
182 bool m_updatedAtHasBeenSet = false;
183
184 Aws::Vector<TextSegment> m_textMessageSegments;
185 bool m_textMessageSegmentsHasBeenSet = false;
186
187 Aws::String m_documentId;
188 bool m_documentIdHasBeenSet = false;
189
190 Aws::String m_indexId;
191 bool m_indexIdHasBeenSet = false;
192
193 Aws::String m_datasourceId;
194 bool m_datasourceIdHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace QBusiness
199} // 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