/* * 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 { /// /// Subslot elicitation settings. /// /// /// /// DefaultValueSpecification is a list of default values for a constituent /// sub slot in a composite slot. Default values are used when Amazon Lex hasn't determined /// a value for a slot. You can specify default values from context variables, session /// attributes, and defined values. This is similar to DefaultValueSpecification /// for slots. /// /// /// /// PromptSpecification is the prompt that Amazon Lex uses to elicit the /// sub slot value from the user. This is similar to PromptSpecification /// for slots. /// /// public partial class SubSlotValueElicitationSetting { private SlotDefaultValueSpecification _defaultValueSpecification; private PromptSpecification _promptSpecification; private List _sampleUtterances = new List(); private WaitAndContinueSpecification _waitAndContinueSpecification; /// /// Gets and sets the property DefaultValueSpecification. /// public SlotDefaultValueSpecification DefaultValueSpecification { get { return this._defaultValueSpecification; } set { this._defaultValueSpecification = value; } } // Check to see if DefaultValueSpecification property is set internal bool IsSetDefaultValueSpecification() { return this._defaultValueSpecification != null; } /// /// Gets and sets the property PromptSpecification. /// [AWSProperty(Required=true)] public PromptSpecification PromptSpecification { get { return this._promptSpecification; } set { this._promptSpecification = value; } } // Check to see if PromptSpecification property is set internal bool IsSetPromptSpecification() { return this._promptSpecification != null; } /// /// Gets and sets the property SampleUtterances. /// /// If you know a specific pattern that users might respond to an Amazon Lex request for /// a sub slot value, you can provide those utterances to improve accuracy. This is optional. /// In most cases Amazon Lex is capable of understanding user utterances. This is similar /// to SampleUtterances for slots. /// /// public List SampleUtterances { get { return this._sampleUtterances; } set { this._sampleUtterances = value; } } // Check to see if SampleUtterances property is set internal bool IsSetSampleUtterances() { return this._sampleUtterances != null && this._sampleUtterances.Count > 0; } /// /// Gets and sets the property WaitAndContinueSpecification. /// public WaitAndContinueSpecification WaitAndContinueSpecification { get { return this._waitAndContinueSpecification; } set { this._waitAndContinueSpecification = value; } } // Check to see if WaitAndContinueSpecification property is set internal bool IsSetWaitAndContinueSpecification() { return this._waitAndContinueSpecification != null; } } }