/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace kendra { namespace Model { /** *

Provides configuration information for data sources that connect to * OneDrive.

See Also:

AWS * API Reference

*/ class AWS_KENDRA_API OneDriveConfiguration { public: OneDriveConfiguration(); OneDriveConfiguration(Aws::Utils::Json::JsonView jsonValue); OneDriveConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

Tha Azure Active Directory domain of the organization.

*/ inline const Aws::String& GetTenantDomain() const{ return m_tenantDomain; } /** *

Tha Azure Active Directory domain of the organization.

*/ inline bool TenantDomainHasBeenSet() const { return m_tenantDomainHasBeenSet; } /** *

Tha Azure Active Directory domain of the organization.

*/ inline void SetTenantDomain(const Aws::String& value) { m_tenantDomainHasBeenSet = true; m_tenantDomain = value; } /** *

Tha Azure Active Directory domain of the organization.

*/ inline void SetTenantDomain(Aws::String&& value) { m_tenantDomainHasBeenSet = true; m_tenantDomain = std::move(value); } /** *

Tha Azure Active Directory domain of the organization.

*/ inline void SetTenantDomain(const char* value) { m_tenantDomainHasBeenSet = true; m_tenantDomain.assign(value); } /** *

Tha Azure Active Directory domain of the organization.

*/ inline OneDriveConfiguration& WithTenantDomain(const Aws::String& value) { SetTenantDomain(value); return *this;} /** *

Tha Azure Active Directory domain of the organization.

*/ inline OneDriveConfiguration& WithTenantDomain(Aws::String&& value) { SetTenantDomain(std::move(value)); return *this;} /** *

Tha Azure Active Directory domain of the organization.

*/ inline OneDriveConfiguration& WithTenantDomain(const char* value) { SetTenantDomain(value); return *this;} /** *

The Amazon Resource Name (ARN) of an AWS Secrets Manager secret that contains * the user name and password to connect to OneDrive. The user namd should be the * application ID for the OneDrive application, and the password is the application * key for the OneDrive application.

*/ inline const Aws::String& GetSecretArn() const{ return m_secretArn; } /** *

The Amazon Resource Name (ARN) of an AWS Secrets Manager secret that contains * the user name and password to connect to OneDrive. The user namd should be the * application ID for the OneDrive application, and the password is the application * key for the OneDrive application.

*/ inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of an AWS Secrets Manager secret that contains * the user name and password to connect to OneDrive. The user namd should be the * application ID for the OneDrive application, and the password is the application * key for the OneDrive application.

*/ inline void SetSecretArn(const Aws::String& value) { m_secretArnHasBeenSet = true; m_secretArn = value; } /** *

The Amazon Resource Name (ARN) of an AWS Secrets Manager secret that contains * the user name and password to connect to OneDrive. The user namd should be the * application ID for the OneDrive application, and the password is the application * key for the OneDrive application.

*/ inline void SetSecretArn(Aws::String&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of an AWS Secrets Manager secret that contains * the user name and password to connect to OneDrive. The user namd should be the * application ID for the OneDrive application, and the password is the application * key for the OneDrive application.

*/ inline void SetSecretArn(const char* value) { m_secretArnHasBeenSet = true; m_secretArn.assign(value); } /** *

The Amazon Resource Name (ARN) of an AWS Secrets Manager secret that contains * the user name and password to connect to OneDrive. The user namd should be the * application ID for the OneDrive application, and the password is the application * key for the OneDrive application.

*/ inline OneDriveConfiguration& WithSecretArn(const Aws::String& value) { SetSecretArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of an AWS Secrets Manager secret that contains * the user name and password to connect to OneDrive. The user namd should be the * application ID for the OneDrive application, and the password is the application * key for the OneDrive application.

*/ inline OneDriveConfiguration& WithSecretArn(Aws::String&& value) { SetSecretArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of an AWS Secrets Manager secret that contains * the user name and password to connect to OneDrive. The user namd should be the * application ID for the OneDrive application, and the password is the application * key for the OneDrive application.

*/ inline OneDriveConfiguration& WithSecretArn(const char* value) { SetSecretArn(value); return *this;} /** *

A list of user accounts whose documents should be indexed.

*/ inline const OneDriveUsers& GetOneDriveUsers() const{ return m_oneDriveUsers; } /** *

A list of user accounts whose documents should be indexed.

*/ inline bool OneDriveUsersHasBeenSet() const { return m_oneDriveUsersHasBeenSet; } /** *

A list of user accounts whose documents should be indexed.

*/ inline void SetOneDriveUsers(const OneDriveUsers& value) { m_oneDriveUsersHasBeenSet = true; m_oneDriveUsers = value; } /** *

A list of user accounts whose documents should be indexed.

*/ inline void SetOneDriveUsers(OneDriveUsers&& value) { m_oneDriveUsersHasBeenSet = true; m_oneDriveUsers = std::move(value); } /** *

A list of user accounts whose documents should be indexed.

*/ inline OneDriveConfiguration& WithOneDriveUsers(const OneDriveUsers& value) { SetOneDriveUsers(value); return *this;} /** *

A list of user accounts whose documents should be indexed.

*/ inline OneDriveConfiguration& WithOneDriveUsers(OneDriveUsers&& value) { SetOneDriveUsers(std::move(value)); return *this;} /** *

A list of regular expression patterns. Documents that match the pattern are * included in the index. Documents that don't match the pattern are excluded from * the index. If a document matches both an inclusion pattern and an exclusion * pattern, the document is not included in the index.

The exclusion * pattern is applied to the file name.

*/ inline const Aws::Vector& GetInclusionPatterns() const{ return m_inclusionPatterns; } /** *

A list of regular expression patterns. Documents that match the pattern are * included in the index. Documents that don't match the pattern are excluded from * the index. If a document matches both an inclusion pattern and an exclusion * pattern, the document is not included in the index.

The exclusion * pattern is applied to the file name.

*/ inline bool InclusionPatternsHasBeenSet() const { return m_inclusionPatternsHasBeenSet; } /** *

A list of regular expression patterns. Documents that match the pattern are * included in the index. Documents that don't match the pattern are excluded from * the index. If a document matches both an inclusion pattern and an exclusion * pattern, the document is not included in the index.

The exclusion * pattern is applied to the file name.

*/ inline void SetInclusionPatterns(const Aws::Vector& value) { m_inclusionPatternsHasBeenSet = true; m_inclusionPatterns = value; } /** *

A list of regular expression patterns. Documents that match the pattern are * included in the index. Documents that don't match the pattern are excluded from * the index. If a document matches both an inclusion pattern and an exclusion * pattern, the document is not included in the index.

The exclusion * pattern is applied to the file name.

*/ inline void SetInclusionPatterns(Aws::Vector&& value) { m_inclusionPatternsHasBeenSet = true; m_inclusionPatterns = std::move(value); } /** *

A list of regular expression patterns. Documents that match the pattern are * included in the index. Documents that don't match the pattern are excluded from * the index. If a document matches both an inclusion pattern and an exclusion * pattern, the document is not included in the index.

The exclusion * pattern is applied to the file name.

*/ inline OneDriveConfiguration& WithInclusionPatterns(const Aws::Vector& value) { SetInclusionPatterns(value); return *this;} /** *

A list of regular expression patterns. Documents that match the pattern are * included in the index. Documents that don't match the pattern are excluded from * the index. If a document matches both an inclusion pattern and an exclusion * pattern, the document is not included in the index.

The exclusion * pattern is applied to the file name.

*/ inline OneDriveConfiguration& WithInclusionPatterns(Aws::Vector&& value) { SetInclusionPatterns(std::move(value)); return *this;} /** *

A list of regular expression patterns. Documents that match the pattern are * included in the index. Documents that don't match the pattern are excluded from * the index. If a document matches both an inclusion pattern and an exclusion * pattern, the document is not included in the index.

The exclusion * pattern is applied to the file name.

*/ inline OneDriveConfiguration& AddInclusionPatterns(const Aws::String& value) { m_inclusionPatternsHasBeenSet = true; m_inclusionPatterns.push_back(value); return *this; } /** *

A list of regular expression patterns. Documents that match the pattern are * included in the index. Documents that don't match the pattern are excluded from * the index. If a document matches both an inclusion pattern and an exclusion * pattern, the document is not included in the index.

The exclusion * pattern is applied to the file name.

*/ inline OneDriveConfiguration& AddInclusionPatterns(Aws::String&& value) { m_inclusionPatternsHasBeenSet = true; m_inclusionPatterns.push_back(std::move(value)); return *this; } /** *

A list of regular expression patterns. Documents that match the pattern are * included in the index. Documents that don't match the pattern are excluded from * the index. If a document matches both an inclusion pattern and an exclusion * pattern, the document is not included in the index.

The exclusion * pattern is applied to the file name.

*/ inline OneDriveConfiguration& AddInclusionPatterns(const char* value) { m_inclusionPatternsHasBeenSet = true; m_inclusionPatterns.push_back(value); return *this; } /** *

List of regular expressions applied to documents. Items that match the * exclusion pattern are not indexed. If you provide both an inclusion pattern and * an exclusion pattern, any item that matches the exclusion pattern isn't indexed. *

The exclusion pattern is applied to the file name.

*/ inline const Aws::Vector& GetExclusionPatterns() const{ return m_exclusionPatterns; } /** *

List of regular expressions applied to documents. Items that match the * exclusion pattern are not indexed. If you provide both an inclusion pattern and * an exclusion pattern, any item that matches the exclusion pattern isn't indexed. *

The exclusion pattern is applied to the file name.

*/ inline bool ExclusionPatternsHasBeenSet() const { return m_exclusionPatternsHasBeenSet; } /** *

List of regular expressions applied to documents. Items that match the * exclusion pattern are not indexed. If you provide both an inclusion pattern and * an exclusion pattern, any item that matches the exclusion pattern isn't indexed. *

The exclusion pattern is applied to the file name.

*/ inline void SetExclusionPatterns(const Aws::Vector& value) { m_exclusionPatternsHasBeenSet = true; m_exclusionPatterns = value; } /** *

List of regular expressions applied to documents. Items that match the * exclusion pattern are not indexed. If you provide both an inclusion pattern and * an exclusion pattern, any item that matches the exclusion pattern isn't indexed. *

The exclusion pattern is applied to the file name.

*/ inline void SetExclusionPatterns(Aws::Vector&& value) { m_exclusionPatternsHasBeenSet = true; m_exclusionPatterns = std::move(value); } /** *

List of regular expressions applied to documents. Items that match the * exclusion pattern are not indexed. If you provide both an inclusion pattern and * an exclusion pattern, any item that matches the exclusion pattern isn't indexed. *

The exclusion pattern is applied to the file name.

*/ inline OneDriveConfiguration& WithExclusionPatterns(const Aws::Vector& value) { SetExclusionPatterns(value); return *this;} /** *

List of regular expressions applied to documents. Items that match the * exclusion pattern are not indexed. If you provide both an inclusion pattern and * an exclusion pattern, any item that matches the exclusion pattern isn't indexed. *

The exclusion pattern is applied to the file name.

*/ inline OneDriveConfiguration& WithExclusionPatterns(Aws::Vector&& value) { SetExclusionPatterns(std::move(value)); return *this;} /** *

List of regular expressions applied to documents. Items that match the * exclusion pattern are not indexed. If you provide both an inclusion pattern and * an exclusion pattern, any item that matches the exclusion pattern isn't indexed. *

The exclusion pattern is applied to the file name.

*/ inline OneDriveConfiguration& AddExclusionPatterns(const Aws::String& value) { m_exclusionPatternsHasBeenSet = true; m_exclusionPatterns.push_back(value); return *this; } /** *

List of regular expressions applied to documents. Items that match the * exclusion pattern are not indexed. If you provide both an inclusion pattern and * an exclusion pattern, any item that matches the exclusion pattern isn't indexed. *

The exclusion pattern is applied to the file name.

*/ inline OneDriveConfiguration& AddExclusionPatterns(Aws::String&& value) { m_exclusionPatternsHasBeenSet = true; m_exclusionPatterns.push_back(std::move(value)); return *this; } /** *

List of regular expressions applied to documents. Items that match the * exclusion pattern are not indexed. If you provide both an inclusion pattern and * an exclusion pattern, any item that matches the exclusion pattern isn't indexed. *

The exclusion pattern is applied to the file name.

*/ inline OneDriveConfiguration& AddExclusionPatterns(const char* value) { m_exclusionPatternsHasBeenSet = true; m_exclusionPatterns.push_back(value); return *this; } /** *

A list of DataSourceToIndexFieldMapping objects that map * Microsoft OneDrive fields to custom fields in the Amazon Kendra index. You must * first create the index fields before you map OneDrive fields.

*/ inline const Aws::Vector& GetFieldMappings() const{ return m_fieldMappings; } /** *

A list of DataSourceToIndexFieldMapping objects that map * Microsoft OneDrive fields to custom fields in the Amazon Kendra index. You must * first create the index fields before you map OneDrive fields.

*/ inline bool FieldMappingsHasBeenSet() const { return m_fieldMappingsHasBeenSet; } /** *

A list of DataSourceToIndexFieldMapping objects that map * Microsoft OneDrive fields to custom fields in the Amazon Kendra index. You must * first create the index fields before you map OneDrive fields.

*/ inline void SetFieldMappings(const Aws::Vector& value) { m_fieldMappingsHasBeenSet = true; m_fieldMappings = value; } /** *

A list of DataSourceToIndexFieldMapping objects that map * Microsoft OneDrive fields to custom fields in the Amazon Kendra index. You must * first create the index fields before you map OneDrive fields.

*/ inline void SetFieldMappings(Aws::Vector&& value) { m_fieldMappingsHasBeenSet = true; m_fieldMappings = std::move(value); } /** *

A list of DataSourceToIndexFieldMapping objects that map * Microsoft OneDrive fields to custom fields in the Amazon Kendra index. You must * first create the index fields before you map OneDrive fields.

*/ inline OneDriveConfiguration& WithFieldMappings(const Aws::Vector& value) { SetFieldMappings(value); return *this;} /** *

A list of DataSourceToIndexFieldMapping objects that map * Microsoft OneDrive fields to custom fields in the Amazon Kendra index. You must * first create the index fields before you map OneDrive fields.

*/ inline OneDriveConfiguration& WithFieldMappings(Aws::Vector&& value) { SetFieldMappings(std::move(value)); return *this;} /** *

A list of DataSourceToIndexFieldMapping objects that map * Microsoft OneDrive fields to custom fields in the Amazon Kendra index. You must * first create the index fields before you map OneDrive fields.

*/ inline OneDriveConfiguration& AddFieldMappings(const DataSourceToIndexFieldMapping& value) { m_fieldMappingsHasBeenSet = true; m_fieldMappings.push_back(value); return *this; } /** *

A list of DataSourceToIndexFieldMapping objects that map * Microsoft OneDrive fields to custom fields in the Amazon Kendra index. You must * first create the index fields before you map OneDrive fields.

*/ inline OneDriveConfiguration& AddFieldMappings(DataSourceToIndexFieldMapping&& value) { m_fieldMappingsHasBeenSet = true; m_fieldMappings.push_back(std::move(value)); return *this; } private: Aws::String m_tenantDomain; bool m_tenantDomainHasBeenSet; Aws::String m_secretArn; bool m_secretArnHasBeenSet; OneDriveUsers m_oneDriveUsers; bool m_oneDriveUsersHasBeenSet; Aws::Vector m_inclusionPatterns; bool m_inclusionPatternsHasBeenSet; Aws::Vector m_exclusionPatterns; bool m_exclusionPatternsHasBeenSet; Aws::Vector m_fieldMappings; bool m_fieldMappingsHasBeenSet; }; } // namespace Model } // namespace kendra } // namespace Aws