/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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.See
* Also:
AWS
* API Reference
Determines whether a conditional branch is active. When active
* is false, the conditions are not evaluated.
Determines whether a conditional branch is active. When active
* is false, the conditions are not evaluated.
Determines whether a conditional branch is active. When active
* is false, the conditions are not evaluated.
Determines whether a conditional branch is active. When active
* is false, the conditions are not evaluated.
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.
*/ inline const Aws::VectorA 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.
*/ inline bool ConditionalBranchesHasBeenSet() const { return m_conditionalBranchesHasBeenSet; } /** *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.
*/ inline void SetConditionalBranches(const Aws::VectorA 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.
*/ inline void SetConditionalBranches(Aws::VectorA 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.
*/ inline ConditionalSpecification& WithConditionalBranches(const Aws::VectorA 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.
*/ inline ConditionalSpecification& WithConditionalBranches(Aws::VectorA 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.
*/ inline ConditionalSpecification& AddConditionalBranches(const ConditionalBranch& value) { m_conditionalBranchesHasBeenSet = true; m_conditionalBranches.push_back(value); return *this; } /** *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.
*/ inline ConditionalSpecification& AddConditionalBranches(ConditionalBranch&& value) { m_conditionalBranchesHasBeenSet = true; m_conditionalBranches.push_back(std::move(value)); return *this; } /** *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.
*/ inline const DefaultConditionalBranch& GetDefaultBranch() const{ return m_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.
*/ inline bool DefaultBranchHasBeenSet() const { return m_defaultBranchHasBeenSet; } /** *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.
*/ inline void SetDefaultBranch(const DefaultConditionalBranch& value) { m_defaultBranchHasBeenSet = true; m_defaultBranch = value; } /** *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.
*/ inline void SetDefaultBranch(DefaultConditionalBranch&& value) { m_defaultBranchHasBeenSet = true; m_defaultBranch = std::move(value); } /** *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.
*/ inline ConditionalSpecification& WithDefaultBranch(const DefaultConditionalBranch& value) { SetDefaultBranch(value); return *this;} /** *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.
*/ inline ConditionalSpecification& WithDefaultBranch(DefaultConditionalBranch&& value) { SetDefaultBranch(std::move(value)); return *this;} private: bool m_active; bool m_activeHasBeenSet = false; Aws::Vector