AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
MatchItem.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/customer-profiles/CustomerProfiles_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CustomerProfiles {
21namespace Model {
22
28class MatchItem {
29 public:
30 AWS_CUSTOMERPROFILES_API MatchItem() = default;
31 AWS_CUSTOMERPROFILES_API MatchItem(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CUSTOMERPROFILES_API MatchItem& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetMatchId() const { return m_matchId; }
40 inline bool MatchIdHasBeenSet() const { return m_matchIdHasBeenSet; }
41 template <typename MatchIdT = Aws::String>
42 void SetMatchId(MatchIdT&& value) {
43 m_matchIdHasBeenSet = true;
44 m_matchId = std::forward<MatchIdT>(value);
45 }
46 template <typename MatchIdT = Aws::String>
47 MatchItem& WithMatchId(MatchIdT&& value) {
48 SetMatchId(std::forward<MatchIdT>(value));
49 return *this;
50 }
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) {
61 m_profileIdsHasBeenSet = true;
62 m_profileIds = std::forward<ProfileIdsT>(value);
63 }
64 template <typename ProfileIdsT = Aws::Vector<Aws::String>>
65 MatchItem& WithProfileIds(ProfileIdsT&& value) {
66 SetProfileIds(std::forward<ProfileIdsT>(value));
67 return *this;
68 }
69 template <typename ProfileIdsT = Aws::String>
70 MatchItem& AddProfileIds(ProfileIdsT&& value) {
71 m_profileIdsHasBeenSet = true;
72 m_profileIds.emplace_back(std::forward<ProfileIdsT>(value));
73 return *this;
74 }
76
78
88 inline double GetConfidenceScore() const { return m_confidenceScore; }
89 inline bool ConfidenceScoreHasBeenSet() const { return m_confidenceScoreHasBeenSet; }
90 inline void SetConfidenceScore(double value) {
91 m_confidenceScoreHasBeenSet = true;
92 m_confidenceScore = value;
93 }
94 inline MatchItem& WithConfidenceScore(double value) {
95 SetConfidenceScore(value);
96 return *this;
97 }
99 private:
100 Aws::String m_matchId;
101
102 Aws::Vector<Aws::String> m_profileIds;
103
104 double m_confidenceScore{0.0};
105 bool m_matchIdHasBeenSet = false;
106 bool m_profileIdsHasBeenSet = false;
107 bool m_confidenceScoreHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace CustomerProfiles
112} // namespace Aws
MatchItem & WithMatchId(MatchIdT &&value)
Definition MatchItem.h:47
MatchItem & WithConfidenceScore(double value)
Definition MatchItem.h:94
void SetMatchId(MatchIdT &&value)
Definition MatchItem.h:42
AWS_CUSTOMERPROFILES_API MatchItem(Aws::Utils::Json::JsonView jsonValue)
MatchItem & AddProfileIds(ProfileIdsT &&value)
Definition MatchItem.h:70
const Aws::String & GetMatchId() const
Definition MatchItem.h:39
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:65
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