/* * 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 { /// /// Identifies the version of a specific slot. /// public partial class Slot { private SlotDefaultValueSpec _defaultValueSpec; private string _description; private string _name; private ObfuscationSetting _obfuscationSetting; private int? _priority; private string _responseCard; private List _sampleUtterances = new List(); private SlotConstraint _slotConstraint; private string _slotType; private string _slotTypeVersion; private Prompt _valueElicitationPrompt; /// /// Gets and sets the property DefaultValueSpec. /// /// A list of default values for the 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. /// /// public SlotDefaultValueSpec DefaultValueSpec { get { return this._defaultValueSpec; } set { this._defaultValueSpec = value; } } // Check to see if DefaultValueSpec property is set internal bool IsSetDefaultValueSpec() { return this._defaultValueSpec != null; } /// /// Gets and sets the property Description. /// /// A description of the slot. /// /// [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 Name. /// /// The name of the slot. /// /// [AWSProperty(Required=true, Min=1, Max=100)] 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 ObfuscationSetting. /// /// Determines whether a slot is obfuscated in conversation logs and stored utterances. /// When you obfuscate a slot, the value is replaced by the slot name in curly braces /// ({}). For example, if the slot name is "full_name", obfuscated values are replaced /// with "{full_name}". For more information, see /// Slot Obfuscation . /// /// public ObfuscationSetting ObfuscationSetting { get { return this._obfuscationSetting; } set { this._obfuscationSetting = value; } } // Check to see if ObfuscationSetting property is set internal bool IsSetObfuscationSetting() { return this._obfuscationSetting != null; } /// /// Gets and sets the property Priority. /// /// Directs Amazon Lex the order in which to elicit this slot value from the user. For /// example, if the intent has two slots with priorities 1 and 2, AWS Amazon Lex first /// elicits a value for the slot with priority 1. /// /// /// /// If multiple slots share the same priority, the order in which Amazon Lex elicits values /// is arbitrary. /// /// [AWSProperty(Min=0, Max=100)] public int Priority { get { return this._priority.GetValueOrDefault(); } set { this._priority = value; } } // Check to see if Priority property is set internal bool IsSetPriority() { return this._priority.HasValue; } /// /// Gets and sets the property ResponseCard. /// /// A set of possible responses for the slot type used by text-based clients. A user /// chooses an option from the response card, instead of using text to reply. /// /// [AWSProperty(Min=1, Max=50000)] public string ResponseCard { get { return this._responseCard; } set { this._responseCard = value; } } // Check to see if ResponseCard property is set internal bool IsSetResponseCard() { return this._responseCard != null; } /// /// Gets and sets the property SampleUtterances. /// /// If you know a specific pattern with which users might respond to an Amazon Lex request /// for a slot value, you can provide those utterances to improve accuracy. This is optional. /// In most cases, Amazon Lex is capable of understanding user utterances. /// /// [AWSProperty(Min=0, Max=10)] 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 SlotConstraint. /// /// Specifies whether the slot is required or optional. /// /// [AWSProperty(Required=true)] public SlotConstraint SlotConstraint { get { return this._slotConstraint; } set { this._slotConstraint = value; } } // Check to see if SlotConstraint property is set internal bool IsSetSlotConstraint() { return this._slotConstraint != null; } /// /// Gets and sets the property SlotType. /// /// The type of the slot, either a custom slot type that you defined or one of the built-in /// slot types. /// /// [AWSProperty(Min=1, Max=100)] public string SlotType { get { return this._slotType; } set { this._slotType = value; } } // Check to see if SlotType property is set internal bool IsSetSlotType() { return this._slotType != null; } /// /// Gets and sets the property SlotTypeVersion. /// /// The version of the slot type. /// /// [AWSProperty(Min=1, Max=64)] public string SlotTypeVersion { get { return this._slotTypeVersion; } set { this._slotTypeVersion = value; } } // Check to see if SlotTypeVersion property is set internal bool IsSetSlotTypeVersion() { return this._slotTypeVersion != null; } /// /// Gets and sets the property ValueElicitationPrompt. /// /// The prompt that Amazon Lex uses to elicit the slot value from the user. /// /// public Prompt ValueElicitationPrompt { get { return this._valueElicitationPrompt; } set { this._valueElicitationPrompt = value; } } // Check to see if ValueElicitationPrompt property is set internal bool IsSetValueElicitationPrompt() { return this._valueElicitationPrompt != null; } } }