AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleResult.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
33 {
34 public:
35 AWS_FRAUDDETECTOR_API RuleResult();
36 AWS_FRAUDDETECTOR_API RuleResult(Aws::Utils::Json::JsonView jsonValue);
37 AWS_FRAUDDETECTOR_API RuleResult& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_FRAUDDETECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetRuleId() const{ return m_ruleId; }
46 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
47 inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
48 inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
49 inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
50 inline RuleResult& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
51 inline RuleResult& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
52 inline RuleResult& WithRuleId(const char* value) { SetRuleId(value); return *this;}
54
56
59 inline const Aws::Vector<Aws::String>& GetOutcomes() const{ return m_outcomes; }
60 inline bool OutcomesHasBeenSet() const { return m_outcomesHasBeenSet; }
61 inline void SetOutcomes(const Aws::Vector<Aws::String>& value) { m_outcomesHasBeenSet = true; m_outcomes = value; }
62 inline void SetOutcomes(Aws::Vector<Aws::String>&& value) { m_outcomesHasBeenSet = true; m_outcomes = std::move(value); }
63 inline RuleResult& WithOutcomes(const Aws::Vector<Aws::String>& value) { SetOutcomes(value); return *this;}
64 inline RuleResult& WithOutcomes(Aws::Vector<Aws::String>&& value) { SetOutcomes(std::move(value)); return *this;}
65 inline RuleResult& AddOutcomes(const Aws::String& value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(value); return *this; }
66 inline RuleResult& AddOutcomes(Aws::String&& value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(std::move(value)); return *this; }
67 inline RuleResult& AddOutcomes(const char* value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(value); return *this; }
69 private:
70
71 Aws::String m_ruleId;
72 bool m_ruleIdHasBeenSet = false;
73
74 Aws::Vector<Aws::String> m_outcomes;
75 bool m_outcomesHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace FraudDetector
80} // namespace Aws
RuleResult & AddOutcomes(const char *value)
Definition RuleResult.h:67
void SetRuleId(const char *value)
Definition RuleResult.h:49
AWS_FRAUDDETECTOR_API RuleResult()
void SetOutcomes(Aws::Vector< Aws::String > &&value)
Definition RuleResult.h:62
RuleResult & WithOutcomes(Aws::Vector< Aws::String > &&value)
Definition RuleResult.h:64
AWS_FRAUDDETECTOR_API RuleResult & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleResult & WithOutcomes(const Aws::Vector< Aws::String > &value)
Definition RuleResult.h:63
const Aws::String & GetRuleId() const
Definition RuleResult.h:45
void SetRuleId(Aws::String &&value)
Definition RuleResult.h:48
void SetRuleId(const Aws::String &value)
Definition RuleResult.h:47
RuleResult & WithRuleId(const char *value)
Definition RuleResult.h:52
const Aws::Vector< Aws::String > & GetOutcomes() const
Definition RuleResult.h:59
AWS_FRAUDDETECTOR_API RuleResult(Aws::Utils::Json::JsonView jsonValue)
void SetOutcomes(const Aws::Vector< Aws::String > &value)
Definition RuleResult.h:61
AWS_FRAUDDETECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
RuleResult & AddOutcomes(Aws::String &&value)
Definition RuleResult.h:66
RuleResult & WithRuleId(const Aws::String &value)
Definition RuleResult.h:50
RuleResult & AddOutcomes(const Aws::String &value)
Definition RuleResult.h:65
RuleResult & WithRuleId(Aws::String &&value)
Definition RuleResult.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue