/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the kendra-2019-02-03.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Kendra.Model { /// /// Provides the configuration information to connect to OneDrive as your data source. /// public partial class OneDriveConfiguration { private bool? _disableLocalGroups; private List _exclusionPatterns = new List(); private List _fieldMappings = new List(); private List _inclusionPatterns = new List(); private OneDriveUsers _oneDriveUsers; private string _secretArn; private string _tenantDomain; /// /// Gets and sets the property DisableLocalGroups. /// /// TRUE to disable local groups information. /// /// public bool DisableLocalGroups { get { return this._disableLocalGroups.GetValueOrDefault(); } set { this._disableLocalGroups = value; } } // Check to see if DisableLocalGroups property is set internal bool IsSetDisableLocalGroups() { return this._disableLocalGroups.HasValue; } /// /// Gets and sets the property 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. /// /// [AWSProperty(Min=0, Max=250)] public List ExclusionPatterns { get { return this._exclusionPatterns; } set { this._exclusionPatterns = value; } } // Check to see if ExclusionPatterns property is set internal bool IsSetExclusionPatterns() { return this._exclusionPatterns != null && this._exclusionPatterns.Count > 0; } /// /// Gets and sets the property 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. /// /// [AWSProperty(Min=1, Max=100)] public List FieldMappings { get { return this._fieldMappings; } set { this._fieldMappings = value; } } // Check to see if FieldMappings property is set internal bool IsSetFieldMappings() { return this._fieldMappings != null && this._fieldMappings.Count > 0; } /// /// Gets and sets the property 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. /// /// [AWSProperty(Min=0, Max=250)] public List InclusionPatterns { get { return this._inclusionPatterns; } set { this._inclusionPatterns = value; } } // Check to see if InclusionPatterns property is set internal bool IsSetInclusionPatterns() { return this._inclusionPatterns != null && this._inclusionPatterns.Count > 0; } /// /// Gets and sets the property OneDriveUsers. /// /// A list of user accounts whose documents should be indexed. /// /// [AWSProperty(Required=true)] public OneDriveUsers OneDriveUsers { get { return this._oneDriveUsers; } set { this._oneDriveUsers = value; } } // Check to see if OneDriveUsers property is set internal bool IsSetOneDriveUsers() { return this._oneDriveUsers != null; } /// /// Gets and sets the property 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. /// /// [AWSProperty(Required=true, Min=1, Max=1284)] public string SecretArn { get { return this._secretArn; } set { this._secretArn = value; } } // Check to see if SecretArn property is set internal bool IsSetSecretArn() { return this._secretArn != null; } /// /// Gets and sets the property TenantDomain. /// /// The Azure Active Directory domain of the organization. /// /// [AWSProperty(Required=true, Min=1, Max=256)] public string TenantDomain { get { return this._tenantDomain; } set { this._tenantDomain = value; } } // Check to see if TenantDomain property is set internal bool IsSetTenantDomain() { return this._tenantDomain != null; } } }