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>
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>
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>
91 inline void SetUseChangeLog(
bool value) { m_useChangeLogHasBeenSet =
true; m_useChangeLog = value; }
101 inline void SetCrawlComments(
bool value) { m_crawlCommentsHasBeenSet =
true; m_crawlComments = value; }
111 inline void SetCrawlTasks(
bool value) { m_crawlTasksHasBeenSet =
true; m_crawlTasks = value; }
121 inline void SetCrawlWebLinks(
bool value) { m_crawlWebLinksHasBeenSet =
true; m_crawlWebLinks = value; }
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>>
141 template<
typename FileFieldMappingsT = DataSourceToIndexFieldMapping>
142 BoxConfiguration&
AddFileFieldMappings(FileFieldMappingsT&& value) { m_fileFieldMappingsHasBeenSet =
true; m_fileFieldMappings.emplace_back(std::forward<FileFieldMappingsT>(value));
return *
this; }
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>>
161 template<
typename TaskFieldMappingsT = DataSourceToIndexFieldMapping>
162 BoxConfiguration&
AddTaskFieldMappings(TaskFieldMappingsT&& value) { m_taskFieldMappingsHasBeenSet =
true; m_taskFieldMappings.emplace_back(std::forward<TaskFieldMappingsT>(value));
return *
this; }
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>>
181 template<
typename CommentFieldMappingsT = DataSourceToIndexFieldMapping>
182 BoxConfiguration&
AddCommentFieldMappings(CommentFieldMappingsT&& value) { m_commentFieldMappingsHasBeenSet =
true; m_commentFieldMappings.emplace_back(std::forward<CommentFieldMappingsT>(value));
return *
this; }
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>>
201 template<
typename WebLinkFieldMappingsT = DataSourceToIndexFieldMapping>
202 BoxConfiguration&
AddWebLinkFieldMappings(WebLinkFieldMappingsT&& value) { m_webLinkFieldMappingsHasBeenSet =
true; m_webLinkFieldMappings.emplace_back(std::forward<WebLinkFieldMappingsT>(value));
return *
this; }
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>>
220 template<
typename InclusionPatternsT = Aws::String>
221 BoxConfiguration&
AddInclusionPatterns(InclusionPatternsT&& value) { m_inclusionPatternsHasBeenSet =
true; m_inclusionPatterns.emplace_back(std::forward<InclusionPatternsT>(value));
return *
this; }
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>>
239 template<
typename ExclusionPatternsT = Aws::String>
240 BoxConfiguration&
AddExclusionPatterns(ExclusionPatternsT&& value) { m_exclusionPatternsHasBeenSet =
true; m_exclusionPatterns.emplace_back(std::forward<ExclusionPatternsT>(value));
return *
this; }
252 template<
typename VpcConfigurationT = DataSourceVpcConfiguration>
253 void SetVpcConfiguration(VpcConfigurationT&& value) { m_vpcConfigurationHasBeenSet =
true; m_vpcConfiguration = std::forward<VpcConfigurationT>(value); }
254 template<
typename VpcConfigurationT = DataSourceVpcConfiguration>
260 bool m_enterpriseIdHasBeenSet =
false;
263 bool m_secretArnHasBeenSet =
false;
265 bool m_useChangeLog{
false};
266 bool m_useChangeLogHasBeenSet =
false;
268 bool m_crawlComments{
false};
269 bool m_crawlCommentsHasBeenSet =
false;
271 bool m_crawlTasks{
false};
272 bool m_crawlTasksHasBeenSet =
false;
274 bool m_crawlWebLinks{
false};
275 bool m_crawlWebLinksHasBeenSet =
false;
278 bool m_fileFieldMappingsHasBeenSet =
false;
281 bool m_taskFieldMappingsHasBeenSet =
false;
284 bool m_commentFieldMappingsHasBeenSet =
false;
287 bool m_webLinkFieldMappingsHasBeenSet =
false;
290 bool m_inclusionPatternsHasBeenSet =
false;
293 bool m_exclusionPatternsHasBeenSet =
false;
295 DataSourceVpcConfiguration m_vpcConfiguration;
296 bool m_vpcConfigurationHasBeenSet =
false;
BoxConfiguration & WithCommentFieldMappings(CommentFieldMappingsT &&value)
bool TaskFieldMappingsHasBeenSet() const
bool InclusionPatternsHasBeenSet() const
void SetExclusionPatterns(ExclusionPatternsT &&value)
void SetTaskFieldMappings(TaskFieldMappingsT &&value)
BoxConfiguration & WithCrawlTasks(bool value)
void SetUseChangeLog(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)
bool VpcConfigurationHasBeenSet() const
AWS_KENDRA_API BoxConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCrawlWebLinks(bool value)
bool GetCrawlWebLinks() const
bool CrawlWebLinksHasBeenSet() const
BoxConfiguration & AddInclusionPatterns(InclusionPatternsT &&value)
void SetVpcConfiguration(VpcConfigurationT &&value)
BoxConfiguration & WithExclusionPatterns(ExclusionPatternsT &&value)
BoxConfiguration & WithCrawlComments(bool value)
void SetCrawlTasks(bool value)
bool GetCrawlTasks() const
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
bool GetCrawlComments() const
bool SecretArnHasBeenSet() 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)
bool GetUseChangeLog() const
const DataSourceVpcConfiguration & GetVpcConfiguration() const
bool CrawlCommentsHasBeenSet() const
BoxConfiguration & WithInclusionPatterns(InclusionPatternsT &&value)
bool CommentFieldMappingsHasBeenSet() const
bool WebLinkFieldMappingsHasBeenSet() const
bool EnterpriseIdHasBeenSet() const
void SetCommentFieldMappings(CommentFieldMappingsT &&value)
BoxConfiguration & WithEnterpriseId(EnterpriseIdT &&value)
const Aws::String & GetEnterpriseId() const
BoxConfiguration & WithVpcConfiguration(VpcConfigurationT &&value)
void SetCrawlComments(bool value)
void SetFileFieldMappings(FileFieldMappingsT &&value)
const Aws::Vector< DataSourceToIndexFieldMapping > & GetCommentFieldMappings() const
bool ExclusionPatternsHasBeenSet() const
bool FileFieldMappingsHasBeenSet() const
BoxConfiguration & WithSecretArn(SecretArnT &&value)
BoxConfiguration & AddWebLinkFieldMappings(WebLinkFieldMappingsT &&value)
bool CrawlTasksHasBeenSet() const
void SetEnterpriseId(EnterpriseIdT &&value)
const Aws::String & GetSecretArn() const
AWS_KENDRA_API BoxConfiguration()=default
bool UseChangeLogHasBeenSet() const
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