AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Rule.h
1
6#pragma once
7#include <aws/entityresolution/EntityResolution_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EntityResolution
23{
24namespace Model
25{
26
33 class Rule
34 {
35 public:
36 AWS_ENTITYRESOLUTION_API Rule() = default;
37 AWS_ENTITYRESOLUTION_API Rule(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ENTITYRESOLUTION_API Rule& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ENTITYRESOLUTION_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetRuleName() const { return m_ruleName; }
47 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
48 template<typename RuleNameT = Aws::String>
49 void SetRuleName(RuleNameT&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::forward<RuleNameT>(value); }
50 template<typename RuleNameT = Aws::String>
51 Rule& WithRuleName(RuleNameT&& value) { SetRuleName(std::forward<RuleNameT>(value)); return *this;}
53
55
60 inline const Aws::Vector<Aws::String>& GetMatchingKeys() const { return m_matchingKeys; }
61 inline bool MatchingKeysHasBeenSet() const { return m_matchingKeysHasBeenSet; }
62 template<typename MatchingKeysT = Aws::Vector<Aws::String>>
63 void SetMatchingKeys(MatchingKeysT&& value) { m_matchingKeysHasBeenSet = true; m_matchingKeys = std::forward<MatchingKeysT>(value); }
64 template<typename MatchingKeysT = Aws::Vector<Aws::String>>
65 Rule& WithMatchingKeys(MatchingKeysT&& value) { SetMatchingKeys(std::forward<MatchingKeysT>(value)); return *this;}
66 template<typename MatchingKeysT = Aws::String>
67 Rule& AddMatchingKeys(MatchingKeysT&& value) { m_matchingKeysHasBeenSet = true; m_matchingKeys.emplace_back(std::forward<MatchingKeysT>(value)); return *this; }
69 private:
70
71 Aws::String m_ruleName;
72 bool m_ruleNameHasBeenSet = false;
73
74 Aws::Vector<Aws::String> m_matchingKeys;
75 bool m_matchingKeysHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace EntityResolution
80} // namespace Aws
Rule & WithMatchingKeys(MatchingKeysT &&value)
Definition Rule.h:65
bool RuleNameHasBeenSet() const
Definition Rule.h:47
const Aws::Vector< Aws::String > & GetMatchingKeys() const
Definition Rule.h:60
void SetRuleName(RuleNameT &&value)
Definition Rule.h:49
AWS_ENTITYRESOLUTION_API Rule(Aws::Utils::Json::JsonView jsonValue)
AWS_ENTITYRESOLUTION_API Rule()=default
Rule & AddMatchingKeys(MatchingKeysT &&value)
Definition Rule.h:67
void SetMatchingKeys(MatchingKeysT &&value)
Definition Rule.h:63
AWS_ENTITYRESOLUTION_API Aws::Utils::Json::JsonValue Jsonize() const
Rule & WithRuleName(RuleNameT &&value)
Definition Rule.h:51
AWS_ENTITYRESOLUTION_API Rule & operator=(Aws::Utils::Json::JsonView jsonValue)
bool MatchingKeysHasBeenSet() const
Definition Rule.h:61
const Aws::String & GetRuleName() const
Definition Rule.h:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue