/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies the parameters to update in an existing automation rule.
* See Also:
AWS
* API Reference
The Amazon Resource Name (ARN) for the rule.
*/ inline const Aws::String& GetRuleArn() const{ return m_ruleArn; } /** *The Amazon Resource Name (ARN) for the rule.
*/ inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; } /** *The Amazon Resource Name (ARN) for the rule.
*/ inline void SetRuleArn(const Aws::String& value) { m_ruleArnHasBeenSet = true; m_ruleArn = value; } /** *The Amazon Resource Name (ARN) for the rule.
*/ inline void SetRuleArn(Aws::String&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::move(value); } /** *The Amazon Resource Name (ARN) for the rule.
*/ inline void SetRuleArn(const char* value) { m_ruleArnHasBeenSet = true; m_ruleArn.assign(value); } /** *The Amazon Resource Name (ARN) for the rule.
*/ inline UpdateAutomationRulesRequestItem& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;} /** *The Amazon Resource Name (ARN) for the rule.
*/ inline UpdateAutomationRulesRequestItem& WithRuleArn(Aws::String&& value) { SetRuleArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) for the rule.
*/ inline UpdateAutomationRulesRequestItem& WithRuleArn(const char* value) { SetRuleArn(value); return *this;} /** * Whether the rule is active after it is created. If this parameter is equal
* to ENABLED
, Security Hub starts applying the rule to findings and
* finding updates after the rule is created. To change the value of this parameter
* after creating a rule, use
* BatchUpdateAutomationRules
.
Whether the rule is active after it is created. If this parameter is equal
* to ENABLED
, Security Hub starts applying the rule to findings and
* finding updates after the rule is created. To change the value of this parameter
* after creating a rule, use
* BatchUpdateAutomationRules
.
Whether the rule is active after it is created. If this parameter is equal
* to ENABLED
, Security Hub starts applying the rule to findings and
* finding updates after the rule is created. To change the value of this parameter
* after creating a rule, use
* BatchUpdateAutomationRules
.
Whether the rule is active after it is created. If this parameter is equal
* to ENABLED
, Security Hub starts applying the rule to findings and
* finding updates after the rule is created. To change the value of this parameter
* after creating a rule, use
* BatchUpdateAutomationRules
.
Whether the rule is active after it is created. If this parameter is equal
* to ENABLED
, Security Hub starts applying the rule to findings and
* finding updates after the rule is created. To change the value of this parameter
* after creating a rule, use
* BatchUpdateAutomationRules
.
Whether the rule is active after it is created. If this parameter is equal
* to ENABLED
, Security Hub starts applying the rule to findings and
* finding updates after the rule is created. To change the value of this parameter
* after creating a rule, use
* BatchUpdateAutomationRules
.
An integer ranging from 1 to 1000 that represents the order in which the * rule action is applied to findings. Security Hub applies rules with lower values * for this parameter first.
*/ inline int GetRuleOrder() const{ return m_ruleOrder; } /** *An integer ranging from 1 to 1000 that represents the order in which the * rule action is applied to findings. Security Hub applies rules with lower values * for this parameter first.
*/ inline bool RuleOrderHasBeenSet() const { return m_ruleOrderHasBeenSet; } /** *An integer ranging from 1 to 1000 that represents the order in which the * rule action is applied to findings. Security Hub applies rules with lower values * for this parameter first.
*/ inline void SetRuleOrder(int value) { m_ruleOrderHasBeenSet = true; m_ruleOrder = value; } /** *An integer ranging from 1 to 1000 that represents the order in which the * rule action is applied to findings. Security Hub applies rules with lower values * for this parameter first.
*/ inline UpdateAutomationRulesRequestItem& WithRuleOrder(int value) { SetRuleOrder(value); return *this;} /** *A description of the rule.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *A description of the rule.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *A description of the rule.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *A description of the rule.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *A description of the rule.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *A description of the rule.
*/ inline UpdateAutomationRulesRequestItem& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *A description of the rule.
*/ inline UpdateAutomationRulesRequestItem& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *A description of the rule.
*/ inline UpdateAutomationRulesRequestItem& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The name of the rule.
*/ inline const Aws::String& GetRuleName() const{ return m_ruleName; } /** *The name of the rule.
*/ inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; } /** *The name of the rule.
*/ inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; } /** *The name of the rule.
*/ inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); } /** *The name of the rule.
*/ inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); } /** *The name of the rule.
*/ inline UpdateAutomationRulesRequestItem& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;} /** *The name of the rule.
*/ inline UpdateAutomationRulesRequestItem& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;} /** *The name of the rule.
*/ inline UpdateAutomationRulesRequestItem& WithRuleName(const char* value) { SetRuleName(value); return *this;} /** *Specifies whether a rule is the last to be applied with respect to a finding * that matches the rule criteria. This is useful when a finding matches the * criteria for multiple rules, and each rule has different actions. If a rule is * terminal, Security Hub applies the rule action to a finding that matches the * rule criteria and doesn't evaluate other rules for the finding. By default, a * rule isn't terminal.
*/ inline bool GetIsTerminal() const{ return m_isTerminal; } /** *Specifies whether a rule is the last to be applied with respect to a finding * that matches the rule criteria. This is useful when a finding matches the * criteria for multiple rules, and each rule has different actions. If a rule is * terminal, Security Hub applies the rule action to a finding that matches the * rule criteria and doesn't evaluate other rules for the finding. By default, a * rule isn't terminal.
*/ inline bool IsTerminalHasBeenSet() const { return m_isTerminalHasBeenSet; } /** *Specifies whether a rule is the last to be applied with respect to a finding * that matches the rule criteria. This is useful when a finding matches the * criteria for multiple rules, and each rule has different actions. If a rule is * terminal, Security Hub applies the rule action to a finding that matches the * rule criteria and doesn't evaluate other rules for the finding. By default, a * rule isn't terminal.
*/ inline void SetIsTerminal(bool value) { m_isTerminalHasBeenSet = true; m_isTerminal = value; } /** *Specifies whether a rule is the last to be applied with respect to a finding * that matches the rule criteria. This is useful when a finding matches the * criteria for multiple rules, and each rule has different actions. If a rule is * terminal, Security Hub applies the rule action to a finding that matches the * rule criteria and doesn't evaluate other rules for the finding. By default, a * rule isn't terminal.
*/ inline UpdateAutomationRulesRequestItem& WithIsTerminal(bool value) { SetIsTerminal(value); return *this;} /** *A set of ASFF finding field attributes and corresponding expected values * that Security Hub uses to filter findings. If a rule is enabled and a finding * matches the conditions specified in this parameter, Security Hub applies the * rule action to the finding.
*/ inline const AutomationRulesFindingFilters& GetCriteria() const{ return m_criteria; } /** *A set of ASFF finding field attributes and corresponding expected values * that Security Hub uses to filter findings. If a rule is enabled and a finding * matches the conditions specified in this parameter, Security Hub applies the * rule action to the finding.
*/ inline bool CriteriaHasBeenSet() const { return m_criteriaHasBeenSet; } /** *A set of ASFF finding field attributes and corresponding expected values * that Security Hub uses to filter findings. If a rule is enabled and a finding * matches the conditions specified in this parameter, Security Hub applies the * rule action to the finding.
*/ inline void SetCriteria(const AutomationRulesFindingFilters& value) { m_criteriaHasBeenSet = true; m_criteria = value; } /** *A set of ASFF finding field attributes and corresponding expected values * that Security Hub uses to filter findings. If a rule is enabled and a finding * matches the conditions specified in this parameter, Security Hub applies the * rule action to the finding.
*/ inline void SetCriteria(AutomationRulesFindingFilters&& value) { m_criteriaHasBeenSet = true; m_criteria = std::move(value); } /** *A set of ASFF finding field attributes and corresponding expected values * that Security Hub uses to filter findings. If a rule is enabled and a finding * matches the conditions specified in this parameter, Security Hub applies the * rule action to the finding.
*/ inline UpdateAutomationRulesRequestItem& WithCriteria(const AutomationRulesFindingFilters& value) { SetCriteria(value); return *this;} /** *A set of ASFF finding field attributes and corresponding expected values * that Security Hub uses to filter findings. If a rule is enabled and a finding * matches the conditions specified in this parameter, Security Hub applies the * rule action to the finding.
*/ inline UpdateAutomationRulesRequestItem& WithCriteria(AutomationRulesFindingFilters&& value) { SetCriteria(std::move(value)); return *this;} /** * One or more actions to update finding fields if a finding matches the
* conditions specified in Criteria
.
One or more actions to update finding fields if a finding matches the
* conditions specified in Criteria
.
One or more actions to update finding fields if a finding matches the
* conditions specified in Criteria
.
One or more actions to update finding fields if a finding matches the
* conditions specified in Criteria
.
One or more actions to update finding fields if a finding matches the
* conditions specified in Criteria
.
One or more actions to update finding fields if a finding matches the
* conditions specified in Criteria
.
One or more actions to update finding fields if a finding matches the
* conditions specified in Criteria
.
One or more actions to update finding fields if a finding matches the
* conditions specified in Criteria
.