/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace LexModelsV2 { namespace Model { /** *

Provides an expression that evaluates to true or false.

See * Also:

AWS * API Reference

*/ class Condition { public: AWS_LEXMODELSV2_API Condition(); AWS_LEXMODELSV2_API Condition(Aws::Utils::Json::JsonView jsonValue); AWS_LEXMODELSV2_API Condition& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The expression string that is evaluated.

*/ inline const Aws::String& GetExpressionString() const{ return m_expressionString; } /** *

The expression string that is evaluated.

*/ inline bool ExpressionStringHasBeenSet() const { return m_expressionStringHasBeenSet; } /** *

The expression string that is evaluated.

*/ inline void SetExpressionString(const Aws::String& value) { m_expressionStringHasBeenSet = true; m_expressionString = value; } /** *

The expression string that is evaluated.

*/ inline void SetExpressionString(Aws::String&& value) { m_expressionStringHasBeenSet = true; m_expressionString = std::move(value); } /** *

The expression string that is evaluated.

*/ inline void SetExpressionString(const char* value) { m_expressionStringHasBeenSet = true; m_expressionString.assign(value); } /** *

The expression string that is evaluated.

*/ inline Condition& WithExpressionString(const Aws::String& value) { SetExpressionString(value); return *this;} /** *

The expression string that is evaluated.

*/ inline Condition& WithExpressionString(Aws::String&& value) { SetExpressionString(std::move(value)); return *this;} /** *

The expression string that is evaluated.

*/ inline Condition& WithExpressionString(const char* value) { SetExpressionString(value); return *this;} private: Aws::String m_expressionString; bool m_expressionStringHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws