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

The rule results.

See Also:

AWS * API Reference

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

The rule ID that was matched, based on the rule execution mode.

*/ inline const Aws::String& GetRuleId() const{ return m_ruleId; } /** *

The rule ID that was matched, based on the rule execution mode.

*/ inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; } /** *

The rule ID that was matched, based on the rule execution mode.

*/ inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; } /** *

The rule ID that was matched, based on the rule execution mode.

*/ inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); } /** *

The rule ID that was matched, based on the rule execution mode.

*/ inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); } /** *

The rule ID that was matched, based on the rule execution mode.

*/ inline RuleResult& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;} /** *

The rule ID that was matched, based on the rule execution mode.

*/ inline RuleResult& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;} /** *

The rule ID that was matched, based on the rule execution mode.

*/ inline RuleResult& WithRuleId(const char* value) { SetRuleId(value); return *this;} /** *

The outcomes of the matched rule, based on the rule execution mode.

*/ inline const Aws::Vector& GetOutcomes() const{ return m_outcomes; } /** *

The outcomes of the matched rule, based on the rule execution mode.

*/ inline bool OutcomesHasBeenSet() const { return m_outcomesHasBeenSet; } /** *

The outcomes of the matched rule, based on the rule execution mode.

*/ inline void SetOutcomes(const Aws::Vector& value) { m_outcomesHasBeenSet = true; m_outcomes = value; } /** *

The outcomes of the matched rule, based on the rule execution mode.

*/ inline void SetOutcomes(Aws::Vector&& value) { m_outcomesHasBeenSet = true; m_outcomes = std::move(value); } /** *

The outcomes of the matched rule, based on the rule execution mode.

*/ inline RuleResult& WithOutcomes(const Aws::Vector& value) { SetOutcomes(value); return *this;} /** *

The outcomes of the matched rule, based on the rule execution mode.

*/ inline RuleResult& WithOutcomes(Aws::Vector&& value) { SetOutcomes(std::move(value)); return *this;} /** *

The outcomes of the matched rule, based on the rule execution mode.

*/ inline RuleResult& AddOutcomes(const Aws::String& value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(value); return *this; } /** *

The outcomes of the matched rule, based on the rule execution mode.

*/ inline RuleResult& AddOutcomes(Aws::String&& value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(std::move(value)); return *this; } /** *

The outcomes of the matched rule, based on the rule execution mode.

*/ inline RuleResult& AddOutcomes(const char* value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(value); return *this; } private: Aws::String m_ruleId; bool m_ruleIdHasBeenSet = false; Aws::Vector m_outcomes; bool m_outcomesHasBeenSet = false; }; } // namespace Model } // namespace FraudDetector } // namespace Aws