AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Rule.h
1
6#pragma once
7#include <aws/entityresolution/EntityResolution_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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();
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
48 inline const Aws::Vector<Aws::String>& GetMatchingKeys() const{ return m_matchingKeys; }
49 inline bool MatchingKeysHasBeenSet() const { return m_matchingKeysHasBeenSet; }
50 inline void SetMatchingKeys(const Aws::Vector<Aws::String>& value) { m_matchingKeysHasBeenSet = true; m_matchingKeys = value; }
51 inline void SetMatchingKeys(Aws::Vector<Aws::String>&& value) { m_matchingKeysHasBeenSet = true; m_matchingKeys = std::move(value); }
52 inline Rule& WithMatchingKeys(const Aws::Vector<Aws::String>& value) { SetMatchingKeys(value); return *this;}
53 inline Rule& WithMatchingKeys(Aws::Vector<Aws::String>&& value) { SetMatchingKeys(std::move(value)); return *this;}
54 inline Rule& AddMatchingKeys(const Aws::String& value) { m_matchingKeysHasBeenSet = true; m_matchingKeys.push_back(value); return *this; }
55 inline Rule& AddMatchingKeys(Aws::String&& value) { m_matchingKeysHasBeenSet = true; m_matchingKeys.push_back(std::move(value)); return *this; }
56 inline Rule& AddMatchingKeys(const char* value) { m_matchingKeysHasBeenSet = true; m_matchingKeys.push_back(value); return *this; }
58
60
63 inline const Aws::String& GetRuleName() const{ return m_ruleName; }
64 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
65 inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
66 inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
67 inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
68 inline Rule& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
69 inline Rule& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
70 inline Rule& WithRuleName(const char* value) { SetRuleName(value); return *this;}
72 private:
73
74 Aws::Vector<Aws::String> m_matchingKeys;
75 bool m_matchingKeysHasBeenSet = false;
76
77 Aws::String m_ruleName;
78 bool m_ruleNameHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace EntityResolution
83} // namespace Aws
bool RuleNameHasBeenSet() const
Definition Rule.h:64
Rule & WithRuleName(const char *value)
Definition Rule.h:70
void SetRuleName(const char *value)
Definition Rule.h:67
Rule & WithRuleName(Aws::String &&value)
Definition Rule.h:69
const Aws::Vector< Aws::String > & GetMatchingKeys() const
Definition Rule.h:48
Rule & AddMatchingKeys(Aws::String &&value)
Definition Rule.h:55
Rule & WithMatchingKeys(const Aws::Vector< Aws::String > &value)
Definition Rule.h:52
Rule & WithMatchingKeys(Aws::Vector< Aws::String > &&value)
Definition Rule.h:53
Rule & WithRuleName(const Aws::String &value)
Definition Rule.h:68
Rule & AddMatchingKeys(const Aws::String &value)
Definition Rule.h:54
AWS_ENTITYRESOLUTION_API Rule(Aws::Utils::Json::JsonView jsonValue)
void SetRuleName(const Aws::String &value)
Definition Rule.h:65
AWS_ENTITYRESOLUTION_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRuleName(Aws::String &&value)
Definition Rule.h:66
void SetMatchingKeys(const Aws::Vector< Aws::String > &value)
Definition Rule.h:50
Rule & AddMatchingKeys(const char *value)
Definition Rule.h:56
AWS_ENTITYRESOLUTION_API Rule & operator=(Aws::Utils::Json::JsonView jsonValue)
bool MatchingKeysHasBeenSet() const
Definition Rule.h:49
void SetMatchingKeys(Aws::Vector< Aws::String > &&value)
Definition Rule.h:51
const Aws::String & GetRuleName() const
Definition Rule.h:63
AWS_ENTITYRESOLUTION_API Rule()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue