/* * 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 lex-models-2017-04-19.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.LexModelBuildingService.Model { /// /// Container for the parameters to the StartImport operation. /// Starts a job to import a resource to Amazon Lex. /// public partial class StartImportRequest : AmazonLexModelBuildingServiceRequest { private MergeStrategy _mergeStrategy; private MemoryStream _payload; private ResourceType _resourceType; private List _tags = new List(); /// /// Gets and sets the property MergeStrategy. /// /// Specifies the action that the StartImport operation should take when /// there is an existing resource with the same name. /// ///
  • /// /// FAIL_ON_CONFLICT - The import operation is stopped on the first conflict between a /// resource in the import file and an existing resource. The name of the resource causing /// the conflict is in the failureReason field of the response to the GetImport /// operation. /// /// /// /// OVERWRITE_LATEST - The import operation proceeds even if there is a conflict with /// an existing resource. The $LASTEST version of the existing resource is overwritten /// with the data from the import file. /// ///
///
[AWSProperty(Required=true)] public MergeStrategy MergeStrategy { get { return this._mergeStrategy; } set { this._mergeStrategy = value; } } // Check to see if MergeStrategy property is set internal bool IsSetMergeStrategy() { return this._mergeStrategy != null; } /// /// Gets and sets the property Payload. /// /// A zip archive in binary format. The archive should contain one file, a JSON file containing /// the resource to import. The resource should match the type specified in the resourceType /// field. /// /// [AWSProperty(Required=true)] public MemoryStream Payload { get { return this._payload; } set { this._payload = value; } } // Check to see if Payload property is set internal bool IsSetPayload() { return this._payload != null; } /// /// Gets and sets the property ResourceType. /// /// Specifies the type of resource to export. Each resource also exports any resources /// that it depends on. /// ///
  • /// /// A bot exports dependent intents. /// ///
  • /// /// An intent exports dependent slot types. /// ///
///
[AWSProperty(Required=true)] public ResourceType ResourceType { get { return this._resourceType; } set { this._resourceType = value; } } // Check to see if ResourceType property is set internal bool IsSetResourceType() { return this._resourceType != null; } /// /// Gets and sets the property Tags. /// /// A list of tags to add to the imported bot. You can only add tags when you import a /// bot, you can't add tags to an intent or slot type. /// /// [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; } } }