/*
* 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
{
///
/// Specifies the DTMF input specifications.
///
public partial class DTMFSpecification
{
private string _deletionCharacter;
private string _endCharacter;
private int? _endTimeoutMs;
private int? _maxLength;
///
/// Gets and sets the property DeletionCharacter.
///
/// The DTMF character that clears the accumulated DTMF digits and immediately ends the
/// input.
///
///
[AWSProperty(Required=true)]
public string DeletionCharacter
{
get { return this._deletionCharacter; }
set { this._deletionCharacter = value; }
}
// Check to see if DeletionCharacter property is set
internal bool IsSetDeletionCharacter()
{
return this._deletionCharacter != null;
}
///
/// Gets and sets the property EndCharacter.
///
/// The DTMF character that immediately ends input. If the user does not press this character,
/// the input ends after the end timeout.
///
///
[AWSProperty(Required=true)]
public string EndCharacter
{
get { return this._endCharacter; }
set { this._endCharacter = value; }
}
// Check to see if EndCharacter property is set
internal bool IsSetEndCharacter()
{
return this._endCharacter != null;
}
///
/// Gets and sets the property EndTimeoutMs.
///
/// How long the bot should wait after the last DTMF character input before assuming that
/// the input has concluded.
///
///
[AWSProperty(Required=true, Min=1)]
public int EndTimeoutMs
{
get { return this._endTimeoutMs.GetValueOrDefault(); }
set { this._endTimeoutMs = value; }
}
// Check to see if EndTimeoutMs property is set
internal bool IsSetEndTimeoutMs()
{
return this._endTimeoutMs.HasValue;
}
///
/// Gets and sets the property MaxLength.
///
/// The maximum number of DTMF digits allowed in an utterance.
///
///
[AWSProperty(Required=true, Min=1, Max=1024)]
public int MaxLength
{
get { return this._maxLength.GetValueOrDefault(); }
set { this._maxLength = value; }
}
// Check to see if MaxLength property is set
internal bool IsSetMaxLength()
{
return this._maxLength.HasValue;
}
}
}