/* * 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 GetBot operation. /// public partial class GetBotResponse : 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 double? _nluIntentConfidenceThreshold; private Status _status; private string _version; private string _voiceId; /// /// Gets and sets the property AbortStatement. /// /// The message that Amazon Lex returns when the user elects to end the conversation without /// completing it. 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 of the bot used to identify a specific revision of the bot's $LATEST /// version. /// /// 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 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 that the bot 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 user utterances 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 explains why 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 that the bot was updated. When you create a resource, the creation date and /// last updated date are the same. /// /// 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. /// /// 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 NluIntentConfidenceThreshold. /// /// The score that determines where Amazon Lex inserts the AMAZON.FallbackIntent, /// AMAZON.KendraSearchIntent, or both when returning alternative intents /// in a PostContent /// or PostText /// response. AMAZON.FallbackIntent is inserted if the confidence score for /// all intents is below this value. AMAZON.KendraSearchIntent is only inserted /// if it is configured for the bot. /// /// [AWSProperty(Min=0, Max=1)] public double NluIntentConfidenceThreshold { get { return this._nluIntentConfidenceThreshold.GetValueOrDefault(); } set { this._nluIntentConfidenceThreshold = value; } } // Check to see if NluIntentConfidenceThreshold property is set internal bool IsSetNluIntentConfidenceThreshold() { return this._nluIntentConfidenceThreshold.HasValue; } /// /// Gets and sets the property Status. /// /// The status of the bot. /// /// /// /// When the status is BUILDING Amazon Lex is building the bot for testing /// and use. /// /// /// /// If the status of the bot is READY_BASIC_TESTING, you can test the bot /// using the exact utterances specified in the bot's intents. When the bot is ready for /// full testing or to run, the status is READY. /// /// /// /// If there was a problem with building the bot, the status is FAILED and /// the failureReason field explains why the bot did not build. /// /// /// /// If the bot was saved but not built, the status is NOT_BUILT. /// /// 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. For a new bot, the version is always $LATEST. /// /// [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 interaction with the user. /// For more information, see PutBot. /// /// 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; } } }