AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename RuleIdT = Aws::String>
48 void SetRuleId(RuleIdT&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::forward<RuleIdT>(value); }
49 template<typename RuleIdT = Aws::String>
50 RuleResult& WithRuleId(RuleIdT&& value) { SetRuleId(std::forward<RuleIdT>(value)); return *this;}
52
54
57 inline const Aws::Vector<Aws::String>& GetOutcomes() const { return m_outcomes; }
58 inline bool OutcomesHasBeenSet() const { return m_outcomesHasBeenSet; }
59 template<typename OutcomesT = Aws::Vector<Aws::String>>
60 void SetOutcomes(OutcomesT&& value) { m_outcomesHasBeenSet = true; m_outcomes = std::forward<OutcomesT>(value); }
61 template<typename OutcomesT = Aws::Vector<Aws::String>>
62 RuleResult& WithOutcomes(OutcomesT&& value) { SetOutcomes(std::forward<OutcomesT>(value)); return *this;}
63 template<typename OutcomesT = Aws::String>
64 RuleResult& AddOutcomes(OutcomesT&& value) { m_outcomesHasBeenSet = true; m_outcomes.emplace_back(std::forward<OutcomesT>(value)); return *this; }
66 private:
67
68 Aws::String m_ruleId;
69 bool m_ruleIdHasBeenSet = false;
70
71 Aws::Vector<Aws::String> m_outcomes;
72 bool m_outcomesHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace FraudDetector
77} // namespace Aws
AWS_FRAUDDETECTOR_API RuleResult & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleResult & WithOutcomes(OutcomesT &&value)
Definition RuleResult.h:62
AWS_FRAUDDETECTOR_API RuleResult()=default
const Aws::String & GetRuleId() const
Definition RuleResult.h:45
void SetRuleId(RuleIdT &&value)
Definition RuleResult.h:48
const Aws::Vector< Aws::String > & GetOutcomes() const
Definition RuleResult.h:57
AWS_FRAUDDETECTOR_API RuleResult(Aws::Utils::Json::JsonView jsonValue)
AWS_FRAUDDETECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOutcomes(OutcomesT &&value)
Definition RuleResult.h:60
RuleResult & AddOutcomes(OutcomesT &&value)
Definition RuleResult.h:64
RuleResult & WithRuleId(RuleIdT &&value)
Definition RuleResult.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue