AWS SDK for C++  1.9.15
AWS SDK for C++
RuleResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace FraudDetector
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetRuleId() const{ return m_ruleId; }
45 
49  inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
50 
54  inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
55 
59  inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
60 
64  inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
65 
69  inline RuleResult& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
70 
74  inline RuleResult& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
75 
79  inline RuleResult& WithRuleId(const char* value) { SetRuleId(value); return *this;}
80 
81 
85  inline const Aws::Vector<Aws::String>& GetOutcomes() const{ return m_outcomes; }
86 
90  inline bool OutcomesHasBeenSet() const { return m_outcomesHasBeenSet; }
91 
95  inline void SetOutcomes(const Aws::Vector<Aws::String>& value) { m_outcomesHasBeenSet = true; m_outcomes = value; }
96 
100  inline void SetOutcomes(Aws::Vector<Aws::String>&& value) { m_outcomesHasBeenSet = true; m_outcomes = std::move(value); }
101 
105  inline RuleResult& WithOutcomes(const Aws::Vector<Aws::String>& value) { SetOutcomes(value); return *this;}
106 
110  inline RuleResult& WithOutcomes(Aws::Vector<Aws::String>&& value) { SetOutcomes(std::move(value)); return *this;}
111 
115  inline RuleResult& AddOutcomes(const Aws::String& value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(value); return *this; }
116 
120  inline RuleResult& AddOutcomes(Aws::String&& value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(std::move(value)); return *this; }
121 
125  inline RuleResult& AddOutcomes(const char* value) { m_outcomesHasBeenSet = true; m_outcomes.push_back(value); return *this; }
126 
127  private:
128 
129  Aws::String m_ruleId;
130  bool m_ruleIdHasBeenSet;
131 
132  Aws::Vector<Aws::String> m_outcomes;
133  bool m_outcomesHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace FraudDetector
138 } // namespace Aws
Aws::FraudDetector::Model::RuleResult::WithRuleId
RuleResult & WithRuleId(const Aws::String &value)
Definition: RuleResult.h:69
Aws::FraudDetector::Model::RuleResult::SetOutcomes
void SetOutcomes(Aws::Vector< Aws::String > &&value)
Definition: RuleResult.h:100
Aws::FraudDetector::Model::RuleResult::AddOutcomes
RuleResult & AddOutcomes(Aws::String &&value)
Definition: RuleResult.h:120
FraudDetector_EXPORTS.h
Aws::FraudDetector::Model::RuleResult::operator=
RuleResult & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::FraudDetector::Model::RuleResult::SetRuleId
void SetRuleId(Aws::String &&value)
Definition: RuleResult.h:59
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::FraudDetector::Model::RuleResult::AddOutcomes
RuleResult & AddOutcomes(const char *value)
Definition: RuleResult.h:125
Aws::FraudDetector::Model::RuleResult::SetOutcomes
void SetOutcomes(const Aws::Vector< Aws::String > &value)
Definition: RuleResult.h:95
AWSVector.h
AWS_FRAUDDETECTOR_API
#define AWS_FRAUDDETECTOR_API
Definition: FraudDetector_EXPORTS.h:28
Aws::FraudDetector::Model::RuleResult::RuleIdHasBeenSet
bool RuleIdHasBeenSet() const
Definition: RuleResult.h:49
Aws::FraudDetector::Model::RuleResult
Definition: RuleResult.h:33
Aws::FraudDetector::Model::RuleResult::SetRuleId
void SetRuleId(const char *value)
Definition: RuleResult.h:64
Aws::FraudDetector::Model::RuleResult::WithRuleId
RuleResult & WithRuleId(const char *value)
Definition: RuleResult.h:79
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::FraudDetector::Model::RuleResult::OutcomesHasBeenSet
bool OutcomesHasBeenSet() const
Definition: RuleResult.h:90
Aws::FraudDetector::Model::RuleResult::WithOutcomes
RuleResult & WithOutcomes(const Aws::Vector< Aws::String > &value)
Definition: RuleResult.h:105
Aws::FraudDetector::Model::RuleResult::WithRuleId
RuleResult & WithRuleId(Aws::String &&value)
Definition: RuleResult.h:74
Aws::FraudDetector::Model::RuleResult::GetOutcomes
const Aws::Vector< Aws::String > & GetOutcomes() const
Definition: RuleResult.h:85
Aws
Definition: AccessManagementClient.h:15
Aws::FraudDetector::Model::RuleResult::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::FraudDetector::Model::RuleResult::RuleResult
RuleResult(Aws::Utils::Json::JsonView jsonValue)
Aws::FraudDetector::Model::RuleResult::GetRuleId
const Aws::String & GetRuleId() const
Definition: RuleResult.h:44
Aws::FraudDetector::Model::RuleResult::RuleResult
RuleResult()
Aws::FraudDetector::Model::RuleResult::AddOutcomes
RuleResult & AddOutcomes(const Aws::String &value)
Definition: RuleResult.h:115
Aws::FraudDetector::Model::RuleResult::WithOutcomes
RuleResult & WithOutcomes(Aws::Vector< Aws::String > &&value)
Definition: RuleResult.h:110
Aws::FraudDetector::Model::RuleResult::SetRuleId
void SetRuleId(const Aws::String &value)
Definition: RuleResult.h:54