/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A stateless rule in the rule group.See Also:
AWS
* API Reference
Indicates the order in which to run this rule relative to all of the rules in * the stateless rule group.
*/ inline int GetPriority() const{ return m_priority; } /** *Indicates the order in which to run this rule relative to all of the rules in * the stateless rule group.
*/ inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; } /** *Indicates the order in which to run this rule relative to all of the rules in * the stateless rule group.
*/ inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; } /** *Indicates the order in which to run this rule relative to all of the rules in * the stateless rule group.
*/ inline RuleGroupSourceStatelessRulesDetails& WithPriority(int value) { SetPriority(value); return *this;} /** *Provides the definition of the stateless rule.
*/ inline const RuleGroupSourceStatelessRuleDefinition& GetRuleDefinition() const{ return m_ruleDefinition; } /** *Provides the definition of the stateless rule.
*/ inline bool RuleDefinitionHasBeenSet() const { return m_ruleDefinitionHasBeenSet; } /** *Provides the definition of the stateless rule.
*/ inline void SetRuleDefinition(const RuleGroupSourceStatelessRuleDefinition& value) { m_ruleDefinitionHasBeenSet = true; m_ruleDefinition = value; } /** *Provides the definition of the stateless rule.
*/ inline void SetRuleDefinition(RuleGroupSourceStatelessRuleDefinition&& value) { m_ruleDefinitionHasBeenSet = true; m_ruleDefinition = std::move(value); } /** *Provides the definition of the stateless rule.
*/ inline RuleGroupSourceStatelessRulesDetails& WithRuleDefinition(const RuleGroupSourceStatelessRuleDefinition& value) { SetRuleDefinition(value); return *this;} /** *Provides the definition of the stateless rule.
*/ inline RuleGroupSourceStatelessRulesDetails& WithRuleDefinition(RuleGroupSourceStatelessRuleDefinition&& value) { SetRuleDefinition(std::move(value)); return *this;} private: int m_priority; bool m_priorityHasBeenSet = false; RuleGroupSourceStatelessRuleDefinition m_ruleDefinition; bool m_ruleDefinitionHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws