AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
MatchGroup.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#include <aws/entityresolution/model/MatchedRecord.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
30 public:
31 AWS_ENTITYRESOLUTION_API MatchGroup() = default;
32 AWS_ENTITYRESOLUTION_API MatchGroup(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ENTITYRESOLUTION_API MatchGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ENTITYRESOLUTION_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<MatchedRecord>& GetRecords() const { return m_records; }
41 inline bool RecordsHasBeenSet() const { return m_recordsHasBeenSet; }
42 template <typename RecordsT = Aws::Vector<MatchedRecord>>
43 void SetRecords(RecordsT&& value) {
44 m_recordsHasBeenSet = true;
45 m_records = std::forward<RecordsT>(value);
46 }
47 template <typename RecordsT = Aws::Vector<MatchedRecord>>
48 MatchGroup& WithRecords(RecordsT&& value) {
49 SetRecords(std::forward<RecordsT>(value));
50 return *this;
51 }
52 template <typename RecordsT = MatchedRecord>
53 MatchGroup& AddRecords(RecordsT&& value) {
54 m_recordsHasBeenSet = true;
55 m_records.emplace_back(std::forward<RecordsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetMatchId() const { return m_matchId; }
65 inline bool MatchIdHasBeenSet() const { return m_matchIdHasBeenSet; }
66 template <typename MatchIdT = Aws::String>
67 void SetMatchId(MatchIdT&& value) {
68 m_matchIdHasBeenSet = true;
69 m_matchId = std::forward<MatchIdT>(value);
70 }
71 template <typename MatchIdT = Aws::String>
72 MatchGroup& WithMatchId(MatchIdT&& value) {
73 SetMatchId(std::forward<MatchIdT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetMatchRule() const { return m_matchRule; }
83 inline bool MatchRuleHasBeenSet() const { return m_matchRuleHasBeenSet; }
84 template <typename MatchRuleT = Aws::String>
85 void SetMatchRule(MatchRuleT&& value) {
86 m_matchRuleHasBeenSet = true;
87 m_matchRule = std::forward<MatchRuleT>(value);
88 }
89 template <typename MatchRuleT = Aws::String>
90 MatchGroup& WithMatchRule(MatchRuleT&& value) {
91 SetMatchRule(std::forward<MatchRuleT>(value));
92 return *this;
93 }
95 private:
97
98 Aws::String m_matchId;
99
100 Aws::String m_matchRule;
101 bool m_recordsHasBeenSet = false;
102 bool m_matchIdHasBeenSet = false;
103 bool m_matchRuleHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace EntityResolution
108} // namespace Aws
AWS_ENTITYRESOLUTION_API MatchGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMatchId() const
Definition MatchGroup.h:64
const Aws::String & GetMatchRule() const
Definition MatchGroup.h:82
void SetMatchRule(MatchRuleT &&value)
Definition MatchGroup.h:85
MatchGroup & WithMatchId(MatchIdT &&value)
Definition MatchGroup.h:72
MatchGroup & WithMatchRule(MatchRuleT &&value)
Definition MatchGroup.h:90
AWS_ENTITYRESOLUTION_API MatchGroup()=default
AWS_ENTITYRESOLUTION_API Aws::Utils::Json::JsonValue Jsonize() const
MatchGroup & AddRecords(RecordsT &&value)
Definition MatchGroup.h:53
const Aws::Vector< MatchedRecord > & GetRecords() const
Definition MatchGroup.h:40
MatchGroup & WithRecords(RecordsT &&value)
Definition MatchGroup.h:48
AWS_ENTITYRESOLUTION_API MatchGroup(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue