/*
* 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
{
///
/// Provides settings for a message that is sent to the user when a fulfillment Lambda
/// function starts running.
///
public partial class FulfillmentStartResponseSpecification
{
private bool? _allowInterrupt;
private int? _delayInSeconds;
private List _messageGroups = new List();
///
/// Gets and sets the property AllowInterrupt.
///
/// Determines whether the user can interrupt the start message while it is playing.
///
///
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 DelayInSeconds.
///
/// The delay between when the Lambda fulfillment function starts running and the start
/// message is played. If the Lambda function returns before the delay is over, the start
/// message isn't played.
///
///
[AWSProperty(Required=true, Min=1, Max=900)]
public int DelayInSeconds
{
get { return this._delayInSeconds.GetValueOrDefault(); }
set { this._delayInSeconds = value; }
}
// Check to see if DelayInSeconds property is set
internal bool IsSetDelayInSeconds()
{
return this._delayInSeconds.HasValue;
}
///
/// Gets and sets the property MessageGroups.
///
/// 1 - 5 message groups that contain start messages. Amazon Lex chooses one of the messages
/// to play to the user.
///
///
[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;
}
}
}