AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
RuleBasedMatchingResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
9#include <aws/customer-profiles/model/AttributeTypesSelector.h>
10#include <aws/customer-profiles/model/ConflictResolution.h>
11#include <aws/customer-profiles/model/ExportingConfig.h>
12#include <aws/customer-profiles/model/MatchingRule.h>
13#include <aws/customer-profiles/model/RuleBasedMatchingStatus.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CustomerProfiles {
25namespace Model {
26
34 public:
35 AWS_CUSTOMERPROFILES_API RuleBasedMatchingResponse() = default;
36 AWS_CUSTOMERPROFILES_API RuleBasedMatchingResponse(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline bool GetEnabled() const { return m_enabled; }
46 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
47 inline void SetEnabled(bool value) {
48 m_enabledHasBeenSet = true;
49 m_enabled = value;
50 }
52 SetEnabled(value);
53 return *this;
54 }
56
58
62 inline const Aws::Vector<MatchingRule>& GetMatchingRules() const { return m_matchingRules; }
63 inline bool MatchingRulesHasBeenSet() const { return m_matchingRulesHasBeenSet; }
64 template <typename MatchingRulesT = Aws::Vector<MatchingRule>>
65 void SetMatchingRules(MatchingRulesT&& value) {
66 m_matchingRulesHasBeenSet = true;
67 m_matchingRules = std::forward<MatchingRulesT>(value);
68 }
69 template <typename MatchingRulesT = Aws::Vector<MatchingRule>>
71 SetMatchingRules(std::forward<MatchingRulesT>(value));
72 return *this;
73 }
74 template <typename MatchingRulesT = MatchingRule>
76 m_matchingRulesHasBeenSet = true;
77 m_matchingRules.emplace_back(std::forward<MatchingRulesT>(value));
78 return *this;
79 }
81
83
94 inline RuleBasedMatchingStatus GetStatus() const { return m_status; }
95 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
97 m_statusHasBeenSet = true;
98 m_status = value;
99 }
101 SetStatus(value);
102 return *this;
103 }
105
107
112 inline int GetMaxAllowedRuleLevelForMerging() const { return m_maxAllowedRuleLevelForMerging; }
113 inline bool MaxAllowedRuleLevelForMergingHasBeenSet() const { return m_maxAllowedRuleLevelForMergingHasBeenSet; }
114 inline void SetMaxAllowedRuleLevelForMerging(int value) {
115 m_maxAllowedRuleLevelForMergingHasBeenSet = true;
116 m_maxAllowedRuleLevelForMerging = value;
117 }
120 return *this;
121 }
123
125
128 inline int GetMaxAllowedRuleLevelForMatching() const { return m_maxAllowedRuleLevelForMatching; }
129 inline bool MaxAllowedRuleLevelForMatchingHasBeenSet() const { return m_maxAllowedRuleLevelForMatchingHasBeenSet; }
130 inline void SetMaxAllowedRuleLevelForMatching(int value) {
131 m_maxAllowedRuleLevelForMatchingHasBeenSet = true;
132 m_maxAllowedRuleLevelForMatching = value;
133 }
136 return *this;
137 }
139
141
145 inline const AttributeTypesSelector& GetAttributeTypesSelector() const { return m_attributeTypesSelector; }
146 inline bool AttributeTypesSelectorHasBeenSet() const { return m_attributeTypesSelectorHasBeenSet; }
147 template <typename AttributeTypesSelectorT = AttributeTypesSelector>
148 void SetAttributeTypesSelector(AttributeTypesSelectorT&& value) {
149 m_attributeTypesSelectorHasBeenSet = true;
150 m_attributeTypesSelector = std::forward<AttributeTypesSelectorT>(value);
151 }
152 template <typename AttributeTypesSelectorT = AttributeTypesSelector>
153 RuleBasedMatchingResponse& WithAttributeTypesSelector(AttributeTypesSelectorT&& value) {
154 SetAttributeTypesSelector(std::forward<AttributeTypesSelectorT>(value));
155 return *this;
156 }
158
160
161 inline const ConflictResolution& GetConflictResolution() const { return m_conflictResolution; }
162 inline bool ConflictResolutionHasBeenSet() const { return m_conflictResolutionHasBeenSet; }
163 template <typename ConflictResolutionT = ConflictResolution>
164 void SetConflictResolution(ConflictResolutionT&& value) {
165 m_conflictResolutionHasBeenSet = true;
166 m_conflictResolution = std::forward<ConflictResolutionT>(value);
167 }
168 template <typename ConflictResolutionT = ConflictResolution>
169 RuleBasedMatchingResponse& WithConflictResolution(ConflictResolutionT&& value) {
170 SetConflictResolution(std::forward<ConflictResolutionT>(value));
171 return *this;
172 }
174
176
177 inline const ExportingConfig& GetExportingConfig() const { return m_exportingConfig; }
178 inline bool ExportingConfigHasBeenSet() const { return m_exportingConfigHasBeenSet; }
179 template <typename ExportingConfigT = ExportingConfig>
180 void SetExportingConfig(ExportingConfigT&& value) {
181 m_exportingConfigHasBeenSet = true;
182 m_exportingConfig = std::forward<ExportingConfigT>(value);
183 }
184 template <typename ExportingConfigT = ExportingConfig>
186 SetExportingConfig(std::forward<ExportingConfigT>(value));
187 return *this;
188 }
190 private:
191 bool m_enabled{false};
192
193 Aws::Vector<MatchingRule> m_matchingRules;
194
196
197 int m_maxAllowedRuleLevelForMerging{0};
198
199 int m_maxAllowedRuleLevelForMatching{0};
200
201 AttributeTypesSelector m_attributeTypesSelector;
202
203 ConflictResolution m_conflictResolution;
204
205 ExportingConfig m_exportingConfig;
206 bool m_enabledHasBeenSet = false;
207 bool m_matchingRulesHasBeenSet = false;
208 bool m_statusHasBeenSet = false;
209 bool m_maxAllowedRuleLevelForMergingHasBeenSet = false;
210 bool m_maxAllowedRuleLevelForMatchingHasBeenSet = false;
211 bool m_attributeTypesSelectorHasBeenSet = false;
212 bool m_conflictResolutionHasBeenSet = false;
213 bool m_exportingConfigHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace CustomerProfiles
218} // namespace Aws
RuleBasedMatchingResponse & WithConflictResolution(ConflictResolutionT &&value)
RuleBasedMatchingResponse & WithStatus(RuleBasedMatchingStatus value)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< MatchingRule > & GetMatchingRules() const
AWS_CUSTOMERPROFILES_API RuleBasedMatchingResponse()=default
RuleBasedMatchingResponse & WithMaxAllowedRuleLevelForMatching(int value)
RuleBasedMatchingResponse & WithMatchingRules(MatchingRulesT &&value)
AWS_CUSTOMERPROFILES_API RuleBasedMatchingResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleBasedMatchingResponse & WithAttributeTypesSelector(AttributeTypesSelectorT &&value)
AWS_CUSTOMERPROFILES_API RuleBasedMatchingResponse(Aws::Utils::Json::JsonView jsonValue)
RuleBasedMatchingResponse & WithMaxAllowedRuleLevelForMerging(int value)
RuleBasedMatchingResponse & WithExportingConfig(ExportingConfigT &&value)
RuleBasedMatchingResponse & AddMatchingRules(MatchingRulesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue