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

A logical rule statement used to combine other rule statements with OR logic. * You provide more than one Statement within the OrStatement. *

See Also:

AWS * API Reference

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

The statements to combine with OR logic. You can use any statements that can * be nested.

*/ inline const Aws::Vector& GetStatements() const{ return m_statements; } /** *

The statements to combine with OR logic. You can use any statements that can * be nested.

*/ inline bool StatementsHasBeenSet() const { return m_statementsHasBeenSet; } /** *

The statements to combine with OR logic. You can use any statements that can * be nested.

*/ inline void SetStatements(const Aws::Vector& value) { m_statementsHasBeenSet = true; m_statements = value; } /** *

The statements to combine with OR logic. You can use any statements that can * be nested.

*/ inline void SetStatements(Aws::Vector&& value) { m_statementsHasBeenSet = true; m_statements = std::move(value); } /** *

The statements to combine with OR logic. You can use any statements that can * be nested.

*/ inline OrStatement& WithStatements(const Aws::Vector& value) { SetStatements(value); return *this;} /** *

The statements to combine with OR logic. You can use any statements that can * be nested.

*/ inline OrStatement& WithStatements(Aws::Vector&& value) { SetStatements(std::move(value)); return *this;} /** *

The statements to combine with OR logic. You can use any statements that can * be nested.

*/ inline OrStatement& AddStatements(const Statement& value) { m_statementsHasBeenSet = true; m_statements.push_back(value); return *this; } /** *

The statements to combine with OR logic. You can use any statements that can * be nested.

*/ inline OrStatement& AddStatements(Statement&& value) { m_statementsHasBeenSet = true; m_statements.push_back(std::move(value)); return *this; } private: Aws::Vector m_statements; bool m_statementsHasBeenSet = false; }; } // namespace Model } // namespace WAFV2 } // namespace Aws