AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
FaceMatch.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/Face.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 FaceMatch {
29 public:
30 AWS_REKOGNITION_API FaceMatch() = default;
31 AWS_REKOGNITION_API FaceMatch(Aws::Utils::Json::JsonView jsonValue);
32 AWS_REKOGNITION_API FaceMatch& 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 FaceMatch& WithSimilarity(double value) {
46 SetSimilarity(value);
47 return *this;
48 }
50
52
56 inline const Face& GetFace() const { return m_face; }
57 inline bool FaceHasBeenSet() const { return m_faceHasBeenSet; }
58 template <typename FaceT = Face>
59 void SetFace(FaceT&& value) {
60 m_faceHasBeenSet = true;
61 m_face = std::forward<FaceT>(value);
62 }
63 template <typename FaceT = Face>
64 FaceMatch& WithFace(FaceT&& value) {
65 SetFace(std::forward<FaceT>(value));
66 return *this;
67 }
69 private:
70 double m_similarity{0.0};
71
72 Face m_face;
73 bool m_similarityHasBeenSet = false;
74 bool m_faceHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace Rekognition
79} // namespace Aws
AWS_REKOGNITION_API FaceMatch(Aws::Utils::Json::JsonView jsonValue)
void SetFace(FaceT &&value)
Definition FaceMatch.h:59
FaceMatch & WithFace(FaceT &&value)
Definition FaceMatch.h:64
AWS_REKOGNITION_API FaceMatch()=default
FaceMatch & WithSimilarity(double value)
Definition FaceMatch.h:45
AWS_REKOGNITION_API FaceMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
const Face & GetFace() const
Definition FaceMatch.h:56
void SetSimilarity(double value)
Definition FaceMatch.h:41
Aws::Utils::Json::JsonValue JsonValue