AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
BoxConfiguration.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kendra/model/DataSourceVpcConfiguration.h>
11#include <aws/kendra/model/DataSourceToIndexFieldMapping.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 kendra
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_KENDRA_API BoxConfiguration() = default;
41 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const Aws::String& GetEnterpriseId() const { return m_enterpriseId; }
51 inline bool EnterpriseIdHasBeenSet() const { return m_enterpriseIdHasBeenSet; }
52 template<typename EnterpriseIdT = Aws::String>
53 void SetEnterpriseId(EnterpriseIdT&& value) { m_enterpriseIdHasBeenSet = true; m_enterpriseId = std::forward<EnterpriseIdT>(value); }
54 template<typename EnterpriseIdT = Aws::String>
55 BoxConfiguration& WithEnterpriseId(EnterpriseIdT&& value) { SetEnterpriseId(std::forward<EnterpriseIdT>(value)); return *this;}
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) { m_secretArnHasBeenSet = true; m_secretArn = std::forward<SecretArnT>(value); }
78 template<typename SecretArnT = Aws::String>
79 BoxConfiguration& WithSecretArn(SecretArnT&& value) { SetSecretArn(std::forward<SecretArnT>(value)); return *this;}
81
83
89 inline bool GetUseChangeLog() const { return m_useChangeLog; }
90 inline bool UseChangeLogHasBeenSet() const { return m_useChangeLogHasBeenSet; }
91 inline void SetUseChangeLog(bool value) { m_useChangeLogHasBeenSet = true; m_useChangeLog = value; }
92 inline BoxConfiguration& WithUseChangeLog(bool value) { SetUseChangeLog(value); return *this;}
94
96
99 inline bool GetCrawlComments() const { return m_crawlComments; }
100 inline bool CrawlCommentsHasBeenSet() const { return m_crawlCommentsHasBeenSet; }
101 inline void SetCrawlComments(bool value) { m_crawlCommentsHasBeenSet = true; m_crawlComments = value; }
102 inline BoxConfiguration& WithCrawlComments(bool value) { SetCrawlComments(value); return *this;}
104
106
109 inline bool GetCrawlTasks() const { return m_crawlTasks; }
110 inline bool CrawlTasksHasBeenSet() const { return m_crawlTasksHasBeenSet; }
111 inline void SetCrawlTasks(bool value) { m_crawlTasksHasBeenSet = true; m_crawlTasks = value; }
112 inline BoxConfiguration& WithCrawlTasks(bool value) { SetCrawlTasks(value); return *this;}
114
116
119 inline bool GetCrawlWebLinks() const { return m_crawlWebLinks; }
120 inline bool CrawlWebLinksHasBeenSet() const { return m_crawlWebLinksHasBeenSet; }
121 inline void SetCrawlWebLinks(bool value) { m_crawlWebLinksHasBeenSet = true; m_crawlWebLinks = value; }
122 inline BoxConfiguration& WithCrawlWebLinks(bool value) { SetCrawlWebLinks(value); return *this;}
124
126
135 inline const Aws::Vector<DataSourceToIndexFieldMapping>& GetFileFieldMappings() const { return m_fileFieldMappings; }
136 inline bool FileFieldMappingsHasBeenSet() const { return m_fileFieldMappingsHasBeenSet; }
137 template<typename FileFieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
138 void SetFileFieldMappings(FileFieldMappingsT&& value) { m_fileFieldMappingsHasBeenSet = true; m_fileFieldMappings = std::forward<FileFieldMappingsT>(value); }
139 template<typename FileFieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
140 BoxConfiguration& WithFileFieldMappings(FileFieldMappingsT&& value) { SetFileFieldMappings(std::forward<FileFieldMappingsT>(value)); return *this;}
141 template<typename FileFieldMappingsT = DataSourceToIndexFieldMapping>
142 BoxConfiguration& AddFileFieldMappings(FileFieldMappingsT&& value) { m_fileFieldMappingsHasBeenSet = true; m_fileFieldMappings.emplace_back(std::forward<FileFieldMappingsT>(value)); return *this; }
144
146
155 inline const Aws::Vector<DataSourceToIndexFieldMapping>& GetTaskFieldMappings() const { return m_taskFieldMappings; }
156 inline bool TaskFieldMappingsHasBeenSet() const { return m_taskFieldMappingsHasBeenSet; }
157 template<typename TaskFieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
158 void SetTaskFieldMappings(TaskFieldMappingsT&& value) { m_taskFieldMappingsHasBeenSet = true; m_taskFieldMappings = std::forward<TaskFieldMappingsT>(value); }
159 template<typename TaskFieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
160 BoxConfiguration& WithTaskFieldMappings(TaskFieldMappingsT&& value) { SetTaskFieldMappings(std::forward<TaskFieldMappingsT>(value)); return *this;}
161 template<typename TaskFieldMappingsT = DataSourceToIndexFieldMapping>
162 BoxConfiguration& AddTaskFieldMappings(TaskFieldMappingsT&& value) { m_taskFieldMappingsHasBeenSet = true; m_taskFieldMappings.emplace_back(std::forward<TaskFieldMappingsT>(value)); return *this; }
164
166
175 inline const Aws::Vector<DataSourceToIndexFieldMapping>& GetCommentFieldMappings() const { return m_commentFieldMappings; }
176 inline bool CommentFieldMappingsHasBeenSet() const { return m_commentFieldMappingsHasBeenSet; }
177 template<typename CommentFieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
178 void SetCommentFieldMappings(CommentFieldMappingsT&& value) { m_commentFieldMappingsHasBeenSet = true; m_commentFieldMappings = std::forward<CommentFieldMappingsT>(value); }
179 template<typename CommentFieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
180 BoxConfiguration& WithCommentFieldMappings(CommentFieldMappingsT&& value) { SetCommentFieldMappings(std::forward<CommentFieldMappingsT>(value)); return *this;}
181 template<typename CommentFieldMappingsT = DataSourceToIndexFieldMapping>
182 BoxConfiguration& AddCommentFieldMappings(CommentFieldMappingsT&& value) { m_commentFieldMappingsHasBeenSet = true; m_commentFieldMappings.emplace_back(std::forward<CommentFieldMappingsT>(value)); return *this; }
184
186
195 inline const Aws::Vector<DataSourceToIndexFieldMapping>& GetWebLinkFieldMappings() const { return m_webLinkFieldMappings; }
196 inline bool WebLinkFieldMappingsHasBeenSet() const { return m_webLinkFieldMappingsHasBeenSet; }
197 template<typename WebLinkFieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
198 void SetWebLinkFieldMappings(WebLinkFieldMappingsT&& value) { m_webLinkFieldMappingsHasBeenSet = true; m_webLinkFieldMappings = std::forward<WebLinkFieldMappingsT>(value); }
199 template<typename WebLinkFieldMappingsT = Aws::Vector<DataSourceToIndexFieldMapping>>
200 BoxConfiguration& WithWebLinkFieldMappings(WebLinkFieldMappingsT&& value) { SetWebLinkFieldMappings(std::forward<WebLinkFieldMappingsT>(value)); return *this;}
201 template<typename WebLinkFieldMappingsT = DataSourceToIndexFieldMapping>
202 BoxConfiguration& AddWebLinkFieldMappings(WebLinkFieldMappingsT&& value) { m_webLinkFieldMappingsHasBeenSet = true; m_webLinkFieldMappings.emplace_back(std::forward<WebLinkFieldMappingsT>(value)); return *this; }
204
206
214 inline const Aws::Vector<Aws::String>& GetInclusionPatterns() const { return m_inclusionPatterns; }
215 inline bool InclusionPatternsHasBeenSet() const { return m_inclusionPatternsHasBeenSet; }
216 template<typename InclusionPatternsT = Aws::Vector<Aws::String>>
217 void SetInclusionPatterns(InclusionPatternsT&& value) { m_inclusionPatternsHasBeenSet = true; m_inclusionPatterns = std::forward<InclusionPatternsT>(value); }
218 template<typename InclusionPatternsT = Aws::Vector<Aws::String>>
219 BoxConfiguration& WithInclusionPatterns(InclusionPatternsT&& value) { SetInclusionPatterns(std::forward<InclusionPatternsT>(value)); return *this;}
220 template<typename InclusionPatternsT = Aws::String>
221 BoxConfiguration& AddInclusionPatterns(InclusionPatternsT&& value) { m_inclusionPatternsHasBeenSet = true; m_inclusionPatterns.emplace_back(std::forward<InclusionPatternsT>(value)); return *this; }
223
225
233 inline const Aws::Vector<Aws::String>& GetExclusionPatterns() const { return m_exclusionPatterns; }
234 inline bool ExclusionPatternsHasBeenSet() const { return m_exclusionPatternsHasBeenSet; }
235 template<typename ExclusionPatternsT = Aws::Vector<Aws::String>>
236 void SetExclusionPatterns(ExclusionPatternsT&& value) { m_exclusionPatternsHasBeenSet = true; m_exclusionPatterns = std::forward<ExclusionPatternsT>(value); }
237 template<typename ExclusionPatternsT = Aws::Vector<Aws::String>>
238 BoxConfiguration& WithExclusionPatterns(ExclusionPatternsT&& value) { SetExclusionPatterns(std::forward<ExclusionPatternsT>(value)); return *this;}
239 template<typename ExclusionPatternsT = Aws::String>
240 BoxConfiguration& AddExclusionPatterns(ExclusionPatternsT&& value) { m_exclusionPatternsHasBeenSet = true; m_exclusionPatterns.emplace_back(std::forward<ExclusionPatternsT>(value)); return *this; }
242
244
250 inline const DataSourceVpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
251 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
252 template<typename VpcConfigurationT = DataSourceVpcConfiguration>
253 void SetVpcConfiguration(VpcConfigurationT&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::forward<VpcConfigurationT>(value); }
254 template<typename VpcConfigurationT = DataSourceVpcConfiguration>
255 BoxConfiguration& WithVpcConfiguration(VpcConfigurationT&& value) { SetVpcConfiguration(std::forward<VpcConfigurationT>(value)); return *this;}
257 private:
258
259 Aws::String m_enterpriseId;
260 bool m_enterpriseIdHasBeenSet = false;
261
262 Aws::String m_secretArn;
263 bool m_secretArnHasBeenSet = false;
264
265 bool m_useChangeLog{false};
266 bool m_useChangeLogHasBeenSet = false;
267
268 bool m_crawlComments{false};
269 bool m_crawlCommentsHasBeenSet = false;
270
271 bool m_crawlTasks{false};
272 bool m_crawlTasksHasBeenSet = false;
273
274 bool m_crawlWebLinks{false};
275 bool m_crawlWebLinksHasBeenSet = false;
276
278 bool m_fileFieldMappingsHasBeenSet = false;
279
281 bool m_taskFieldMappingsHasBeenSet = false;
282
283 Aws::Vector<DataSourceToIndexFieldMapping> m_commentFieldMappings;
284 bool m_commentFieldMappingsHasBeenSet = false;
285
286 Aws::Vector<DataSourceToIndexFieldMapping> m_webLinkFieldMappings;
287 bool m_webLinkFieldMappingsHasBeenSet = false;
288
289 Aws::Vector<Aws::String> m_inclusionPatterns;
290 bool m_inclusionPatternsHasBeenSet = false;
291
292 Aws::Vector<Aws::String> m_exclusionPatterns;
293 bool m_exclusionPatternsHasBeenSet = false;
294
295 DataSourceVpcConfiguration m_vpcConfiguration;
296 bool m_vpcConfigurationHasBeenSet = false;
297 };
298
299} // namespace Model
300} // namespace kendra
301} // 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