AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
MatchGroup.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 <aws/entityresolution/model/MatchedRecord.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EntityResolution
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_ENTITYRESOLUTION_API MatchGroup() = default;
37 AWS_ENTITYRESOLUTION_API MatchGroup(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ENTITYRESOLUTION_API MatchGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ENTITYRESOLUTION_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<MatchedRecord>& GetRecords() const { return m_records; }
47 inline bool RecordsHasBeenSet() const { return m_recordsHasBeenSet; }
48 template<typename RecordsT = Aws::Vector<MatchedRecord>>
49 void SetRecords(RecordsT&& value) { m_recordsHasBeenSet = true; m_records = std::forward<RecordsT>(value); }
50 template<typename RecordsT = Aws::Vector<MatchedRecord>>
51 MatchGroup& WithRecords(RecordsT&& value) { SetRecords(std::forward<RecordsT>(value)); return *this;}
52 template<typename RecordsT = MatchedRecord>
53 MatchGroup& AddRecords(RecordsT&& value) { m_recordsHasBeenSet = true; m_records.emplace_back(std::forward<RecordsT>(value)); return *this; }
55
57
60 inline const Aws::String& GetMatchId() const { return m_matchId; }
61 inline bool MatchIdHasBeenSet() const { return m_matchIdHasBeenSet; }
62 template<typename MatchIdT = Aws::String>
63 void SetMatchId(MatchIdT&& value) { m_matchIdHasBeenSet = true; m_matchId = std::forward<MatchIdT>(value); }
64 template<typename MatchIdT = Aws::String>
65 MatchGroup& WithMatchId(MatchIdT&& value) { SetMatchId(std::forward<MatchIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetMatchRule() const { return m_matchRule; }
73 inline bool MatchRuleHasBeenSet() const { return m_matchRuleHasBeenSet; }
74 template<typename MatchRuleT = Aws::String>
75 void SetMatchRule(MatchRuleT&& value) { m_matchRuleHasBeenSet = true; m_matchRule = std::forward<MatchRuleT>(value); }
76 template<typename MatchRuleT = Aws::String>
77 MatchGroup& WithMatchRule(MatchRuleT&& value) { SetMatchRule(std::forward<MatchRuleT>(value)); return *this;}
79 private:
80
82 bool m_recordsHasBeenSet = false;
83
84 Aws::String m_matchId;
85 bool m_matchIdHasBeenSet = false;
86
87 Aws::String m_matchRule;
88 bool m_matchRuleHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace EntityResolution
93} // namespace Aws
AWS_ENTITYRESOLUTION_API MatchGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMatchId() const
Definition MatchGroup.h:60
const Aws::String & GetMatchRule() const
Definition MatchGroup.h:72
void SetMatchRule(MatchRuleT &&value)
Definition MatchGroup.h:75
MatchGroup & WithMatchId(MatchIdT &&value)
Definition MatchGroup.h:65
MatchGroup & WithMatchRule(MatchRuleT &&value)
Definition MatchGroup.h:77
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:46
MatchGroup & WithRecords(RecordsT &&value)
Definition MatchGroup.h:51
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