AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
NamespaceRuleBasedProperties.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/IdMappingWorkflowRuleDefinitionType.h>
11#include <aws/entityresolution/model/RecordMatchingModel.h>
12#include <aws/entityresolution/model/Rule.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EntityResolution {
24namespace Model {
25
34 public:
35 AWS_ENTITYRESOLUTION_API NamespaceRuleBasedProperties() = default;
36 AWS_ENTITYRESOLUTION_API NamespaceRuleBasedProperties(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ENTITYRESOLUTION_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
45 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
46 template <typename RulesT = Aws::Vector<Rule>>
47 void SetRules(RulesT&& value) {
48 m_rulesHasBeenSet = true;
49 m_rules = std::forward<RulesT>(value);
50 }
51 template <typename RulesT = Aws::Vector<Rule>>
53 SetRules(std::forward<RulesT>(value));
54 return *this;
55 }
56 template <typename RulesT = Rule>
58 m_rulesHasBeenSet = true;
59 m_rules.emplace_back(std::forward<RulesT>(value));
60 return *this;
61 }
63
65
69 inline const Aws::Vector<IdMappingWorkflowRuleDefinitionType>& GetRuleDefinitionTypes() const { return m_ruleDefinitionTypes; }
70 inline bool RuleDefinitionTypesHasBeenSet() const { return m_ruleDefinitionTypesHasBeenSet; }
71 template <typename RuleDefinitionTypesT = Aws::Vector<IdMappingWorkflowRuleDefinitionType>>
72 void SetRuleDefinitionTypes(RuleDefinitionTypesT&& value) {
73 m_ruleDefinitionTypesHasBeenSet = true;
74 m_ruleDefinitionTypes = std::forward<RuleDefinitionTypesT>(value);
75 }
76 template <typename RuleDefinitionTypesT = Aws::Vector<IdMappingWorkflowRuleDefinitionType>>
78 SetRuleDefinitionTypes(std::forward<RuleDefinitionTypesT>(value));
79 return *this;
80 }
82 m_ruleDefinitionTypesHasBeenSet = true;
83 m_ruleDefinitionTypes.push_back(value);
84 return *this;
85 }
87
89
102 inline AttributeMatchingModel GetAttributeMatchingModel() const { return m_attributeMatchingModel; }
103 inline bool AttributeMatchingModelHasBeenSet() const { return m_attributeMatchingModelHasBeenSet; }
105 m_attributeMatchingModelHasBeenSet = true;
106 m_attributeMatchingModel = value;
107 }
110 return *this;
111 }
113
115
122 inline const Aws::Vector<RecordMatchingModel>& GetRecordMatchingModels() const { return m_recordMatchingModels; }
123 inline bool RecordMatchingModelsHasBeenSet() const { return m_recordMatchingModelsHasBeenSet; }
124 template <typename RecordMatchingModelsT = Aws::Vector<RecordMatchingModel>>
125 void SetRecordMatchingModels(RecordMatchingModelsT&& value) {
126 m_recordMatchingModelsHasBeenSet = true;
127 m_recordMatchingModels = std::forward<RecordMatchingModelsT>(value);
128 }
129 template <typename RecordMatchingModelsT = Aws::Vector<RecordMatchingModel>>
131 SetRecordMatchingModels(std::forward<RecordMatchingModelsT>(value));
132 return *this;
133 }
135 m_recordMatchingModelsHasBeenSet = true;
136 m_recordMatchingModels.push_back(value);
137 return *this;
138 }
140 private:
141 Aws::Vector<Rule> m_rules;
142
144
146
147 Aws::Vector<RecordMatchingModel> m_recordMatchingModels;
148 bool m_rulesHasBeenSet = false;
149 bool m_ruleDefinitionTypesHasBeenSet = false;
150 bool m_attributeMatchingModelHasBeenSet = false;
151 bool m_recordMatchingModelsHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace EntityResolution
156} // namespace Aws
NamespaceRuleBasedProperties & AddRecordMatchingModels(RecordMatchingModel value)
AWS_ENTITYRESOLUTION_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< IdMappingWorkflowRuleDefinitionType > & GetRuleDefinitionTypes() const
NamespaceRuleBasedProperties & WithRecordMatchingModels(RecordMatchingModelsT &&value)
NamespaceRuleBasedProperties & AddRuleDefinitionTypes(IdMappingWorkflowRuleDefinitionType value)
const Aws::Vector< RecordMatchingModel > & GetRecordMatchingModels() const
AWS_ENTITYRESOLUTION_API NamespaceRuleBasedProperties(Aws::Utils::Json::JsonView jsonValue)
AWS_ENTITYRESOLUTION_API NamespaceRuleBasedProperties()=default
AWS_ENTITYRESOLUTION_API NamespaceRuleBasedProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
NamespaceRuleBasedProperties & WithRuleDefinitionTypes(RuleDefinitionTypesT &&value)
NamespaceRuleBasedProperties & WithAttributeMatchingModel(AttributeMatchingModel value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue