/** * 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 SecurityHub { namespace Model { /** *

One or more actions to update finding fields if a finding matches the * defined criteria of the rule.

See Also:

AWS * API Reference

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

Specifies that the rule action should update the Types finding * field. The Types finding field classifies findings in the format of * namespace/category/classifier. For more information, see Types * taxonomy for ASFF in the Security Hub User Guide.

*/ inline const AutomationRulesActionType& GetType() const{ return m_type; } /** *

Specifies that the rule action should update the Types finding * field. The Types finding field classifies findings in the format of * namespace/category/classifier. For more information, see Types * taxonomy for ASFF in the Security Hub User Guide.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

Specifies that the rule action should update the Types finding * field. The Types finding field classifies findings in the format of * namespace/category/classifier. For more information, see Types * taxonomy for ASFF in the Security Hub User Guide.

*/ inline void SetType(const AutomationRulesActionType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

Specifies that the rule action should update the Types finding * field. The Types finding field classifies findings in the format of * namespace/category/classifier. For more information, see Types * taxonomy for ASFF in the Security Hub User Guide.

*/ inline void SetType(AutomationRulesActionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

Specifies that the rule action should update the Types finding * field. The Types finding field classifies findings in the format of * namespace/category/classifier. For more information, see Types * taxonomy for ASFF in the Security Hub User Guide.

*/ inline AutomationRulesAction& WithType(const AutomationRulesActionType& value) { SetType(value); return *this;} /** *

Specifies that the rule action should update the Types finding * field. The Types finding field classifies findings in the format of * namespace/category/classifier. For more information, see Types * taxonomy for ASFF in the Security Hub User Guide.

*/ inline AutomationRulesAction& WithType(AutomationRulesActionType&& value) { SetType(std::move(value)); return *this;} /** *

Specifies that the automation rule action is an update to a finding field. *

*/ inline const AutomationRulesFindingFieldsUpdate& GetFindingFieldsUpdate() const{ return m_findingFieldsUpdate; } /** *

Specifies that the automation rule action is an update to a finding field. *

*/ inline bool FindingFieldsUpdateHasBeenSet() const { return m_findingFieldsUpdateHasBeenSet; } /** *

Specifies that the automation rule action is an update to a finding field. *

*/ inline void SetFindingFieldsUpdate(const AutomationRulesFindingFieldsUpdate& value) { m_findingFieldsUpdateHasBeenSet = true; m_findingFieldsUpdate = value; } /** *

Specifies that the automation rule action is an update to a finding field. *

*/ inline void SetFindingFieldsUpdate(AutomationRulesFindingFieldsUpdate&& value) { m_findingFieldsUpdateHasBeenSet = true; m_findingFieldsUpdate = std::move(value); } /** *

Specifies that the automation rule action is an update to a finding field. *

*/ inline AutomationRulesAction& WithFindingFieldsUpdate(const AutomationRulesFindingFieldsUpdate& value) { SetFindingFieldsUpdate(value); return *this;} /** *

Specifies that the automation rule action is an update to a finding field. *

*/ inline AutomationRulesAction& WithFindingFieldsUpdate(AutomationRulesFindingFieldsUpdate&& value) { SetFindingFieldsUpdate(std::move(value)); return *this;} private: AutomationRulesActionType m_type; bool m_typeHasBeenSet = false; AutomationRulesFindingFieldsUpdate m_findingFieldsUpdate; bool m_findingFieldsUpdateHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws