AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EvaluatedRule.h
1
6#pragma once
7#include <aws/frauddetector/FraudDetector_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace FraudDetector
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_FRAUDDETECTOR_API EvaluatedRule() = default;
37 AWS_FRAUDDETECTOR_API EvaluatedRule(Aws::Utils::Json::JsonView jsonValue);
38 AWS_FRAUDDETECTOR_API EvaluatedRule& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_FRAUDDETECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetRuleId() const { return m_ruleId; }
47 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
48 template<typename RuleIdT = Aws::String>
49 void SetRuleId(RuleIdT&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::forward<RuleIdT>(value); }
50 template<typename RuleIdT = Aws::String>
51 EvaluatedRule& WithRuleId(RuleIdT&& value) { SetRuleId(std::forward<RuleIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetRuleVersion() const { return m_ruleVersion; }
59 inline bool RuleVersionHasBeenSet() const { return m_ruleVersionHasBeenSet; }
60 template<typename RuleVersionT = Aws::String>
61 void SetRuleVersion(RuleVersionT&& value) { m_ruleVersionHasBeenSet = true; m_ruleVersion = std::forward<RuleVersionT>(value); }
62 template<typename RuleVersionT = Aws::String>
63 EvaluatedRule& WithRuleVersion(RuleVersionT&& value) { SetRuleVersion(std::forward<RuleVersionT>(value)); return *this;}
65
67
70 inline const Aws::String& GetExpression() const { return m_expression; }
71 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
72 template<typename ExpressionT = Aws::String>
73 void SetExpression(ExpressionT&& value) { m_expressionHasBeenSet = true; m_expression = std::forward<ExpressionT>(value); }
74 template<typename ExpressionT = Aws::String>
75 EvaluatedRule& WithExpression(ExpressionT&& value) { SetExpression(std::forward<ExpressionT>(value)); return *this;}
77
79
82 inline const Aws::String& GetExpressionWithValues() const { return m_expressionWithValues; }
83 inline bool ExpressionWithValuesHasBeenSet() const { return m_expressionWithValuesHasBeenSet; }
84 template<typename ExpressionWithValuesT = Aws::String>
85 void SetExpressionWithValues(ExpressionWithValuesT&& value) { m_expressionWithValuesHasBeenSet = true; m_expressionWithValues = std::forward<ExpressionWithValuesT>(value); }
86 template<typename ExpressionWithValuesT = Aws::String>
87 EvaluatedRule& WithExpressionWithValues(ExpressionWithValuesT&& value) { SetExpressionWithValues(std::forward<ExpressionWithValuesT>(value)); return *this;}
89
91
94 inline const Aws::Vector<Aws::String>& GetOutcomes() const { return m_outcomes; }
95 inline bool OutcomesHasBeenSet() const { return m_outcomesHasBeenSet; }
96 template<typename OutcomesT = Aws::Vector<Aws::String>>
97 void SetOutcomes(OutcomesT&& value) { m_outcomesHasBeenSet = true; m_outcomes = std::forward<OutcomesT>(value); }
98 template<typename OutcomesT = Aws::Vector<Aws::String>>
99 EvaluatedRule& WithOutcomes(OutcomesT&& value) { SetOutcomes(std::forward<OutcomesT>(value)); return *this;}
100 template<typename OutcomesT = Aws::String>
101 EvaluatedRule& AddOutcomes(OutcomesT&& value) { m_outcomesHasBeenSet = true; m_outcomes.emplace_back(std::forward<OutcomesT>(value)); return *this; }
103
105
108 inline bool GetEvaluated() const { return m_evaluated; }
109 inline bool EvaluatedHasBeenSet() const { return m_evaluatedHasBeenSet; }
110 inline void SetEvaluated(bool value) { m_evaluatedHasBeenSet = true; m_evaluated = value; }
111 inline EvaluatedRule& WithEvaluated(bool value) { SetEvaluated(value); return *this;}
113
115
118 inline bool GetMatched() const { return m_matched; }
119 inline bool MatchedHasBeenSet() const { return m_matchedHasBeenSet; }
120 inline void SetMatched(bool value) { m_matchedHasBeenSet = true; m_matched = value; }
121 inline EvaluatedRule& WithMatched(bool value) { SetMatched(value); return *this;}
123 private:
124
125 Aws::String m_ruleId;
126 bool m_ruleIdHasBeenSet = false;
127
128 Aws::String m_ruleVersion;
129 bool m_ruleVersionHasBeenSet = false;
130
131 Aws::String m_expression;
132 bool m_expressionHasBeenSet = false;
133
134 Aws::String m_expressionWithValues;
135 bool m_expressionWithValuesHasBeenSet = false;
136
137 Aws::Vector<Aws::String> m_outcomes;
138 bool m_outcomesHasBeenSet = false;
139
140 bool m_evaluated{false};
141 bool m_evaluatedHasBeenSet = false;
142
143 bool m_matched{false};
144 bool m_matchedHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace FraudDetector
149} // namespace Aws
AWS_FRAUDDETECTOR_API EvaluatedRule()=default
const Aws::String & GetRuleId() const
EvaluatedRule & WithRuleVersion(RuleVersionT &&value)
EvaluatedRule & WithOutcomes(OutcomesT &&value)
AWS_FRAUDDETECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetExpression(ExpressionT &&value)
EvaluatedRule & WithEvaluated(bool value)
EvaluatedRule & AddOutcomes(OutcomesT &&value)
AWS_FRAUDDETECTOR_API EvaluatedRule(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetExpression() const
EvaluatedRule & WithMatched(bool value)
EvaluatedRule & WithExpression(ExpressionT &&value)
void SetRuleVersion(RuleVersionT &&value)
EvaluatedRule & WithRuleId(RuleIdT &&value)
void SetExpressionWithValues(ExpressionWithValuesT &&value)
const Aws::String & GetExpressionWithValues() const
const Aws::String & GetRuleVersion() const
EvaluatedRule & WithExpressionWithValues(ExpressionWithValuesT &&value)
const Aws::Vector< Aws::String > & GetOutcomes() const
AWS_FRAUDDETECTOR_API EvaluatedRule & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue