/* * 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 next steps to run after the dialog code hook finishes. /// public partial class PostDialogCodeHookInvocationSpecification { private ConditionalSpecification _failureConditional; private DialogState _failureNextStep; private ResponseSpecification _failureResponse; private ConditionalSpecification _successConditional; private DialogState _successNextStep; private ResponseSpecification _successResponse; private ConditionalSpecification _timeoutConditional; private DialogState _timeoutNextStep; private ResponseSpecification _timeoutResponse; /// /// Gets and sets the property FailureConditional. /// /// A list of conditional branches to evaluate after the dialog code hook throws an exception /// or returns with the State field of the Intent object set /// to Failed. /// /// public ConditionalSpecification FailureConditional { get { return this._failureConditional; } set { this._failureConditional = value; } } // Check to see if FailureConditional property is set internal bool IsSetFailureConditional() { return this._failureConditional != null; } /// /// Gets and sets the property FailureNextStep. /// /// Specifies the next step the bot runs after the dialog code hook throws an exception /// or returns with the State field of the Intent object set /// to Failed. /// /// public DialogState FailureNextStep { get { return this._failureNextStep; } set { this._failureNextStep = value; } } // Check to see if FailureNextStep property is set internal bool IsSetFailureNextStep() { return this._failureNextStep != null; } /// /// Gets and sets the property FailureResponse. /// public ResponseSpecification FailureResponse { get { return this._failureResponse; } set { this._failureResponse = value; } } // Check to see if FailureResponse property is set internal bool IsSetFailureResponse() { return this._failureResponse != null; } /// /// Gets and sets the property SuccessConditional. /// /// A list of conditional branches to evaluate after the dialog code hook finishes successfully. /// /// public ConditionalSpecification SuccessConditional { get { return this._successConditional; } set { this._successConditional = value; } } // Check to see if SuccessConditional property is set internal bool IsSetSuccessConditional() { return this._successConditional != null; } /// /// Gets and sets the property SuccessNextStep. /// /// Specifics the next step the bot runs after the dialog code hook finishes successfully. /// /// /// public DialogState SuccessNextStep { get { return this._successNextStep; } set { this._successNextStep = value; } } // Check to see if SuccessNextStep property is set internal bool IsSetSuccessNextStep() { return this._successNextStep != null; } /// /// Gets and sets the property SuccessResponse. /// public ResponseSpecification SuccessResponse { get { return this._successResponse; } set { this._successResponse = value; } } // Check to see if SuccessResponse property is set internal bool IsSetSuccessResponse() { return this._successResponse != null; } /// /// Gets and sets the property TimeoutConditional. /// /// A list of conditional branches to evaluate if the code hook times out. /// /// public ConditionalSpecification TimeoutConditional { get { return this._timeoutConditional; } set { this._timeoutConditional = value; } } // Check to see if TimeoutConditional property is set internal bool IsSetTimeoutConditional() { return this._timeoutConditional != null; } /// /// Gets and sets the property TimeoutNextStep. /// /// Specifies the next step that the bot runs when the code hook times out. /// /// public DialogState TimeoutNextStep { get { return this._timeoutNextStep; } set { this._timeoutNextStep = value; } } // Check to see if TimeoutNextStep property is set internal bool IsSetTimeoutNextStep() { return this._timeoutNextStep != null; } /// /// Gets and sets the property TimeoutResponse. /// public ResponseSpecification TimeoutResponse { get { return this._timeoutResponse; } set { this._timeoutResponse = value; } } // Check to see if TimeoutResponse property is set internal bool IsSetTimeoutResponse() { return this._timeoutResponse != null; } } }