/** * 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 the configuration information to connect to OneDrive as your data * source.

See Also:

AWS * API Reference

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

The Azure Active Directory domain of the organization.

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

The Azure Active Directory domain of the organization.

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

The Azure Active Directory domain of the organization.

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

The Azure Active Directory domain of the organization.

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

The Azure Active Directory domain of the organization.

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

The Azure Active Directory domain of the organization.

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

The Azure Active Directory domain of the organization.

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

The Azure Active Directory domain of the organization.

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

The Amazon Resource Name (ARN) of an Secrets Managersecret that contains the * user name and password to connect to OneDrive. The user name 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 Secrets Managersecret that contains the * user name and password to connect to OneDrive. The user name 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 Secrets Managersecret that contains the * user name and password to connect to OneDrive. The user name 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 Secrets Managersecret that contains the * user name and password to connect to OneDrive. The user name 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 Secrets Managersecret that contains the * user name and password to connect to OneDrive. The user name 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 Secrets Managersecret that contains the * user name and password to connect to OneDrive. The user name 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 Secrets Managersecret that contains the * user name and password to connect to OneDrive. The user name 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 Secrets Managersecret that contains the * user name and password to connect to OneDrive. The user name 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 to include certain documents in your * OneDrive. Documents that match the patterns are included in the index. Documents * that don't match the patterns are excluded from the index. If a document matches * both an inclusion and exclusion pattern, the exclusion pattern takes precedence * and the document isn't included in the index.

The pattern is applied to * the file name.

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

A list of regular expression patterns to include certain documents in your * OneDrive. Documents that match the patterns are included in the index. Documents * that don't match the patterns are excluded from the index. If a document matches * both an inclusion and exclusion pattern, the exclusion pattern takes precedence * and the document isn't included in the index.

The pattern is applied to * the file name.

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

A list of regular expression patterns to include certain documents in your * OneDrive. Documents that match the patterns are included in the index. Documents * that don't match the patterns are excluded from the index. If a document matches * both an inclusion and exclusion pattern, the exclusion pattern takes precedence * and the document isn't included in the index.

The 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 to include certain documents in your * OneDrive. Documents that match the patterns are included in the index. Documents * that don't match the patterns are excluded from the index. If a document matches * both an inclusion and exclusion pattern, the exclusion pattern takes precedence * and the document isn't included in the index.

The 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 to include certain documents in your * OneDrive. Documents that match the patterns are included in the index. Documents * that don't match the patterns are excluded from the index. If a document matches * both an inclusion and exclusion pattern, the exclusion pattern takes precedence * and the document isn't included in the index.

The pattern is applied to * the file name.

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

A list of regular expression patterns to include certain documents in your * OneDrive. Documents that match the patterns are included in the index. Documents * that don't match the patterns are excluded from the index. If a document matches * both an inclusion and exclusion pattern, the exclusion pattern takes precedence * and the document isn't included in the index.

The 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 to include certain documents in your * OneDrive. Documents that match the patterns are included in the index. Documents * that don't match the patterns are excluded from the index. If a document matches * both an inclusion and exclusion pattern, the exclusion pattern takes precedence * and the document isn't included in the index.

The 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 to include certain documents in your * OneDrive. Documents that match the patterns are included in the index. Documents * that don't match the patterns are excluded from the index. If a document matches * both an inclusion and exclusion pattern, the exclusion pattern takes precedence * and the document isn't included in the index.

The 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 to include certain documents in your * OneDrive. Documents that match the patterns are included in the index. Documents * that don't match the patterns are excluded from the index. If a document matches * both an inclusion and exclusion pattern, the exclusion pattern takes precedence * and the document isn't included in the index.

The pattern is applied to * the file name.

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

A list of regular expression patterns to exclude certain documents in your * OneDrive. Documents that match the patterns are excluded from the index. * Documents that don't match the patterns are included in the index. If a document * matches both an inclusion and exclusion pattern, the exclusion pattern takes * precedence and the document isn't included in the index.

The pattern is * applied to the file name.

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

A list of regular expression patterns to exclude certain documents in your * OneDrive. Documents that match the patterns are excluded from the index. * Documents that don't match the patterns are included in the index. If a document * matches both an inclusion and exclusion pattern, the exclusion pattern takes * precedence and the document isn't included in the index.

The pattern is * applied to the file name.

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

A list of regular expression patterns to exclude certain documents in your * OneDrive. Documents that match the patterns are excluded from the index. * Documents that don't match the patterns are included in the index. If a document * matches both an inclusion and exclusion pattern, the exclusion pattern takes * precedence and the document isn't included in the index.

The pattern is * applied to the file name.

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

A list of regular expression patterns to exclude certain documents in your * OneDrive. Documents that match the patterns are excluded from the index. * Documents that don't match the patterns are included in the index. If a document * matches both an inclusion and exclusion pattern, the exclusion pattern takes * precedence and the document isn't included in the index.

The pattern is * applied to the file name.

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

A list of regular expression patterns to exclude certain documents in your * OneDrive. Documents that match the patterns are excluded from the index. * Documents that don't match the patterns are included in the index. If a document * matches both an inclusion and exclusion pattern, the exclusion pattern takes * precedence and the document isn't included in the index.

The pattern is * applied to the file name.

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

A list of regular expression patterns to exclude certain documents in your * OneDrive. Documents that match the patterns are excluded from the index. * Documents that don't match the patterns are included in the index. If a document * matches both an inclusion and exclusion pattern, the exclusion pattern takes * precedence and the document isn't included in the index.

The pattern is * applied to the file name.

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

A list of regular expression patterns to exclude certain documents in your * OneDrive. Documents that match the patterns are excluded from the index. * Documents that don't match the patterns are included in the index. If a document * matches both an inclusion and exclusion pattern, the exclusion pattern takes * precedence and the document isn't included in the index.

The pattern is * applied to the file name.

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

A list of regular expression patterns to exclude certain documents in your * OneDrive. Documents that match the patterns are excluded from the index. * Documents that don't match the patterns are included in the index. If a document * matches both an inclusion and exclusion pattern, the exclusion pattern takes * precedence and the document isn't included in the index.

The 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; } /** *

A list of regular expression patterns to exclude certain documents in your * OneDrive. Documents that match the patterns are excluded from the index. * Documents that don't match the patterns are included in the index. If a document * matches both an inclusion and exclusion pattern, the exclusion pattern takes * precedence and the document isn't included in the index.

The 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 * OneDrive data source attributes or field names to Amazon Kendra index field * names. To create custom fields, use the UpdateIndex API before you * map to OneDrive fields. For more information, see Mapping * data source fields. The OneDrive data source field names must exist in your * OneDrive custom metadata.

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

A list of DataSourceToIndexFieldMapping objects that map * OneDrive data source attributes or field names to Amazon Kendra index field * names. To create custom fields, use the UpdateIndex API before you * map to OneDrive fields. For more information, see Mapping * data source fields. The OneDrive data source field names must exist in your * OneDrive custom metadata.

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

A list of DataSourceToIndexFieldMapping objects that map * OneDrive data source attributes or field names to Amazon Kendra index field * names. To create custom fields, use the UpdateIndex API before you * map to OneDrive fields. For more information, see Mapping * data source fields. The OneDrive data source field names must exist in your * OneDrive custom metadata.

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

A list of DataSourceToIndexFieldMapping objects that map * OneDrive data source attributes or field names to Amazon Kendra index field * names. To create custom fields, use the UpdateIndex API before you * map to OneDrive fields. For more information, see Mapping * data source fields. The OneDrive data source field names must exist in your * OneDrive custom metadata.

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

A list of DataSourceToIndexFieldMapping objects that map * OneDrive data source attributes or field names to Amazon Kendra index field * names. To create custom fields, use the UpdateIndex API before you * map to OneDrive fields. For more information, see Mapping * data source fields. The OneDrive data source field names must exist in your * OneDrive custom metadata.

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

A list of DataSourceToIndexFieldMapping objects that map * OneDrive data source attributes or field names to Amazon Kendra index field * names. To create custom fields, use the UpdateIndex API before you * map to OneDrive fields. For more information, see Mapping * data source fields. The OneDrive data source field names must exist in your * OneDrive custom metadata.

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

A list of DataSourceToIndexFieldMapping objects that map * OneDrive data source attributes or field names to Amazon Kendra index field * names. To create custom fields, use the UpdateIndex API before you * map to OneDrive fields. For more information, see Mapping * data source fields. The OneDrive data source field names must exist in your * OneDrive custom metadata.

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

A list of DataSourceToIndexFieldMapping objects that map * OneDrive data source attributes or field names to Amazon Kendra index field * names. To create custom fields, use the UpdateIndex API before you * map to OneDrive fields. For more information, see Mapping * data source fields. The OneDrive data source field names must exist in your * OneDrive custom metadata.

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

TRUE to disable local groups information.

*/ inline bool GetDisableLocalGroups() const{ return m_disableLocalGroups; } /** *

TRUE to disable local groups information.

*/ inline bool DisableLocalGroupsHasBeenSet() const { return m_disableLocalGroupsHasBeenSet; } /** *

TRUE to disable local groups information.

*/ inline void SetDisableLocalGroups(bool value) { m_disableLocalGroupsHasBeenSet = true; m_disableLocalGroups = value; } /** *

TRUE to disable local groups information.

*/ inline OneDriveConfiguration& WithDisableLocalGroups(bool value) { SetDisableLocalGroups(value); return *this;} private: Aws::String m_tenantDomain; bool m_tenantDomainHasBeenSet = false; Aws::String m_secretArn; bool m_secretArnHasBeenSet = false; OneDriveUsers m_oneDriveUsers; bool m_oneDriveUsersHasBeenSet = false; Aws::Vector m_inclusionPatterns; bool m_inclusionPatternsHasBeenSet = false; Aws::Vector m_exclusionPatterns; bool m_exclusionPatternsHasBeenSet = false; Aws::Vector m_fieldMappings; bool m_fieldMappingsHasBeenSet = false; bool m_disableLocalGroups; bool m_disableLocalGroupsHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws