AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
RuleBasedProperties.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/entityresolution/EntityResolution_EXPORTS.h>
9#include <aws/entityresolution/model/AttributeMatchingModel.h>
10#include <aws/entityresolution/model/MatchPurpose.h>
11#include <aws/entityresolution/model/Rule.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EntityResolution {
23namespace Model {
24
32 public:
33 AWS_ENTITYRESOLUTION_API RuleBasedProperties() = default;
34 AWS_ENTITYRESOLUTION_API RuleBasedProperties(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ENTITYRESOLUTION_API RuleBasedProperties& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ENTITYRESOLUTION_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
44 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
45 template <typename RulesT = Aws::Vector<Rule>>
46 void SetRules(RulesT&& value) {
47 m_rulesHasBeenSet = true;
48 m_rules = std::forward<RulesT>(value);
49 }
50 template <typename RulesT = Aws::Vector<Rule>>
51 RuleBasedProperties& WithRules(RulesT&& value) {
52 SetRules(std::forward<RulesT>(value));
53 return *this;
54 }
55 template <typename RulesT = Rule>
56 RuleBasedProperties& AddRules(RulesT&& value) {
57 m_rulesHasBeenSet = true;
58 m_rules.emplace_back(std::forward<RulesT>(value));
59 return *this;
60 }
62
64
78 inline AttributeMatchingModel GetAttributeMatchingModel() const { return m_attributeMatchingModel; }
79 inline bool AttributeMatchingModelHasBeenSet() const { return m_attributeMatchingModelHasBeenSet; }
81 m_attributeMatchingModelHasBeenSet = true;
82 m_attributeMatchingModel = value;
83 }
86 return *this;
87 }
89
91
97 inline MatchPurpose GetMatchPurpose() const { return m_matchPurpose; }
98 inline bool MatchPurposeHasBeenSet() const { return m_matchPurposeHasBeenSet; }
99 inline void SetMatchPurpose(MatchPurpose value) {
100 m_matchPurposeHasBeenSet = true;
101 m_matchPurpose = value;
102 }
104 SetMatchPurpose(value);
105 return *this;
106 }
108 private:
109 Aws::Vector<Rule> m_rules;
110
112
113 MatchPurpose m_matchPurpose{MatchPurpose::NOT_SET};
114 bool m_rulesHasBeenSet = false;
115 bool m_attributeMatchingModelHasBeenSet = false;
116 bool m_matchPurposeHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace EntityResolution
121} // 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