AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Rule.h
1
6#pragma once
7#include <aws/frauddetector/FraudDetector_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace FraudDetector
22{
23namespace Model
24{
25
31 class Rule
32 {
33 public:
34 AWS_FRAUDDETECTOR_API Rule() = default;
35 AWS_FRAUDDETECTOR_API Rule(Aws::Utils::Json::JsonView jsonValue);
36 AWS_FRAUDDETECTOR_API Rule& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_FRAUDDETECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
45 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
46 template<typename DetectorIdT = Aws::String>
47 void SetDetectorId(DetectorIdT&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::forward<DetectorIdT>(value); }
48 template<typename DetectorIdT = Aws::String>
49 Rule& WithDetectorId(DetectorIdT&& value) { SetDetectorId(std::forward<DetectorIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetRuleId() const { return m_ruleId; }
57 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
58 template<typename RuleIdT = Aws::String>
59 void SetRuleId(RuleIdT&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::forward<RuleIdT>(value); }
60 template<typename RuleIdT = Aws::String>
61 Rule& WithRuleId(RuleIdT&& value) { SetRuleId(std::forward<RuleIdT>(value)); return *this;}
63
65
68 inline const Aws::String& GetRuleVersion() const { return m_ruleVersion; }
69 inline bool RuleVersionHasBeenSet() const { return m_ruleVersionHasBeenSet; }
70 template<typename RuleVersionT = Aws::String>
71 void SetRuleVersion(RuleVersionT&& value) { m_ruleVersionHasBeenSet = true; m_ruleVersion = std::forward<RuleVersionT>(value); }
72 template<typename RuleVersionT = Aws::String>
73 Rule& WithRuleVersion(RuleVersionT&& value) { SetRuleVersion(std::forward<RuleVersionT>(value)); return *this;}
75 private:
76
77 Aws::String m_detectorId;
78 bool m_detectorIdHasBeenSet = false;
79
80 Aws::String m_ruleId;
81 bool m_ruleIdHasBeenSet = false;
82
83 Aws::String m_ruleVersion;
84 bool m_ruleVersionHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace FraudDetector
89} // namespace Aws
Rule & WithRuleVersion(RuleVersionT &&value)
Definition Rule.h:73
AWS_FRAUDDETECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRuleVersion() const
Definition Rule.h:68
AWS_FRAUDDETECTOR_API Rule()=default
Rule & WithRuleId(RuleIdT &&value)
Definition Rule.h:61
bool DetectorIdHasBeenSet() const
Definition Rule.h:45
const Aws::String & GetDetectorId() const
Definition Rule.h:44
AWS_FRAUDDETECTOR_API Rule(Aws::Utils::Json::JsonView jsonValue)
bool RuleVersionHasBeenSet() const
Definition Rule.h:69
Rule & WithDetectorId(DetectorIdT &&value)
Definition Rule.h:49
const Aws::String & GetRuleId() const
Definition Rule.h:56
AWS_FRAUDDETECTOR_API Rule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRuleVersion(RuleVersionT &&value)
Definition Rule.h:71
bool RuleIdHasBeenSet() const
Definition Rule.h:57
void SetRuleId(RuleIdT &&value)
Definition Rule.h:59
void SetDetectorId(DetectorIdT &&value)
Definition Rule.h:47
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue