AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
UserMatch.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/MatchedUser.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Rekognition {
20namespace Model {
21
28class UserMatch {
29 public:
30 AWS_REKOGNITION_API UserMatch() = default;
31 AWS_REKOGNITION_API UserMatch(Aws::Utils::Json::JsonView jsonValue);
32 AWS_REKOGNITION_API UserMatch& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline double GetSimilarity() const { return m_similarity; }
40 inline bool SimilarityHasBeenSet() const { return m_similarityHasBeenSet; }
41 inline void SetSimilarity(double value) {
42 m_similarityHasBeenSet = true;
43 m_similarity = value;
44 }
45 inline UserMatch& WithSimilarity(double value) {
46 SetSimilarity(value);
47 return *this;
48 }
50
52
55 inline const MatchedUser& GetUser() const { return m_user; }
56 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
57 template <typename UserT = MatchedUser>
58 void SetUser(UserT&& value) {
59 m_userHasBeenSet = true;
60 m_user = std::forward<UserT>(value);
61 }
62 template <typename UserT = MatchedUser>
63 UserMatch& WithUser(UserT&& value) {
64 SetUser(std::forward<UserT>(value));
65 return *this;
66 }
68 private:
69 double m_similarity{0.0};
70
71 MatchedUser m_user;
72 bool m_similarityHasBeenSet = false;
73 bool m_userHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace Rekognition
78} // namespace Aws
UserMatch & WithSimilarity(double value)
Definition UserMatch.h:45
void SetUser(UserT &&value)
Definition UserMatch.h:58
AWS_REKOGNITION_API UserMatch()=default
AWS_REKOGNITION_API UserMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
const MatchedUser & GetUser() const
Definition UserMatch.h:55
UserMatch & WithUser(UserT &&value)
Definition UserMatch.h:63
AWS_REKOGNITION_API UserMatch(Aws::Utils::Json::JsonView jsonValue)
void SetSimilarity(double value)
Definition UserMatch.h:41
Aws::Utils::Json::JsonValue JsonValue