AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
49 inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
50 inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
51 inline EvaluatedRule& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
52 inline EvaluatedRule& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
53 inline EvaluatedRule& WithRuleId(const char* value) { SetRuleId(value); return *this;}
55
57
60 inline const Aws::String& GetRuleVersion() const{ return m_ruleVersion; }
61 inline bool RuleVersionHasBeenSet() const { return m_ruleVersionHasBeenSet; }
62 inline void SetRuleVersion(const Aws::String& value) { m_ruleVersionHasBeenSet = true; m_ruleVersion = value; }
63 inline void SetRuleVersion(Aws::String&& value) { m_ruleVersionHasBeenSet = true; m_ruleVersion = std::move(value); }
64 inline void SetRuleVersion(const char* value) { m_ruleVersionHasBeenSet = true; m_ruleVersion.assign(value); }
65 inline EvaluatedRule& WithRuleVersion(const Aws::String& value) { SetRuleVersion(value); return *this;}
66 inline EvaluatedRule& WithRuleVersion(Aws::String&& value) { SetRuleVersion(std::move(value)); return *this;}
67 inline EvaluatedRule& WithRuleVersion(const char* value) { SetRuleVersion(value); return *this;}
69
71
74 inline const Aws::String& GetExpression() const{ return m_expression; }
75 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
76 inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
77 inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
78 inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
79 inline EvaluatedRule& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
80 inline EvaluatedRule& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
81 inline EvaluatedRule& WithExpression(const char* value) { SetExpression(value); return *this;}
83
85
88 inline const Aws::String& GetExpressionWithValues() const{ return m_expressionWithValues; }
89 inline bool ExpressionWithValuesHasBeenSet() const { return m_expressionWithValuesHasBeenSet; }
90 inline void SetExpressionWithValues(const Aws::String& value) { m_expressionWithValuesHasBeenSet = true; m_expressionWithValues = value; }
91 inline void SetExpressionWithValues(Aws::String&& value) { m_expressionWithValuesHasBeenSet = true; m_expressionWithValues = std::move(value); }
92 inline void SetExpressionWithValues(const char* value) { m_expressionWithValuesHasBeenSet = true; m_expressionWithValues.assign(value); }
93 inline EvaluatedRule& WithExpressionWithValues(const Aws::String& value) { SetExpressionWithValues(value); return *this;}
94 inline EvaluatedRule& WithExpressionWithValues(Aws::String&& value) { SetExpressionWithValues(std::move(value)); return *this;}
95 inline EvaluatedRule& WithExpressionWithValues(const char* value) { SetExpressionWithValues(value); return *this;}
97
99
102 inline const Aws::Vector<Aws::String>& GetOutcomes() const{ return m_outcomes; }
103 inline bool OutcomesHasBeenSet() const { return m_outcomesHasBeenSet; }
104 inline void SetOutcomes(const Aws::Vector<Aws::String>& value) { m_outcomesHasBeenSet = true; m_outcomes = value; }
105 inline void SetOutcomes(Aws::Vector<Aws::String>&& value) { m_outcomesHasBeenSet = true; m_outcomes = std::move(value); }
106 inline EvaluatedRule& WithOutcomes(const Aws::Vector<Aws::String>& value) { SetOutcomes(value); return *this;}
107 inline EvaluatedRule& WithOutcomes(Aws::Vector<Aws::String>&& value) { SetOutcomes(std::move(value)); return *this;}
108 inline EvaluatedRule& AddOutcomes(const Aws::String& value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(value); return *this; }
109 inline EvaluatedRule& AddOutcomes(Aws::String&& value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(std::move(value)); return *this; }
110 inline EvaluatedRule& AddOutcomes(const char* value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(value); return *this; }
112
114
117 inline bool GetEvaluated() const{ return m_evaluated; }
118 inline bool EvaluatedHasBeenSet() const { return m_evaluatedHasBeenSet; }
119 inline void SetEvaluated(bool value) { m_evaluatedHasBeenSet = true; m_evaluated = value; }
120 inline EvaluatedRule& WithEvaluated(bool value) { SetEvaluated(value); return *this;}
122
124
127 inline bool GetMatched() const{ return m_matched; }
128 inline bool MatchedHasBeenSet() const { return m_matchedHasBeenSet; }
129 inline void SetMatched(bool value) { m_matchedHasBeenSet = true; m_matched = value; }
130 inline EvaluatedRule& WithMatched(bool value) { SetMatched(value); return *this;}
132 private:
133
134 Aws::String m_ruleId;
135 bool m_ruleIdHasBeenSet = false;
136
137 Aws::String m_ruleVersion;
138 bool m_ruleVersionHasBeenSet = false;
139
140 Aws::String m_expression;
141 bool m_expressionHasBeenSet = false;
142
143 Aws::String m_expressionWithValues;
144 bool m_expressionWithValuesHasBeenSet = false;
145
146 Aws::Vector<Aws::String> m_outcomes;
147 bool m_outcomesHasBeenSet = false;
148
149 bool m_evaluated;
150 bool m_evaluatedHasBeenSet = false;
151
152 bool m_matched;
153 bool m_matchedHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace FraudDetector
158} // namespace Aws
void SetRuleId(const Aws::String &value)
EvaluatedRule & AddOutcomes(const char *value)
EvaluatedRule & WithExpression(const char *value)
EvaluatedRule & WithExpression(Aws::String &&value)
const Aws::String & GetRuleId() const
EvaluatedRule & WithExpressionWithValues(Aws::String &&value)
void SetOutcomes(Aws::Vector< Aws::String > &&value)
void SetExpression(Aws::String &&value)
EvaluatedRule & WithRuleVersion(Aws::String &&value)
AWS_FRAUDDETECTOR_API EvaluatedRule()
EvaluatedRule & WithExpressionWithValues(const Aws::String &value)
EvaluatedRule & WithExpressionWithValues(const char *value)
AWS_FRAUDDETECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
EvaluatedRule & WithExpression(const Aws::String &value)
EvaluatedRule & WithEvaluated(bool value)
AWS_FRAUDDETECTOR_API EvaluatedRule(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetExpression() const
EvaluatedRule & WithRuleId(const char *value)
EvaluatedRule & AddOutcomes(Aws::String &&value)
EvaluatedRule & WithMatched(bool value)
EvaluatedRule & WithRuleId(Aws::String &&value)
void SetRuleId(Aws::String &&value)
EvaluatedRule & WithRuleVersion(const char *value)
const Aws::String & GetExpressionWithValues() const
void SetExpressionWithValues(const char *value)
const Aws::String & GetRuleVersion() const
EvaluatedRule & WithRuleVersion(const Aws::String &value)
const Aws::Vector< Aws::String > & GetOutcomes() const
EvaluatedRule & WithOutcomes(Aws::Vector< Aws::String > &&value)
void SetExpression(const Aws::String &value)
EvaluatedRule & AddOutcomes(const Aws::String &value)
void SetOutcomes(const Aws::Vector< Aws::String > &value)
void SetExpressionWithValues(Aws::String &&value)
EvaluatedRule & WithOutcomes(const Aws::Vector< Aws::String > &value)
AWS_FRAUDDETECTOR_API EvaluatedRule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExpressionWithValues(const Aws::String &value)
void SetRuleVersion(const Aws::String &value)
EvaluatedRule & WithRuleId(const Aws::String &value)
void SetRuleVersion(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue