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

Stateless rules and custom actions for a stateless rule group.

See * Also:

AWS * API Reference

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

Custom actions for the rule group.

*/ inline const Aws::Vector& GetCustomActions() const{ return m_customActions; } /** *

Custom actions for the rule group.

*/ inline bool CustomActionsHasBeenSet() const { return m_customActionsHasBeenSet; } /** *

Custom actions for the rule group.

*/ inline void SetCustomActions(const Aws::Vector& value) { m_customActionsHasBeenSet = true; m_customActions = value; } /** *

Custom actions for the rule group.

*/ inline void SetCustomActions(Aws::Vector&& value) { m_customActionsHasBeenSet = true; m_customActions = std::move(value); } /** *

Custom actions for the rule group.

*/ inline RuleGroupSourceStatelessRulesAndCustomActionsDetails& WithCustomActions(const Aws::Vector& value) { SetCustomActions(value); return *this;} /** *

Custom actions for the rule group.

*/ inline RuleGroupSourceStatelessRulesAndCustomActionsDetails& WithCustomActions(Aws::Vector&& value) { SetCustomActions(std::move(value)); return *this;} /** *

Custom actions for the rule group.

*/ inline RuleGroupSourceStatelessRulesAndCustomActionsDetails& AddCustomActions(const RuleGroupSourceCustomActionsDetails& value) { m_customActionsHasBeenSet = true; m_customActions.push_back(value); return *this; } /** *

Custom actions for the rule group.

*/ inline RuleGroupSourceStatelessRulesAndCustomActionsDetails& AddCustomActions(RuleGroupSourceCustomActionsDetails&& value) { m_customActionsHasBeenSet = true; m_customActions.push_back(std::move(value)); return *this; } /** *

Stateless rules for the rule group.

*/ inline const Aws::Vector& GetStatelessRules() const{ return m_statelessRules; } /** *

Stateless rules for the rule group.

*/ inline bool StatelessRulesHasBeenSet() const { return m_statelessRulesHasBeenSet; } /** *

Stateless rules for the rule group.

*/ inline void SetStatelessRules(const Aws::Vector& value) { m_statelessRulesHasBeenSet = true; m_statelessRules = value; } /** *

Stateless rules for the rule group.

*/ inline void SetStatelessRules(Aws::Vector&& value) { m_statelessRulesHasBeenSet = true; m_statelessRules = std::move(value); } /** *

Stateless rules for the rule group.

*/ inline RuleGroupSourceStatelessRulesAndCustomActionsDetails& WithStatelessRules(const Aws::Vector& value) { SetStatelessRules(value); return *this;} /** *

Stateless rules for the rule group.

*/ inline RuleGroupSourceStatelessRulesAndCustomActionsDetails& WithStatelessRules(Aws::Vector&& value) { SetStatelessRules(std::move(value)); return *this;} /** *

Stateless rules for the rule group.

*/ inline RuleGroupSourceStatelessRulesAndCustomActionsDetails& AddStatelessRules(const RuleGroupSourceStatelessRulesDetails& value) { m_statelessRulesHasBeenSet = true; m_statelessRules.push_back(value); return *this; } /** *

Stateless rules for the rule group.

*/ inline RuleGroupSourceStatelessRulesAndCustomActionsDetails& AddStatelessRules(RuleGroupSourceStatelessRulesDetails&& value) { m_statelessRulesHasBeenSet = true; m_statelessRules.push_back(std::move(value)); return *this; } private: Aws::Vector m_customActions; bool m_customActionsHasBeenSet = false; Aws::Vector m_statelessRules; bool m_statelessRulesHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws