AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RuleBasedProperties.h
1
6#pragma once
7#include <aws/entityresolution/EntityResolution_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/entityresolution/model/AttributeMatchingModel.h>
10#include <aws/entityresolution/model/MatchPurpose.h>
11#include <aws/entityresolution/model/Rule.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace EntityResolution
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_ENTITYRESOLUTION_API RuleBasedProperties() = default;
40 AWS_ENTITYRESOLUTION_API RuleBasedProperties(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ENTITYRESOLUTION_API RuleBasedProperties& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ENTITYRESOLUTION_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
51 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
52 template<typename RulesT = Aws::Vector<Rule>>
53 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
54 template<typename RulesT = Aws::Vector<Rule>>
55 RuleBasedProperties& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
56 template<typename RulesT = Rule>
57 RuleBasedProperties& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
59
61
75 inline AttributeMatchingModel GetAttributeMatchingModel() const { return m_attributeMatchingModel; }
76 inline bool AttributeMatchingModelHasBeenSet() const { return m_attributeMatchingModelHasBeenSet; }
77 inline void SetAttributeMatchingModel(AttributeMatchingModel value) { m_attributeMatchingModelHasBeenSet = true; m_attributeMatchingModel = value; }
80
82
88 inline MatchPurpose GetMatchPurpose() const { return m_matchPurpose; }
89 inline bool MatchPurposeHasBeenSet() const { return m_matchPurposeHasBeenSet; }
90 inline void SetMatchPurpose(MatchPurpose value) { m_matchPurposeHasBeenSet = true; m_matchPurpose = value; }
91 inline RuleBasedProperties& WithMatchPurpose(MatchPurpose value) { SetMatchPurpose(value); return *this;}
93 private:
94
95 Aws::Vector<Rule> m_rules;
96 bool m_rulesHasBeenSet = false;
97
99 bool m_attributeMatchingModelHasBeenSet = false;
100
101 MatchPurpose m_matchPurpose{MatchPurpose::NOT_SET};
102 bool m_matchPurposeHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace EntityResolution
107} // namespace Aws
AWS_ENTITYRESOLUTION_API RuleBasedProperties()=default
RuleBasedProperties & WithMatchPurpose(MatchPurpose value)
RuleBasedProperties & WithRules(RulesT &&value)
AWS_ENTITYRESOLUTION_API RuleBasedProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleBasedProperties & WithAttributeMatchingModel(AttributeMatchingModel value)
RuleBasedProperties & AddRules(RulesT &&value)
void SetAttributeMatchingModel(AttributeMatchingModel value)
AttributeMatchingModel GetAttributeMatchingModel() const
AWS_ENTITYRESOLUTION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ENTITYRESOLUTION_API RuleBasedProperties(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue