AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
MatchItem.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_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 CustomerProfiles
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CUSTOMERPROFILES_API MatchItem() = default;
36 AWS_CUSTOMERPROFILES_API MatchItem(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CUSTOMERPROFILES_API MatchItem& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetMatchId() const { return m_matchId; }
46 inline bool MatchIdHasBeenSet() const { return m_matchIdHasBeenSet; }
47 template<typename MatchIdT = Aws::String>
48 void SetMatchId(MatchIdT&& value) { m_matchIdHasBeenSet = true; m_matchId = std::forward<MatchIdT>(value); }
49 template<typename MatchIdT = Aws::String>
50 MatchItem& WithMatchId(MatchIdT&& value) { SetMatchId(std::forward<MatchIdT>(value)); return *this;}
52
54
57 inline const Aws::Vector<Aws::String>& GetProfileIds() const { return m_profileIds; }
58 inline bool ProfileIdsHasBeenSet() const { return m_profileIdsHasBeenSet; }
59 template<typename ProfileIdsT = Aws::Vector<Aws::String>>
60 void SetProfileIds(ProfileIdsT&& value) { m_profileIdsHasBeenSet = true; m_profileIds = std::forward<ProfileIdsT>(value); }
61 template<typename ProfileIdsT = Aws::Vector<Aws::String>>
62 MatchItem& WithProfileIds(ProfileIdsT&& value) { SetProfileIds(std::forward<ProfileIdsT>(value)); return *this;}
63 template<typename ProfileIdsT = Aws::String>
64 MatchItem& AddProfileIds(ProfileIdsT&& value) { m_profileIdsHasBeenSet = true; m_profileIds.emplace_back(std::forward<ProfileIdsT>(value)); return *this; }
66
68
78 inline double GetConfidenceScore() const { return m_confidenceScore; }
79 inline bool ConfidenceScoreHasBeenSet() const { return m_confidenceScoreHasBeenSet; }
80 inline void SetConfidenceScore(double value) { m_confidenceScoreHasBeenSet = true; m_confidenceScore = value; }
81 inline MatchItem& WithConfidenceScore(double value) { SetConfidenceScore(value); return *this;}
83 private:
84
85 Aws::String m_matchId;
86 bool m_matchIdHasBeenSet = false;
87
88 Aws::Vector<Aws::String> m_profileIds;
89 bool m_profileIdsHasBeenSet = false;
90
91 double m_confidenceScore{0.0};
92 bool m_confidenceScoreHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace CustomerProfiles
97} // namespace Aws
MatchItem & WithMatchId(MatchIdT &&value)
Definition MatchItem.h:50
MatchItem & WithConfidenceScore(double value)
Definition MatchItem.h:81
void SetMatchId(MatchIdT &&value)
Definition MatchItem.h:48
AWS_CUSTOMERPROFILES_API MatchItem(Aws::Utils::Json::JsonView jsonValue)
MatchItem & AddProfileIds(ProfileIdsT &&value)
Definition MatchItem.h:64
const Aws::String & GetMatchId() const
Definition MatchItem.h:45
AWS_CUSTOMERPROFILES_API MatchItem()=default
AWS_CUSTOMERPROFILES_API MatchItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetProfileIds() const
Definition MatchItem.h:57
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
MatchItem & WithProfileIds(ProfileIdsT &&value)
Definition MatchItem.h:62
void SetProfileIds(ProfileIdsT &&value)
Definition MatchItem.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue