/*
* 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 a list of message groups that Amazon Lex uses to respond the user input.
///
public partial class ResponseSpecification
{
private bool? _allowInterrupt;
private List _messageGroups = new List();
///
/// Gets and sets the property AllowInterrupt.
///
/// Indicates whether the user can interrupt a speech response from Amazon Lex.
///
///
public bool AllowInterrupt
{
get { return this._allowInterrupt.GetValueOrDefault(); }
set { this._allowInterrupt = value; }
}
// Check to see if AllowInterrupt property is set
internal bool IsSetAllowInterrupt()
{
return this._allowInterrupt.HasValue;
}
///
/// Gets and sets the property MessageGroups.
///
/// A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses
/// the actual response to send at runtime.
///
///
[AWSProperty(Required=true, Min=1, Max=5)]
public List MessageGroups
{
get { return this._messageGroups; }
set { this._messageGroups = value; }
}
// Check to see if MessageGroups property is set
internal bool IsSetMessageGroups()
{
return this._messageGroups != null && this._messageGroups.Count > 0;
}
}
}