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

The details of the event variable's impact on the prediction score. *

See Also:

AWS * API Reference

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

The event variable name.

*/ inline const Aws::String& GetEventVariableName() const{ return m_eventVariableName; } /** *

The event variable name.

*/ inline bool EventVariableNameHasBeenSet() const { return m_eventVariableNameHasBeenSet; } /** *

The event variable name.

*/ inline void SetEventVariableName(const Aws::String& value) { m_eventVariableNameHasBeenSet = true; m_eventVariableName = value; } /** *

The event variable name.

*/ inline void SetEventVariableName(Aws::String&& value) { m_eventVariableNameHasBeenSet = true; m_eventVariableName = std::move(value); } /** *

The event variable name.

*/ inline void SetEventVariableName(const char* value) { m_eventVariableNameHasBeenSet = true; m_eventVariableName.assign(value); } /** *

The event variable name.

*/ inline VariableImpactExplanation& WithEventVariableName(const Aws::String& value) { SetEventVariableName(value); return *this;} /** *

The event variable name.

*/ inline VariableImpactExplanation& WithEventVariableName(Aws::String&& value) { SetEventVariableName(std::move(value)); return *this;} /** *

The event variable name.

*/ inline VariableImpactExplanation& WithEventVariableName(const char* value) { SetEventVariableName(value); return *this;} /** *

The event variable's relative impact in terms of magnitude on the prediction * scores. The relative impact values consist of a numerical rating (0-5, 5 being * the highest) and direction (increased/decreased) impact of the fraud risk.

*/ inline const Aws::String& GetRelativeImpact() const{ return m_relativeImpact; } /** *

The event variable's relative impact in terms of magnitude on the prediction * scores. The relative impact values consist of a numerical rating (0-5, 5 being * the highest) and direction (increased/decreased) impact of the fraud risk.

*/ inline bool RelativeImpactHasBeenSet() const { return m_relativeImpactHasBeenSet; } /** *

The event variable's relative impact in terms of magnitude on the prediction * scores. The relative impact values consist of a numerical rating (0-5, 5 being * the highest) and direction (increased/decreased) impact of the fraud risk.

*/ inline void SetRelativeImpact(const Aws::String& value) { m_relativeImpactHasBeenSet = true; m_relativeImpact = value; } /** *

The event variable's relative impact in terms of magnitude on the prediction * scores. The relative impact values consist of a numerical rating (0-5, 5 being * the highest) and direction (increased/decreased) impact of the fraud risk.

*/ inline void SetRelativeImpact(Aws::String&& value) { m_relativeImpactHasBeenSet = true; m_relativeImpact = std::move(value); } /** *

The event variable's relative impact in terms of magnitude on the prediction * scores. The relative impact values consist of a numerical rating (0-5, 5 being * the highest) and direction (increased/decreased) impact of the fraud risk.

*/ inline void SetRelativeImpact(const char* value) { m_relativeImpactHasBeenSet = true; m_relativeImpact.assign(value); } /** *

The event variable's relative impact in terms of magnitude on the prediction * scores. The relative impact values consist of a numerical rating (0-5, 5 being * the highest) and direction (increased/decreased) impact of the fraud risk.

*/ inline VariableImpactExplanation& WithRelativeImpact(const Aws::String& value) { SetRelativeImpact(value); return *this;} /** *

The event variable's relative impact in terms of magnitude on the prediction * scores. The relative impact values consist of a numerical rating (0-5, 5 being * the highest) and direction (increased/decreased) impact of the fraud risk.

*/ inline VariableImpactExplanation& WithRelativeImpact(Aws::String&& value) { SetRelativeImpact(std::move(value)); return *this;} /** *

The event variable's relative impact in terms of magnitude on the prediction * scores. The relative impact values consist of a numerical rating (0-5, 5 being * the highest) and direction (increased/decreased) impact of the fraud risk.

*/ inline VariableImpactExplanation& WithRelativeImpact(const char* value) { SetRelativeImpact(value); return *this;} /** *

The raw, uninterpreted value represented as log-odds of the fraud. These * values are usually between -10 to +10, but range from - infinity to + * infinity.

  • A positive value indicates that the variable drove * the risk score up.

  • A negative value indicates that the * variable drove the risk score down.

*/ inline double GetLogOddsImpact() const{ return m_logOddsImpact; } /** *

The raw, uninterpreted value represented as log-odds of the fraud. These * values are usually between -10 to +10, but range from - infinity to + * infinity.

  • A positive value indicates that the variable drove * the risk score up.

  • A negative value indicates that the * variable drove the risk score down.

*/ inline bool LogOddsImpactHasBeenSet() const { return m_logOddsImpactHasBeenSet; } /** *

The raw, uninterpreted value represented as log-odds of the fraud. These * values are usually between -10 to +10, but range from - infinity to + * infinity.

  • A positive value indicates that the variable drove * the risk score up.

  • A negative value indicates that the * variable drove the risk score down.

*/ inline void SetLogOddsImpact(double value) { m_logOddsImpactHasBeenSet = true; m_logOddsImpact = value; } /** *

The raw, uninterpreted value represented as log-odds of the fraud. These * values are usually between -10 to +10, but range from - infinity to + * infinity.

  • A positive value indicates that the variable drove * the risk score up.

  • A negative value indicates that the * variable drove the risk score down.

*/ inline VariableImpactExplanation& WithLogOddsImpact(double value) { SetLogOddsImpact(value); return *this;} private: Aws::String m_eventVariableName; bool m_eventVariableNameHasBeenSet = false; Aws::String m_relativeImpact; bool m_relativeImpactHasBeenSet = false; double m_logOddsImpact; bool m_logOddsImpactHasBeenSet = false; }; } // namespace Model } // namespace FraudDetector } // namespace Aws