AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
Rule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/entityresolution/EntityResolution_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace EntityResolution {
21namespace Model {
22
29class Rule {
30 public:
31 AWS_ENTITYRESOLUTION_API Rule() = default;
32 AWS_ENTITYRESOLUTION_API Rule(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ENTITYRESOLUTION_API Rule& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ENTITYRESOLUTION_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetRuleName() const { return m_ruleName; }
41 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
42 template <typename RuleNameT = Aws::String>
43 void SetRuleName(RuleNameT&& value) {
44 m_ruleNameHasBeenSet = true;
45 m_ruleName = std::forward<RuleNameT>(value);
46 }
47 template <typename RuleNameT = Aws::String>
48 Rule& WithRuleName(RuleNameT&& value) {
49 SetRuleName(std::forward<RuleNameT>(value));
50 return *this;
51 }
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) {
64 m_matchingKeysHasBeenSet = true;
65 m_matchingKeys = std::forward<MatchingKeysT>(value);
66 }
67 template <typename MatchingKeysT = Aws::Vector<Aws::String>>
68 Rule& WithMatchingKeys(MatchingKeysT&& value) {
69 SetMatchingKeys(std::forward<MatchingKeysT>(value));
70 return *this;
71 }
72 template <typename MatchingKeysT = Aws::String>
73 Rule& AddMatchingKeys(MatchingKeysT&& value) {
74 m_matchingKeysHasBeenSet = true;
75 m_matchingKeys.emplace_back(std::forward<MatchingKeysT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_ruleName;
81
82 Aws::Vector<Aws::String> m_matchingKeys;
83 bool m_ruleNameHasBeenSet = false;
84 bool m_matchingKeysHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace EntityResolution
89} // namespace Aws
Rule & WithMatchingKeys(MatchingKeysT &&value)
Definition Rule.h:68
bool RuleNameHasBeenSet() const
Definition Rule.h:41
const Aws::Vector< Aws::String > & GetMatchingKeys() const
Definition Rule.h:60
void SetRuleName(RuleNameT &&value)
Definition Rule.h:43
AWS_ENTITYRESOLUTION_API Rule(Aws::Utils::Json::JsonView jsonValue)
AWS_ENTITYRESOLUTION_API Rule()=default
Rule & AddMatchingKeys(MatchingKeysT &&value)
Definition Rule.h:73
void SetMatchingKeys(MatchingKeysT &&value)
Definition Rule.h:63
AWS_ENTITYRESOLUTION_API Aws::Utils::Json::JsonValue Jsonize() const
Rule & WithRuleName(RuleNameT &&value)
Definition Rule.h:48
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:40
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue