/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides configuration information for a data source to index documents in an
* Amazon S3 bucket.See Also:
AWS
* API Reference
The name of the bucket that contains the documents.
*/ inline const Aws::String& GetBucketName() const{ return m_bucketName; } /** *The name of the bucket that contains the documents.
*/ inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; } /** *The name of the bucket that contains the documents.
*/ inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; } /** *The name of the bucket that contains the documents.
*/ inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); } /** *The name of the bucket that contains the documents.
*/ inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); } /** *The name of the bucket that contains the documents.
*/ inline S3DataSourceConfiguration& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;} /** *The name of the bucket that contains the documents.
*/ inline S3DataSourceConfiguration& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;} /** *The name of the bucket that contains the documents.
*/ inline S3DataSourceConfiguration& WithBucketName(const char* value) { SetBucketName(value); return *this;} /** *A list of S3 prefixes for the documents that should be included in the * index.
*/ inline const Aws::VectorA list of S3 prefixes for the documents that should be included in the * index.
*/ inline bool InclusionPrefixesHasBeenSet() const { return m_inclusionPrefixesHasBeenSet; } /** *A list of S3 prefixes for the documents that should be included in the * index.
*/ inline void SetInclusionPrefixes(const Aws::VectorA list of S3 prefixes for the documents that should be included in the * index.
*/ inline void SetInclusionPrefixes(Aws::VectorA list of S3 prefixes for the documents that should be included in the * index.
*/ inline S3DataSourceConfiguration& WithInclusionPrefixes(const Aws::VectorA list of S3 prefixes for the documents that should be included in the * index.
*/ inline S3DataSourceConfiguration& WithInclusionPrefixes(Aws::VectorA list of S3 prefixes for the documents that should be included in the * index.
*/ inline S3DataSourceConfiguration& AddInclusionPrefixes(const Aws::String& value) { m_inclusionPrefixesHasBeenSet = true; m_inclusionPrefixes.push_back(value); return *this; } /** *A list of S3 prefixes for the documents that should be included in the * index.
*/ inline S3DataSourceConfiguration& AddInclusionPrefixes(Aws::String&& value) { m_inclusionPrefixesHasBeenSet = true; m_inclusionPrefixes.push_back(std::move(value)); return *this; } /** *A list of S3 prefixes for the documents that should be included in the * index.
*/ inline S3DataSourceConfiguration& AddInclusionPrefixes(const char* value) { m_inclusionPrefixesHasBeenSet = true; m_inclusionPrefixes.push_back(value); return *this; } /** *A list of glob patterns for documents that should not be indexed. If a * document that matches an inclusion prefix also matches an exclusion pattern, the * document is not indexed.
For more information about glob patterns, see glob (programming) * in Wikipedia.
*/ inline const Aws::VectorA list of glob patterns for documents that should not be indexed. If a * document that matches an inclusion prefix also matches an exclusion pattern, the * document is not indexed.
For more information about glob patterns, see glob (programming) * in Wikipedia.
*/ inline bool ExclusionPatternsHasBeenSet() const { return m_exclusionPatternsHasBeenSet; } /** *A list of glob patterns for documents that should not be indexed. If a * document that matches an inclusion prefix also matches an exclusion pattern, the * document is not indexed.
For more information about glob patterns, see glob (programming) * in Wikipedia.
*/ inline void SetExclusionPatterns(const Aws::VectorA list of glob patterns for documents that should not be indexed. If a * document that matches an inclusion prefix also matches an exclusion pattern, the * document is not indexed.
For more information about glob patterns, see glob (programming) * in Wikipedia.
*/ inline void SetExclusionPatterns(Aws::VectorA list of glob patterns for documents that should not be indexed. If a * document that matches an inclusion prefix also matches an exclusion pattern, the * document is not indexed.
For more information about glob patterns, see glob (programming) * in Wikipedia.
*/ inline S3DataSourceConfiguration& WithExclusionPatterns(const Aws::VectorA list of glob patterns for documents that should not be indexed. If a * document that matches an inclusion prefix also matches an exclusion pattern, the * document is not indexed.
For more information about glob patterns, see glob (programming) * in Wikipedia.
*/ inline S3DataSourceConfiguration& WithExclusionPatterns(Aws::VectorA list of glob patterns for documents that should not be indexed. If a * document that matches an inclusion prefix also matches an exclusion pattern, the * document is not indexed.
For more information about glob patterns, see glob (programming) * in Wikipedia.
*/ inline S3DataSourceConfiguration& AddExclusionPatterns(const Aws::String& value) { m_exclusionPatternsHasBeenSet = true; m_exclusionPatterns.push_back(value); return *this; } /** *A list of glob patterns for documents that should not be indexed. If a * document that matches an inclusion prefix also matches an exclusion pattern, the * document is not indexed.
For more information about glob patterns, see glob (programming) * in Wikipedia.
*/ inline S3DataSourceConfiguration& AddExclusionPatterns(Aws::String&& value) { m_exclusionPatternsHasBeenSet = true; m_exclusionPatterns.push_back(std::move(value)); return *this; } /** *A list of glob patterns for documents that should not be indexed. If a * document that matches an inclusion prefix also matches an exclusion pattern, the * document is not indexed.
For more information about glob patterns, see glob (programming) * in Wikipedia.
*/ inline S3DataSourceConfiguration& AddExclusionPatterns(const char* value) { m_exclusionPatternsHasBeenSet = true; m_exclusionPatterns.push_back(value); return *this; } inline const DocumentsMetadataConfiguration& GetDocumentsMetadataConfiguration() const{ return m_documentsMetadataConfiguration; } inline bool DocumentsMetadataConfigurationHasBeenSet() const { return m_documentsMetadataConfigurationHasBeenSet; } inline void SetDocumentsMetadataConfiguration(const DocumentsMetadataConfiguration& value) { m_documentsMetadataConfigurationHasBeenSet = true; m_documentsMetadataConfiguration = value; } inline void SetDocumentsMetadataConfiguration(DocumentsMetadataConfiguration&& value) { m_documentsMetadataConfigurationHasBeenSet = true; m_documentsMetadataConfiguration = std::move(value); } inline S3DataSourceConfiguration& WithDocumentsMetadataConfiguration(const DocumentsMetadataConfiguration& value) { SetDocumentsMetadataConfiguration(value); return *this;} inline S3DataSourceConfiguration& WithDocumentsMetadataConfiguration(DocumentsMetadataConfiguration&& value) { SetDocumentsMetadataConfiguration(std::move(value)); return *this;} /** *Provides the path to the S3 bucket that contains the user context filtering * files for the data source.
*/ inline const AccessControlListConfiguration& GetAccessControlListConfiguration() const{ return m_accessControlListConfiguration; } /** *Provides the path to the S3 bucket that contains the user context filtering * files for the data source.
*/ inline bool AccessControlListConfigurationHasBeenSet() const { return m_accessControlListConfigurationHasBeenSet; } /** *Provides the path to the S3 bucket that contains the user context filtering * files for the data source.
*/ inline void SetAccessControlListConfiguration(const AccessControlListConfiguration& value) { m_accessControlListConfigurationHasBeenSet = true; m_accessControlListConfiguration = value; } /** *Provides the path to the S3 bucket that contains the user context filtering * files for the data source.
*/ inline void SetAccessControlListConfiguration(AccessControlListConfiguration&& value) { m_accessControlListConfigurationHasBeenSet = true; m_accessControlListConfiguration = std::move(value); } /** *Provides the path to the S3 bucket that contains the user context filtering * files for the data source.
*/ inline S3DataSourceConfiguration& WithAccessControlListConfiguration(const AccessControlListConfiguration& value) { SetAccessControlListConfiguration(value); return *this;} /** *Provides the path to the S3 bucket that contains the user context filtering * files for the data source.
*/ inline S3DataSourceConfiguration& WithAccessControlListConfiguration(AccessControlListConfiguration&& value) { SetAccessControlListConfiguration(std::move(value)); return *this;} private: Aws::String m_bucketName; bool m_bucketNameHasBeenSet; Aws::Vector