/* * 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 { /// /// Container for the parameters to the CreateFaq operation. /// Creates a set of frequently ask questions (FAQs) using a specified FAQ file stored /// in an Amazon S3 bucket. /// /// /// /// Adding FAQs to an index is an asynchronous operation. /// /// /// /// For an example of adding an FAQ to an index using Python and Java SDKs, see Using /// your FAQ file. /// /// public partial class CreateFaqRequest : AmazonKendraRequest { private string _clientToken; private string _description; private FaqFileFormat _fileFormat; private string _indexId; private string _languageCode; private string _name; private string _roleArn; private S3Path _s3Path; private List _tags = new List(); /// /// Gets and sets the property ClientToken. /// /// A token that you provide to identify the request to create a FAQ. Multiple calls to /// the CreateFaqRequest API with the same client token will create only /// one FAQ. /// /// [AWSProperty(Min=1, Max=100)] public string ClientToken { get { return this._clientToken; } set { this._clientToken = value; } } // Check to see if ClientToken property is set internal bool IsSetClientToken() { return this._clientToken != null; } /// /// Gets and sets the property Description. /// /// A description for the FAQ. /// /// [AWSProperty(Min=0, Max=1000)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property FileFormat. /// /// The format of the FAQ input file. You can choose between a basic CSV format, a CSV /// format that includes customs attributes in a header, and a JSON format that includes /// custom attributes. /// /// /// /// The default format is CSV. /// /// /// /// The format must match the format of the file stored in the S3 bucket identified in /// the S3Path parameter. /// /// /// /// For more information, see Adding /// questions and answers. /// /// public FaqFileFormat FileFormat { get { return this._fileFormat; } set { this._fileFormat = value; } } // Check to see if FileFormat property is set internal bool IsSetFileFormat() { return this._fileFormat != null; } /// /// Gets and sets the property IndexId. /// /// The identifier of the index for the FAQ. /// /// [AWSProperty(Required=true, Min=36, Max=36)] public string IndexId { get { return this._indexId; } set { this._indexId = value; } } // Check to see if IndexId property is set internal bool IsSetIndexId() { return this._indexId != null; } /// /// Gets and sets the property LanguageCode. /// /// The code for a language. This allows you to support a language for the FAQ document. /// English is supported by default. For more information on supported languages, including /// their codes, see Adding /// documents in languages other than English. /// /// [AWSProperty(Min=2, Max=10)] public string LanguageCode { get { return this._languageCode; } set { this._languageCode = value; } } // Check to see if LanguageCode property is set internal bool IsSetLanguageCode() { return this._languageCode != null; } /// /// Gets and sets the property Name. /// /// A name for the FAQ. /// /// [AWSProperty(Required=true, Min=1, Max=100)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property RoleArn. /// /// The Amazon Resource Name (ARN) of an IAM role with permission to access the S3 bucket /// that contains the FAQs. For more information, see IAM /// access roles for Amazon Kendra. /// /// [AWSProperty(Required=true, Min=0, Max=1284)] public string RoleArn { get { return this._roleArn; } set { this._roleArn = value; } } // Check to see if RoleArn property is set internal bool IsSetRoleArn() { return this._roleArn != null; } /// /// Gets and sets the property S3Path. /// /// The path to the FAQ file in S3. /// /// [AWSProperty(Required=true)] public S3Path S3Path { get { return this._s3Path; } set { this._s3Path = value; } } // Check to see if S3Path property is set internal bool IsSetS3Path() { return this._s3Path != null; } /// /// Gets and sets the property Tags. /// /// A list of key-value pairs that identify the FAQ. You can use the tags to identify /// and organize your resources and to control access to resources. /// /// [AWSProperty(Min=0, Max=200)] public List Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }