/* * 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 a statement the Amazon Lex conveys to the user when the intent is successfully /// fulfilled. /// public partial class IntentClosingSetting { private bool? _active; private ResponseSpecification _closingResponse; private ConditionalSpecification _conditional; private DialogState _nextStep; /// /// Gets and sets the property Active. /// /// Specifies whether an intent's closing response is used. When this field is false, /// the closing response isn't sent to the user. If the active field isn't /// specified, the default is true. /// /// public bool Active { get { return this._active.GetValueOrDefault(); } set { this._active = value; } } // Check to see if Active property is set internal bool IsSetActive() { return this._active.HasValue; } /// /// Gets and sets the property ClosingResponse. /// /// The response that Amazon Lex sends to the user when the intent is complete. /// /// public ResponseSpecification ClosingResponse { get { return this._closingResponse; } set { this._closingResponse = value; } } // Check to see if ClosingResponse property is set internal bool IsSetClosingResponse() { return this._closingResponse != null; } /// /// Gets and sets the property Conditional. /// /// A list of conditional branches associated with the intent's closing response. These /// branches are executed when the nextStep attribute is set to EvalutateConditional. /// /// public ConditionalSpecification Conditional { get { return this._conditional; } set { this._conditional = value; } } // Check to see if Conditional property is set internal bool IsSetConditional() { return this._conditional != null; } /// /// Gets and sets the property NextStep. /// /// Specifies the next step that the bot executes after playing the intent's closing response. /// /// public DialogState NextStep { get { return this._nextStep; } set { this._nextStep = value; } } // Check to see if NextStep property is set internal bool IsSetNextStep() { return this._nextStep != null; } } }