/* * 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 models.lex.v2-2020-08-07.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.LexModelsV2.Model { /// /// Container for the parameters to the CreateExport operation. /// Creates a zip archive containing the contents of a bot or a bot locale. The archive /// contains a directory structure that contains JSON files that define the bot. /// /// /// /// You can create an archive that contains the complete definition of a bot, or you can /// specify that the archive contain only the definition of a single bot locale. /// /// /// /// For more information about exporting bots, and about the structure of the export archive, /// see /// Importing and exporting bots /// /// public partial class CreateExportRequest : AmazonLexModelsV2Request { private ImportExportFileFormat _fileFormat; private string _filePassword; private ExportResourceSpecification _resourceSpecification; /// /// Gets and sets the property FileFormat. /// /// The file format of the bot or bot locale definition files. /// /// [AWSProperty(Required=true)] public ImportExportFileFormat 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 FilePassword. /// /// An password to use to encrypt the exported archive. Using a password is optional, /// but you should encrypt the archive to protect the data in transit between Amazon Lex /// and your local computer. /// /// [AWSProperty(Sensitive=true, Min=1, Max=1024)] public string FilePassword { get { return this._filePassword; } set { this._filePassword = value; } } // Check to see if FilePassword property is set internal bool IsSetFilePassword() { return this._filePassword != null; } /// /// Gets and sets the property ResourceSpecification. /// /// Specifies the type of resource to export, either a bot or a bot locale. You can only /// specify one type of resource to export. /// /// [AWSProperty(Required=true)] public ExportResourceSpecification ResourceSpecification { get { return this._resourceSpecification; } set { this._resourceSpecification = value; } } // Check to see if ResourceSpecification property is set internal bool IsSetResourceSpecification() { return this._resourceSpecification != null; } } }