/* * 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 { /// /// This is the response object from the CreateBotVersion operation. /// public partial class CreateBotVersionResponse : AmazonWebServiceResponse { private Statement _abortStatement; private string _checksum; private bool? _childDirected; private Prompt _clarificationPrompt; private DateTime? _createdDate; private string _description; private bool? _detectSentiment; private bool? _enableModelImprovements; private string _failureReason; private int? _idleSessionTTLInSeconds; private List _intents = new List(); private DateTime? _lastUpdatedDate; private Locale _locale; private string _name; private Status _status; private string _version; private string _voiceId; /// /// Gets and sets the property AbortStatement. /// /// The message that Amazon Lex uses to cancel a conversation. For more information, see /// PutBot. /// /// public Statement AbortStatement { get { return this._abortStatement; } set { this._abortStatement = value; } } // Check to see if AbortStatement property is set internal bool IsSetAbortStatement() { return this._abortStatement != null; } /// /// Gets and sets the property Checksum. /// /// Checksum identifying the version of the bot that was created. /// /// public string Checksum { get { return this._checksum; } set { this._checksum = value; } } // Check to see if Checksum property is set internal bool IsSetChecksum() { return this._checksum != null; } /// /// Gets and sets the property ChildDirected. /// /// For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must /// specify whether your use of Amazon Lex is related to a website, program, or other /// application that is directed or targeted, in whole or in part, to children under age /// 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying /// true or false in the childDirected field. By /// specifying true in the childDirected field, you confirm /// that your use of Amazon Lex is related to a website, program, or other application /// that is directed or targeted, in whole or in part, to children under age 13 and subject /// to COPPA. By specifying false in the childDirected field, /// you confirm that your use of Amazon Lex is not related to a website, program, /// or other application that is directed or targeted, in whole or in part, to children /// under age 13 and subject to COPPA. You may not specify a default value for the childDirected /// field that does not accurately reflect whether your use of Amazon Lex is related to /// a website, program, or other application that is directed or targeted, in whole or /// in part, to children under age 13 and subject to COPPA. /// /// /// /// If your use of Amazon Lex relates to a website, program, or other application that /// is directed in whole or in part, to children under age 13, you must obtain any required /// verifiable parental consent under COPPA. For information regarding the use of Amazon /// Lex in connection with websites, programs, or other applications that are directed /// or targeted, in whole or in part, to children under age 13, see the Amazon /// Lex FAQ. /// /// public bool ChildDirected { get { return this._childDirected.GetValueOrDefault(); } set { this._childDirected = value; } } // Check to see if ChildDirected property is set internal bool IsSetChildDirected() { return this._childDirected.HasValue; } /// /// Gets and sets the property ClarificationPrompt. /// /// The message that Amazon Lex uses when it doesn't understand the user's request. For /// more information, see PutBot. /// /// public Prompt ClarificationPrompt { get { return this._clarificationPrompt; } set { this._clarificationPrompt = value; } } // Check to see if ClarificationPrompt property is set internal bool IsSetClarificationPrompt() { return this._clarificationPrompt != null; } /// /// Gets and sets the property CreatedDate. /// /// The date when the bot version was created. /// /// public DateTime CreatedDate { get { return this._createdDate.GetValueOrDefault(); } set { this._createdDate = value; } } // Check to see if CreatedDate property is set internal bool IsSetCreatedDate() { return this._createdDate.HasValue; } /// /// Gets and sets the property Description. /// /// A description of the bot. /// /// [AWSProperty(Min=0, Max=200)] 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 DetectSentiment. /// /// Indicates whether utterances entered by the user should be sent to Amazon Comprehend /// for sentiment analysis. /// /// public bool DetectSentiment { get { return this._detectSentiment.GetValueOrDefault(); } set { this._detectSentiment = value; } } // Check to see if DetectSentiment property is set internal bool IsSetDetectSentiment() { return this._detectSentiment.HasValue; } /// /// Gets and sets the property EnableModelImprovements. /// /// Indicates whether the bot uses accuracy improvements. true indicates /// that the bot is using the improvements, otherwise, false. /// /// public bool EnableModelImprovements { get { return this._enableModelImprovements.GetValueOrDefault(); } set { this._enableModelImprovements = value; } } // Check to see if EnableModelImprovements property is set internal bool IsSetEnableModelImprovements() { return this._enableModelImprovements.HasValue; } /// /// Gets and sets the property FailureReason. /// /// If status is FAILED, Amazon Lex provides the reason that /// it failed to build the bot. /// /// public string FailureReason { get { return this._failureReason; } set { this._failureReason = value; } } // Check to see if FailureReason property is set internal bool IsSetFailureReason() { return this._failureReason != null; } /// /// Gets and sets the property IdleSessionTTLInSeconds. /// /// The maximum time in seconds that Amazon Lex retains the data gathered in a conversation. /// For more information, see PutBot. /// /// [AWSProperty(Min=60, Max=86400)] public int IdleSessionTTLInSeconds { get { return this._idleSessionTTLInSeconds.GetValueOrDefault(); } set { this._idleSessionTTLInSeconds = value; } } // Check to see if IdleSessionTTLInSeconds property is set internal bool IsSetIdleSessionTTLInSeconds() { return this._idleSessionTTLInSeconds.HasValue; } /// /// Gets and sets the property Intents. /// /// An array of Intent objects. For more information, see PutBot. /// /// public List Intents { get { return this._intents; } set { this._intents = value; } } // Check to see if Intents property is set internal bool IsSetIntents() { return this._intents != null && this._intents.Count > 0; } /// /// Gets and sets the property LastUpdatedDate. /// /// The date when the $LATEST version of this bot was updated. /// /// public DateTime LastUpdatedDate { get { return this._lastUpdatedDate.GetValueOrDefault(); } set { this._lastUpdatedDate = value; } } // Check to see if LastUpdatedDate property is set internal bool IsSetLastUpdatedDate() { return this._lastUpdatedDate.HasValue; } /// /// Gets and sets the property Locale. /// /// Specifies the target locale for the bot. /// /// public Locale Locale { get { return this._locale; } set { this._locale = value; } } // Check to see if Locale property is set internal bool IsSetLocale() { return this._locale != null; } /// /// Gets and sets the property Name. /// /// The name of the bot. /// /// [AWSProperty(Min=2, Max=50)] 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 Status. /// /// When you send a request to create or update a bot, Amazon Lex sets the status /// response element to BUILDING. After Amazon Lex builds the bot, it sets /// status to READY. If Amazon Lex can't build the bot, it sets /// status to FAILED. Amazon Lex returns the reason for the /// failure in the failureReason response element. /// /// public Status Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property Version. /// /// The version of the bot. /// /// [AWSProperty(Min=1, Max=64)] public string Version { get { return this._version; } set { this._version = value; } } // Check to see if Version property is set internal bool IsSetVersion() { return this._version != null; } /// /// Gets and sets the property VoiceId. /// /// The Amazon Polly voice ID that Amazon Lex uses for voice interactions with the user. /// /// public string VoiceId { get { return this._voiceId; } set { this._voiceId = value; } } // Check to see if VoiceId property is set internal bool IsSetVoiceId() { return this._voiceId != null; } } }