AWS SDK for C++

AWS SDK for C++ Version 1.11.691

Loading...
Searching...
No Matches
BoxConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kendra/Kendra_EXPORTS.h>
10#include <aws/kendra/model/DataSourceToIndexFieldMapping.h>
11#include <aws/kendra/model/DataSourceVpcConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace kendra {
23namespace Model {
24
32 public:
33 AWS_KENDRA_API BoxConfiguration() = default;
36 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const Aws::String& GetEnterpriseId() const { return m_enterpriseId; }
45 inline bool EnterpriseIdHasBeenSet() const { return m_enterpriseIdHasBeenSet; }
46 template <typename EnterpriseIdT = Aws::String>
47 void SetEnterpriseId(EnterpriseIdT&& value) {
48 m_enterpriseIdHasBeenSet = true;
49 m_enterpriseId = std::forward<EnterpriseIdT>(value);
50 }
51 template <typename EnterpriseIdT = Aws::String>
52 BoxConfiguration& WithEnterpriseId(EnterpriseIdT&& value) {
53 SetEnterpriseId(std::forward<EnterpriseIdT>(value));
54 return *this;
55 }
57
59
74 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
75 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
76 template <typename SecretArnT = Aws::String>
77 void SetSecretArn(SecretArnT&& value) {
78 m_secretArnHasBeenSet = true;
79 m_secretArn = std::forward<SecretArnT>(value);
80 }
81 template <typename SecretArnT = Aws::String>
82 BoxConfiguration& WithSecretArn(SecretArnT&& value) {
83 SetSecretArn(std::forward<SecretArnT>(value));
84 return *this;
85 }
87
89
95 inline bool GetUseChangeLog() const { return m_useChangeLog; }
96 inline bool UseChangeLogHasBeenSet() const { return m_useChangeLogHasBeenSet; }
97 inline void SetUseChangeLog(bool value) {
98 m_useChangeLogHasBeenSet = true;
99 m_useChangeLog = value;
100 }
101 inline BoxConfiguration& WithUseChangeLog(bool value) {
102 SetUseChangeLog(value);
103 return *this;
104 }
106
108
111 inline bool GetCrawlComments() const { return m_crawlComments; }
112 inline bool CrawlCommentsHasBeenSet() const { return m_crawlCommentsHasBeenSet; }
113 inline void SetCrawlComments(bool value) {
114 m_crawlCommentsHasBeenSet = true;
115 m_crawlComments = value;
116 }
118 SetCrawlComments(value);
119 return *this;
120 }
122
124
127 inline bool GetCrawlTasks() const { return m_crawlTasks; }
128 inline bool CrawlTasksHasBeenSet() const { return m_crawlTasksHasBeenSet; }
129 inline void SetCrawlTasks(bool value) {
130 m_crawlTasksHasBeenSet = true;
131 m_crawlTasks = value;
132 }
133 inline BoxConfiguration& WithCrawlTasks(bool value) {
134 SetCrawlTasks(value);
135 return *this;
136 }
138
140
143 inline bool GetCrawlWebLinks() const { return m_crawlWebLinks; }
144 inline bool CrawlWebLinksHasBeenSet() const { return m_crawlWebLinksHasBeenSet; }
145 inline void SetCrawlWebLinks(bool value) {
146 m_crawlWebLinksHasBeenSet = true;
147 m_crawlWebLinks = value;
148 }
150 SetCrawlWebLinks(value);
151 return *this;
152 }
154
156
165 inline const Aws::Vector<DataSourceToIndexFieldMapping>& GetFileFieldMappings() const { return m_fileFieldMappings; }
166 inline bool FileFieldMappingsHasBeenSet() const { return m_fileFieldMappingsHasBeenSet; }
167 template <typename FileFieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
168 void SetFileFieldMappings(FileFieldMappingsT&& value) {
169 m_fileFieldMappingsHasBeenSet = true;
170 m_fileFieldMappings = std::forward<FileFieldMappingsT>(value);
171 }
172 template <typename FileFieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
173 BoxConfiguration& WithFileFieldMappings(FileFieldMappingsT&& value) {
174 SetFileFieldMappings(std::forward<FileFieldMappingsT>(value));
175 return *this;
176 }
177 template <typename FileFieldMappingsT = DataSourceToIndexFieldMapping>
178 BoxConfiguration& AddFileFieldMappings(FileFieldMappingsT&& value) {
179 m_fileFieldMappingsHasBeenSet = true;
180 m_fileFieldMappings.emplace_back(std::forward<FileFieldMappingsT>(value));
181 return *this;
182 }
184
186
195 inline const Aws::Vector<DataSourceToIndexFieldMapping>& GetTaskFieldMappings() const { return m_taskFieldMappings; }
196 inline bool TaskFieldMappingsHasBeenSet() const { return m_taskFieldMappingsHasBeenSet; }
197 template <typename TaskFieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
198 void SetTaskFieldMappings(TaskFieldMappingsT&& value) {
199 m_taskFieldMappingsHasBeenSet = true;
200 m_taskFieldMappings = std::forward<TaskFieldMappingsT>(value);
201 }
202 template <typename TaskFieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
203 BoxConfiguration& WithTaskFieldMappings(TaskFieldMappingsT&& value) {
204 SetTaskFieldMappings(std::forward<TaskFieldMappingsT>(value));
205 return *this;
206 }
207 template <typename TaskFieldMappingsT = DataSourceToIndexFieldMapping>
208 BoxConfiguration& AddTaskFieldMappings(TaskFieldMappingsT&& value) {
209 m_taskFieldMappingsHasBeenSet = true;
210 m_taskFieldMappings.emplace_back(std::forward<TaskFieldMappingsT>(value));
211 return *this;
212 }
214
216
225 inline const Aws::Vector<DataSourceToIndexFieldMapping>& GetCommentFieldMappings() const { return m_commentFieldMappings; }
226 inline bool CommentFieldMappingsHasBeenSet() const { return m_commentFieldMappingsHasBeenSet; }
227 template <typename CommentFieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
228 void SetCommentFieldMappings(CommentFieldMappingsT&& value) {
229 m_commentFieldMappingsHasBeenSet = true;
230 m_commentFieldMappings = std::forward<CommentFieldMappingsT>(value);
231 }
232 template <typename CommentFieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
233 BoxConfiguration& WithCommentFieldMappings(CommentFieldMappingsT&& value) {
234 SetCommentFieldMappings(std::forward<CommentFieldMappingsT>(value));
235 return *this;
236 }
237 template <typename CommentFieldMappingsT = DataSourceToIndexFieldMapping>
238 BoxConfiguration& AddCommentFieldMappings(CommentFieldMappingsT&& value) {
239 m_commentFieldMappingsHasBeenSet = true;
240 m_commentFieldMappings.emplace_back(std::forward<CommentFieldMappingsT>(value));
241 return *this;
242 }
244
246
255 inline const Aws::Vector<DataSourceToIndexFieldMapping>& GetWebLinkFieldMappings() const { return m_webLinkFieldMappings; }
256 inline bool WebLinkFieldMappingsHasBeenSet() const { return m_webLinkFieldMappingsHasBeenSet; }
257 template <typename WebLinkFieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
258 void SetWebLinkFieldMappings(WebLinkFieldMappingsT&& value) {
259 m_webLinkFieldMappingsHasBeenSet = true;
260 m_webLinkFieldMappings = std::forward<WebLinkFieldMappingsT>(value);
261 }
262 template <typename WebLinkFieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
263 BoxConfiguration& WithWebLinkFieldMappings(WebLinkFieldMappingsT&& value) {
264 SetWebLinkFieldMappings(std::forward<WebLinkFieldMappingsT>(value));
265 return *this;
266 }
267 template <typename WebLinkFieldMappingsT = DataSourceToIndexFieldMapping>
268 BoxConfiguration& AddWebLinkFieldMappings(WebLinkFieldMappingsT&& value) {
269 m_webLinkFieldMappingsHasBeenSet = true;
270 m_webLinkFieldMappings.emplace_back(std::forward<WebLinkFieldMappingsT>(value));
271 return *this;
272 }
274
276
284 inline const Aws::Vector<Aws::String>& GetInclusionPatterns() const { return m_inclusionPatterns; }
285 inline bool InclusionPatternsHasBeenSet() const { return m_inclusionPatternsHasBeenSet; }
286 template <typename InclusionPatternsT = Aws::Vector<Aws::String>>
287 void SetInclusionPatterns(InclusionPatternsT&& value) {
288 m_inclusionPatternsHasBeenSet = true;
289 m_inclusionPatterns = std::forward<InclusionPatternsT>(value);
290 }
291 template <typename InclusionPatternsT = Aws::Vector<Aws::String>>
292 BoxConfiguration& WithInclusionPatterns(InclusionPatternsT&& value) {
293 SetInclusionPatterns(std::forward<InclusionPatternsT>(value));
294 return *this;
295 }
296 template <typename InclusionPatternsT = Aws::String>
297 BoxConfiguration& AddInclusionPatterns(InclusionPatternsT&& value) {
298 m_inclusionPatternsHasBeenSet = true;
299 m_inclusionPatterns.emplace_back(std::forward<InclusionPatternsT>(value));
300 return *this;
301 }
303
305
313 inline const Aws::Vector<Aws::String>& GetExclusionPatterns() const { return m_exclusionPatterns; }
314 inline bool ExclusionPatternsHasBeenSet() const { return m_exclusionPatternsHasBeenSet; }
315 template <typename ExclusionPatternsT = Aws::Vector<Aws::String>>
316 void SetExclusionPatterns(ExclusionPatternsT&& value) {
317 m_exclusionPatternsHasBeenSet = true;
318 m_exclusionPatterns = std::forward<ExclusionPatternsT>(value);
319 }
320 template <typename ExclusionPatternsT = Aws::Vector<Aws::String>>
321 BoxConfiguration& WithExclusionPatterns(ExclusionPatternsT&& value) {
322 SetExclusionPatterns(std::forward<ExclusionPatternsT>(value));
323 return *this;
324 }
325 template <typename ExclusionPatternsT = Aws::String>
326 BoxConfiguration& AddExclusionPatterns(ExclusionPatternsT&& value) {
327 m_exclusionPatternsHasBeenSet = true;
328 m_exclusionPatterns.emplace_back(std::forward<ExclusionPatternsT>(value));
329 return *this;
330 }
332
334
340 inline const DataSourceVpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
341 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
342 template <typename VpcConfigurationT = DataSourceVpcConfiguration>
343 void SetVpcConfiguration(VpcConfigurationT&& value) {
344 m_vpcConfigurationHasBeenSet = true;
345 m_vpcConfiguration = std::forward<VpcConfigurationT>(value);
346 }
347 template <typename VpcConfigurationT = DataSourceVpcConfiguration>
348 BoxConfiguration& WithVpcConfiguration(VpcConfigurationT&& value) {
349 SetVpcConfiguration(std::forward<VpcConfigurationT>(value));
350 return *this;
351 }
353 private:
354 Aws::String m_enterpriseId;
355 bool m_enterpriseIdHasBeenSet = false;
356
357 Aws::String m_secretArn;
358 bool m_secretArnHasBeenSet = false;
359
360 bool m_useChangeLog{false};
361 bool m_useChangeLogHasBeenSet = false;
362
363 bool m_crawlComments{false};
364 bool m_crawlCommentsHasBeenSet = false;
365
366 bool m_crawlTasks{false};
367 bool m_crawlTasksHasBeenSet = false;
368
369 bool m_crawlWebLinks{false};
370 bool m_crawlWebLinksHasBeenSet = false;
371
373 bool m_fileFieldMappingsHasBeenSet = false;
374
376 bool m_taskFieldMappingsHasBeenSet = false;
377
378 Aws::Vector<DataSourceToIndexFieldMapping> m_commentFieldMappings;
379 bool m_commentFieldMappingsHasBeenSet = false;
380
381 Aws::Vector<DataSourceToIndexFieldMapping> m_webLinkFieldMappings;
382 bool m_webLinkFieldMappingsHasBeenSet = false;
383
384 Aws::Vector<Aws::String> m_inclusionPatterns;
385 bool m_inclusionPatternsHasBeenSet = false;
386
387 Aws::Vector<Aws::String> m_exclusionPatterns;
388 bool m_exclusionPatternsHasBeenSet = false;
389
390 DataSourceVpcConfiguration m_vpcConfiguration;
391 bool m_vpcConfigurationHasBeenSet = false;
392};
393
394} // namespace Model
395} // namespace kendra
396} // namespace Aws
BoxConfiguration & WithCommentFieldMappings(CommentFieldMappingsT &&value)
void SetExclusionPatterns(ExclusionPatternsT &&value)
void SetTaskFieldMappings(TaskFieldMappingsT &&value)
BoxConfiguration & WithCrawlTasks(bool value)
BoxConfiguration & WithFileFieldMappings(FileFieldMappingsT &&value)
BoxConfiguration & WithTaskFieldMappings(TaskFieldMappingsT &&value)
BoxConfiguration & AddFileFieldMappings(FileFieldMappingsT &&value)
const Aws::Vector< DataSourceToIndexFieldMapping > & GetTaskFieldMappings() const
BoxConfiguration & AddTaskFieldMappings(TaskFieldMappingsT &&value)
BoxConfiguration & AddCommentFieldMappings(CommentFieldMappingsT &&value)
AWS_KENDRA_API BoxConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
BoxConfiguration & AddInclusionPatterns(InclusionPatternsT &&value)
void SetVpcConfiguration(VpcConfigurationT &&value)
BoxConfiguration & WithExclusionPatterns(ExclusionPatternsT &&value)
BoxConfiguration & WithCrawlComments(bool value)
BoxConfiguration & WithWebLinkFieldMappings(WebLinkFieldMappingsT &&value)
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< DataSourceToIndexFieldMapping > & GetFileFieldMappings() const
const Aws::Vector< DataSourceToIndexFieldMapping > & GetWebLinkFieldMappings() const
const Aws::Vector< Aws::String > & GetExclusionPatterns() const
void SetInclusionPatterns(InclusionPatternsT &&value)
const Aws::Vector< Aws::String > & GetInclusionPatterns() const
AWS_KENDRA_API BoxConfiguration(Aws::Utils::Json::JsonView jsonValue)
BoxConfiguration & WithCrawlWebLinks(bool value)
void SetSecretArn(SecretArnT &&value)
const DataSourceVpcConfiguration & GetVpcConfiguration() const
BoxConfiguration & WithInclusionPatterns(InclusionPatternsT &&value)
void SetCommentFieldMappings(CommentFieldMappingsT &&value)
BoxConfiguration & WithEnterpriseId(EnterpriseIdT &&value)
const Aws::String & GetEnterpriseId() const
BoxConfiguration & WithVpcConfiguration(VpcConfigurationT &&value)
void SetFileFieldMappings(FileFieldMappingsT &&value)
const Aws::Vector< DataSourceToIndexFieldMapping > & GetCommentFieldMappings() const
BoxConfiguration & WithSecretArn(SecretArnT &&value)
BoxConfiguration & AddWebLinkFieldMappings(WebLinkFieldMappingsT &&value)
void SetEnterpriseId(EnterpriseIdT &&value)
const Aws::String & GetSecretArn() const
AWS_KENDRA_API BoxConfiguration()=default
BoxConfiguration & WithUseChangeLog(bool value)
BoxConfiguration & AddExclusionPatterns(ExclusionPatternsT &&value)
void SetWebLinkFieldMappings(WebLinkFieldMappingsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue