AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RuleBasedMatchingResponse.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/customer-profiles/model/RuleBasedMatchingStatus.h>
10#include <aws/customer-profiles/model/AttributeTypesSelector.h>
11#include <aws/customer-profiles/model/ConflictResolution.h>
12#include <aws/customer-profiles/model/ExportingConfig.h>
13#include <aws/customer-profiles/model/MatchingRule.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace CustomerProfiles
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_CUSTOMERPROFILES_API RuleBasedMatchingResponse() = default;
41 AWS_CUSTOMERPROFILES_API RuleBasedMatchingResponse(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline bool GetEnabled() const { return m_enabled; }
52 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
53 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
54 inline RuleBasedMatchingResponse& WithEnabled(bool value) { SetEnabled(value); return *this;}
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) { m_matchingRulesHasBeenSet = true; m_matchingRules = std::forward<MatchingRulesT>(value); }
66 template<typename MatchingRulesT = Aws::Vector<MatchingRule>>
67 RuleBasedMatchingResponse& WithMatchingRules(MatchingRulesT&& value) { SetMatchingRules(std::forward<MatchingRulesT>(value)); return *this;}
68 template<typename MatchingRulesT = MatchingRule>
69 RuleBasedMatchingResponse& AddMatchingRules(MatchingRulesT&& value) { m_matchingRulesHasBeenSet = true; m_matchingRules.emplace_back(std::forward<MatchingRulesT>(value)); return *this; }
71
73
84 inline RuleBasedMatchingStatus GetStatus() const { return m_status; }
85 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
86 inline void SetStatus(RuleBasedMatchingStatus value) { m_statusHasBeenSet = true; m_status = value; }
89
91
96 inline int GetMaxAllowedRuleLevelForMerging() const { return m_maxAllowedRuleLevelForMerging; }
97 inline bool MaxAllowedRuleLevelForMergingHasBeenSet() const { return m_maxAllowedRuleLevelForMergingHasBeenSet; }
98 inline void SetMaxAllowedRuleLevelForMerging(int value) { m_maxAllowedRuleLevelForMergingHasBeenSet = true; m_maxAllowedRuleLevelForMerging = value; }
101
103
106 inline int GetMaxAllowedRuleLevelForMatching() const { return m_maxAllowedRuleLevelForMatching; }
107 inline bool MaxAllowedRuleLevelForMatchingHasBeenSet() const { return m_maxAllowedRuleLevelForMatchingHasBeenSet; }
108 inline void SetMaxAllowedRuleLevelForMatching(int value) { m_maxAllowedRuleLevelForMatchingHasBeenSet = true; m_maxAllowedRuleLevelForMatching = value; }
111
113
117 inline const AttributeTypesSelector& GetAttributeTypesSelector() const { return m_attributeTypesSelector; }
118 inline bool AttributeTypesSelectorHasBeenSet() const { return m_attributeTypesSelectorHasBeenSet; }
119 template<typename AttributeTypesSelectorT = AttributeTypesSelector>
120 void SetAttributeTypesSelector(AttributeTypesSelectorT&& value) { m_attributeTypesSelectorHasBeenSet = true; m_attributeTypesSelector = std::forward<AttributeTypesSelectorT>(value); }
121 template<typename AttributeTypesSelectorT = AttributeTypesSelector>
122 RuleBasedMatchingResponse& WithAttributeTypesSelector(AttributeTypesSelectorT&& value) { SetAttributeTypesSelector(std::forward<AttributeTypesSelectorT>(value)); return *this;}
124
126
127 inline const ConflictResolution& GetConflictResolution() const { return m_conflictResolution; }
128 inline bool ConflictResolutionHasBeenSet() const { return m_conflictResolutionHasBeenSet; }
129 template<typename ConflictResolutionT = ConflictResolution>
130 void SetConflictResolution(ConflictResolutionT&& value) { m_conflictResolutionHasBeenSet = true; m_conflictResolution = std::forward<ConflictResolutionT>(value); }
131 template<typename ConflictResolutionT = ConflictResolution>
132 RuleBasedMatchingResponse& WithConflictResolution(ConflictResolutionT&& value) { SetConflictResolution(std::forward<ConflictResolutionT>(value)); return *this;}
134
136
137 inline const ExportingConfig& GetExportingConfig() const { return m_exportingConfig; }
138 inline bool ExportingConfigHasBeenSet() const { return m_exportingConfigHasBeenSet; }
139 template<typename ExportingConfigT = ExportingConfig>
140 void SetExportingConfig(ExportingConfigT&& value) { m_exportingConfigHasBeenSet = true; m_exportingConfig = std::forward<ExportingConfigT>(value); }
141 template<typename ExportingConfigT = ExportingConfig>
142 RuleBasedMatchingResponse& WithExportingConfig(ExportingConfigT&& value) { SetExportingConfig(std::forward<ExportingConfigT>(value)); return *this;}
144 private:
145
146 bool m_enabled{false};
147 bool m_enabledHasBeenSet = false;
148
149 Aws::Vector<MatchingRule> m_matchingRules;
150 bool m_matchingRulesHasBeenSet = false;
151
153 bool m_statusHasBeenSet = false;
154
155 int m_maxAllowedRuleLevelForMerging{0};
156 bool m_maxAllowedRuleLevelForMergingHasBeenSet = false;
157
158 int m_maxAllowedRuleLevelForMatching{0};
159 bool m_maxAllowedRuleLevelForMatchingHasBeenSet = false;
160
161 AttributeTypesSelector m_attributeTypesSelector;
162 bool m_attributeTypesSelectorHasBeenSet = false;
163
164 ConflictResolution m_conflictResolution;
165 bool m_conflictResolutionHasBeenSet = false;
166
167 ExportingConfig m_exportingConfig;
168 bool m_exportingConfigHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace CustomerProfiles
173} // 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