/* * 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 { /// /// Configuration information for indexing Confluence spaces. /// public partial class ConfluenceSpaceConfiguration { private bool? _crawlArchivedSpaces; private bool? _crawlPersonalSpaces; private List _excludeSpaces = new List(); private List _includeSpaces = new List(); private List _spaceFieldMappings = new List(); /// /// Gets and sets the property CrawlArchivedSpaces. /// /// TRUE to index archived spaces. /// /// public bool CrawlArchivedSpaces { get { return this._crawlArchivedSpaces.GetValueOrDefault(); } set { this._crawlArchivedSpaces = value; } } // Check to see if CrawlArchivedSpaces property is set internal bool IsSetCrawlArchivedSpaces() { return this._crawlArchivedSpaces.HasValue; } /// /// Gets and sets the property CrawlPersonalSpaces. /// /// TRUE to index personal spaces. You can add restrictions to items in /// personal spaces. If personal spaces are indexed, queries without user context information /// may return restricted items from a personal space in their results. For more information, /// see Filtering /// on user context. /// /// public bool CrawlPersonalSpaces { get { return this._crawlPersonalSpaces.GetValueOrDefault(); } set { this._crawlPersonalSpaces = value; } } // Check to see if CrawlPersonalSpaces property is set internal bool IsSetCrawlPersonalSpaces() { return this._crawlPersonalSpaces.HasValue; } /// /// Gets and sets the property ExcludeSpaces. /// /// A list of space keys of Confluence spaces. If you include a key, the blogs, documents, /// and attachments in the space are not indexed. If a space is in both the ExcludeSpaces /// and the IncludeSpaces list, the space is excluded. /// /// [AWSProperty(Min=1)] public List ExcludeSpaces { get { return this._excludeSpaces; } set { this._excludeSpaces = value; } } // Check to see if ExcludeSpaces property is set internal bool IsSetExcludeSpaces() { return this._excludeSpaces != null && this._excludeSpaces.Count > 0; } /// /// Gets and sets the property IncludeSpaces. /// /// A list of space keys for Confluence spaces. If you include a key, the blogs, documents, /// and attachments in the space are indexed. Spaces that aren't in the list aren't indexed. /// A space in the list must exist. Otherwise, Amazon Kendra logs an error when the data /// source is synchronized. If a space is in both the IncludeSpaces and the /// ExcludeSpaces list, the space is excluded. /// /// [AWSProperty(Min=1)] public List IncludeSpaces { get { return this._includeSpaces; } set { this._includeSpaces = value; } } // Check to see if IncludeSpaces property is set internal bool IsSetIncludeSpaces() { return this._includeSpaces != null && this._includeSpaces.Count > 0; } /// /// Gets and sets the property SpaceFieldMappings. /// /// Maps attributes or field names of Confluence spaces to Amazon Kendra index field names. /// To create custom fields, use the UpdateIndex API before you map to Confluence /// fields. For more information, see Mapping /// data source fields. The Confluence data source field names must exist in your /// Confluence custom metadata. /// /// /// /// If you specify the SpaceFieldMappings parameter, you must specify at /// least one field mapping. /// /// [AWSProperty(Min=1, Max=4)] public List SpaceFieldMappings { get { return this._spaceFieldMappings; } set { this._spaceFieldMappings = value; } } // Check to see if SpaceFieldMappings property is set internal bool IsSetSpaceFieldMappings() { return this._spaceFieldMappings != null && this._spaceFieldMappings.Count > 0; } } }