/* * 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 list of conditional branches. Branches are evaluated in the order that /// they are entered in the list. The first branch with a condition that evaluates to /// true is executed. The last branch in the list is the default branch. The default branch /// should not have any condition expression. The default branch is executed if no other /// branch has a matching condition. /// public partial class ConditionalSpecification { private bool? _active; private List _conditionalBranches = new List(); private DefaultConditionalBranch _defaultBranch; /// /// Gets and sets the property Active. /// /// Determines whether a conditional branch is active. When active is false, /// the conditions are not evaluated. /// /// [AWSProperty(Required=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 ConditionalBranches. /// /// A list of conditional branches. A conditional branch is made up of a condition, a /// response and a next step. The response and next step are executed when the condition /// is true. /// /// [AWSProperty(Required=true, Min=1, Max=4)] public List ConditionalBranches { get { return this._conditionalBranches; } set { this._conditionalBranches = value; } } // Check to see if ConditionalBranches property is set internal bool IsSetConditionalBranches() { return this._conditionalBranches != null && this._conditionalBranches.Count > 0; } /// /// Gets and sets the property DefaultBranch. /// /// The conditional branch that should be followed when the conditions for other branches /// are not satisfied. A conditional branch is made up of a condition, a response and /// a next step. /// /// [AWSProperty(Required=true)] public DefaultConditionalBranch DefaultBranch { get { return this._defaultBranch; } set { this._defaultBranch = value; } } // Check to see if DefaultBranch property is set internal bool IsSetDefaultBranch() { return this._defaultBranch != null; } } }