AWS SDK for C++

AWS SDK for C++ Version 1.11.807

Loading...
Searching...
No Matches
RuleConditionProperties.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/MatchingConfig.h>
10#include <aws/entityresolution/model/RuleCondition.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EntityResolution {
22namespace Model {
23
31 public:
32 AWS_ENTITYRESOLUTION_API RuleConditionProperties() = default;
33 AWS_ENTITYRESOLUTION_API RuleConditionProperties(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ENTITYRESOLUTION_API RuleConditionProperties& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ENTITYRESOLUTION_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Vector<RuleCondition>& GetRules() const { return m_rules; }
43 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
44 template <typename RulesT = Aws::Vector<RuleCondition>>
45 void SetRules(RulesT&& value) {
46 m_rulesHasBeenSet = true;
47 m_rules = std::forward<RulesT>(value);
48 }
49 template <typename RulesT = Aws::Vector<RuleCondition>>
51 SetRules(std::forward<RulesT>(value));
52 return *this;
53 }
54 template <typename RulesT = RuleCondition>
56 m_rulesHasBeenSet = true;
57 m_rules.emplace_back(std::forward<RulesT>(value));
58 return *this;
59 }
61
63
66 inline const MatchingConfig& GetMatchingConfig() const { return m_matchingConfig; }
67 inline bool MatchingConfigHasBeenSet() const { return m_matchingConfigHasBeenSet; }
68 template <typename MatchingConfigT = MatchingConfig>
69 void SetMatchingConfig(MatchingConfigT&& value) {
70 m_matchingConfigHasBeenSet = true;
71 m_matchingConfig = std::forward<MatchingConfigT>(value);
72 }
73 template <typename MatchingConfigT = MatchingConfig>
74 RuleConditionProperties& WithMatchingConfig(MatchingConfigT&& value) {
75 SetMatchingConfig(std::forward<MatchingConfigT>(value));
76 return *this;
77 }
79 private:
81
82 MatchingConfig m_matchingConfig;
83 bool m_rulesHasBeenSet = false;
84 bool m_matchingConfigHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace EntityResolution
89} // namespace Aws
RuleConditionProperties & AddRules(RulesT &&value)
const Aws::Vector< RuleCondition > & GetRules() const
AWS_ENTITYRESOLUTION_API RuleConditionProperties()=default
AWS_ENTITYRESOLUTION_API RuleConditionProperties(Aws::Utils::Json::JsonView jsonValue)
RuleConditionProperties & WithMatchingConfig(MatchingConfigT &&value)
AWS_ENTITYRESOLUTION_API RuleConditionProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ENTITYRESOLUTION_API Aws::Utils::Json::JsonValue Jsonize() const
RuleConditionProperties & WithRules(RulesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue