/*
* 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 for crawling service catalog items in the ServiceNow
/// site
///
public partial class ServiceNowServiceCatalogConfiguration
{
private bool? _crawlAttachments;
private string _documentDataFieldName;
private string _documentTitleFieldName;
private List _excludeAttachmentFilePatterns = new List();
private List _fieldMappings = new List();
private List _includeAttachmentFilePatterns = new List();
///
/// Gets and sets the property CrawlAttachments.
///
/// TRUE
to index attachments to service catalog items.
///
///
public bool CrawlAttachments
{
get { return this._crawlAttachments.GetValueOrDefault(); }
set { this._crawlAttachments = value; }
}
// Check to see if CrawlAttachments property is set
internal bool IsSetCrawlAttachments()
{
return this._crawlAttachments.HasValue;
}
///
/// Gets and sets the property DocumentDataFieldName.
///
/// The name of the ServiceNow field that is mapped to the index document contents field
/// in the Amazon Kendra index.
///
///
[AWSProperty(Required=true, Min=1, Max=100)]
public string DocumentDataFieldName
{
get { return this._documentDataFieldName; }
set { this._documentDataFieldName = value; }
}
// Check to see if DocumentDataFieldName property is set
internal bool IsSetDocumentDataFieldName()
{
return this._documentDataFieldName != null;
}
///
/// Gets and sets the property DocumentTitleFieldName.
///
/// The name of the ServiceNow field that is mapped to the index document title field.
///
///
[AWSProperty(Min=1, Max=100)]
public string DocumentTitleFieldName
{
get { return this._documentTitleFieldName; }
set { this._documentTitleFieldName = value; }
}
// Check to see if DocumentTitleFieldName property is set
internal bool IsSetDocumentTitleFieldName()
{
return this._documentTitleFieldName != null;
}
///
/// Gets and sets the property ExcludeAttachmentFilePatterns.
///
/// A list of regular expression patterns to exclude certain attachments of catalogs in
/// your ServiceNow. Item that match the patterns are excluded from the index. Items that
/// don't match the patterns are included in the index. If an item matches both an inclusion
/// and exclusion pattern, the exclusion pattern takes precedence and the item isn't included
/// in the index.
///
///
///
/// The regex is applied to the file name of the attachment.
///
///
[AWSProperty(Min=0, Max=250)]
public List ExcludeAttachmentFilePatterns
{
get { return this._excludeAttachmentFilePatterns; }
set { this._excludeAttachmentFilePatterns = value; }
}
// Check to see if ExcludeAttachmentFilePatterns property is set
internal bool IsSetExcludeAttachmentFilePatterns()
{
return this._excludeAttachmentFilePatterns != null && this._excludeAttachmentFilePatterns.Count > 0;
}
///
/// Gets and sets the property FieldMappings.
///
/// Maps attributes or field names of catalogs to Amazon Kendra index field names. To
/// create custom fields, use the UpdateIndex
API before you map to ServiceNow
/// fields. For more information, see Mapping
/// data source fields. The ServiceNow data source field names must exist in your
/// ServiceNow 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 IncludeAttachmentFilePatterns.
///
/// A list of regular expression patterns to include certain attachments of catalogs in
/// your ServiceNow. Item that match the patterns are included in the index. Items that
/// don't match the patterns are excluded from the index. If an item matches both an inclusion
/// and exclusion pattern, the exclusion pattern takes precedence and the item isn't included
/// in the index.
///
///
///
/// The regex is applied to the file name of the attachment.
///
///
[AWSProperty(Min=0, Max=250)]
public List IncludeAttachmentFilePatterns
{
get { return this._includeAttachmentFilePatterns; }
set { this._includeAttachmentFilePatterns = value; }
}
// Check to see if IncludeAttachmentFilePatterns property is set
internal bool IsSetIncludeAttachmentFilePatterns()
{
return this._includeAttachmentFilePatterns != null && this._includeAttachmentFilePatterns.Count > 0;
}
}
}