AWS SDK for C++  1.9.109
AWS SDK for C++
Rule.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace FraudDetector
22 {
23 namespace Model
24 {
25 
32  {
33  public:
34  Rule();
38 
39 
43  inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
44 
48  inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
49 
53  inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
54 
58  inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
59 
63  inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
64 
68  inline Rule& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
69 
73  inline Rule& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
74 
78  inline Rule& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
79 
80 
84  inline const Aws::String& GetRuleId() const{ return m_ruleId; }
85 
89  inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
90 
94  inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
95 
99  inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
100 
104  inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
105 
109  inline Rule& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
110 
114  inline Rule& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
115 
119  inline Rule& WithRuleId(const char* value) { SetRuleId(value); return *this;}
120 
121 
125  inline const Aws::String& GetRuleVersion() const{ return m_ruleVersion; }
126 
130  inline bool RuleVersionHasBeenSet() const { return m_ruleVersionHasBeenSet; }
131 
135  inline void SetRuleVersion(const Aws::String& value) { m_ruleVersionHasBeenSet = true; m_ruleVersion = value; }
136 
140  inline void SetRuleVersion(Aws::String&& value) { m_ruleVersionHasBeenSet = true; m_ruleVersion = std::move(value); }
141 
145  inline void SetRuleVersion(const char* value) { m_ruleVersionHasBeenSet = true; m_ruleVersion.assign(value); }
146 
150  inline Rule& WithRuleVersion(const Aws::String& value) { SetRuleVersion(value); return *this;}
151 
155  inline Rule& WithRuleVersion(Aws::String&& value) { SetRuleVersion(std::move(value)); return *this;}
156 
160  inline Rule& WithRuleVersion(const char* value) { SetRuleVersion(value); return *this;}
161 
162  private:
163 
164  Aws::String m_detectorId;
165  bool m_detectorIdHasBeenSet;
166 
167  Aws::String m_ruleId;
168  bool m_ruleIdHasBeenSet;
169 
170  Aws::String m_ruleVersion;
171  bool m_ruleVersionHasBeenSet;
172  };
173 
174 } // namespace Model
175 } // namespace FraudDetector
176 } // namespace Aws
Aws::FraudDetector::Model::Rule::Rule
Rule(Aws::Utils::Json::JsonView jsonValue)
Aws::FraudDetector::Model::Rule::WithRuleId
Rule & WithRuleId(const char *value)
Definition: Rule.h:119
Aws::FraudDetector::Model::Rule::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::FraudDetector::Model::Rule::WithDetectorId
Rule & WithDetectorId(const char *value)
Definition: Rule.h:78
Aws::FraudDetector::Model::Rule::GetRuleVersion
const Aws::String & GetRuleVersion() const
Definition: Rule.h:125
Aws::FraudDetector::Model::Rule::WithDetectorId
Rule & WithDetectorId(Aws::String &&value)
Definition: Rule.h:73
Aws::FraudDetector::Model::Rule::SetDetectorId
void SetDetectorId(Aws::String &&value)
Definition: Rule.h:58
FraudDetector_EXPORTS.h
Aws::FraudDetector::Model::Rule::WithDetectorId
Rule & WithDetectorId(const Aws::String &value)
Definition: Rule.h:68
Aws::FraudDetector::Model::Rule::SetDetectorId
void SetDetectorId(const Aws::String &value)
Definition: Rule.h:53
Aws::FraudDetector::Model::Rule::operator=
Rule & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::FraudDetector::Model::Rule::SetRuleVersion
void SetRuleVersion(Aws::String &&value)
Definition: Rule.h:140
Aws::FraudDetector::Model::Rule::WithRuleId
Rule & WithRuleId(const Aws::String &value)
Definition: Rule.h:109
AWS_FRAUDDETECTOR_API
#define AWS_FRAUDDETECTOR_API
Definition: FraudDetector_EXPORTS.h:28
Aws::FraudDetector::Model::Rule::WithRuleVersion
Rule & WithRuleVersion(const Aws::String &value)
Definition: Rule.h:150
Aws::FraudDetector::Model::Rule::SetRuleId
void SetRuleId(const char *value)
Definition: Rule.h:104
Aws::FraudDetector::Model::Rule::WithRuleId
Rule & WithRuleId(Aws::String &&value)
Definition: Rule.h:114
Aws::FraudDetector::Model::Rule::WithRuleVersion
Rule & WithRuleVersion(const char *value)
Definition: Rule.h:160
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::FraudDetector::Model::Rule::SetRuleVersion
void SetRuleVersion(const char *value)
Definition: Rule.h:145
Aws::FraudDetector::Model::Rule::SetRuleId
void SetRuleId(Aws::String &&value)
Definition: Rule.h:99
Aws::FraudDetector::Model::Rule::SetRuleId
void SetRuleId(const Aws::String &value)
Definition: Rule.h:94
Aws::FraudDetector::Model::Rule::DetectorIdHasBeenSet
bool DetectorIdHasBeenSet() const
Definition: Rule.h:48
Aws::FraudDetector::Model::Rule
Definition: Rule.h:32
Aws::FraudDetector::Model::Rule::GetDetectorId
const Aws::String & GetDetectorId() const
Definition: Rule.h:43
Aws::FraudDetector::Model::Rule::GetRuleId
const Aws::String & GetRuleId() const
Definition: Rule.h:84
Aws::FraudDetector::Model::Rule::SetDetectorId
void SetDetectorId(const char *value)
Definition: Rule.h:63
Aws
Definition: AccessManagementClient.h:15
Aws::FraudDetector::Model::Rule::WithRuleVersion
Rule & WithRuleVersion(Aws::String &&value)
Definition: Rule.h:155
Aws::FraudDetector::Model::Rule::Rule
Rule()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::FraudDetector::Model::Rule::SetRuleVersion
void SetRuleVersion(const Aws::String &value)
Definition: Rule.h:135
Aws::FraudDetector::Model::Rule::RuleVersionHasBeenSet
bool RuleVersionHasBeenSet() const
Definition: Rule.h:130
Aws::FraudDetector::Model::Rule::RuleIdHasBeenSet
bool RuleIdHasBeenSet() const
Definition: Rule.h:89