AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CompareFacesMatch.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/ComparedFace.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
32 public:
33 AWS_REKOGNITION_API CompareFacesMatch() = default;
34 AWS_REKOGNITION_API CompareFacesMatch(Aws::Utils::Json::JsonView jsonValue);
36 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline double GetSimilarity() const { return m_similarity; }
43 inline bool SimilarityHasBeenSet() const { return m_similarityHasBeenSet; }
44 inline void SetSimilarity(double value) {
45 m_similarityHasBeenSet = true;
46 m_similarity = value;
47 }
48 inline CompareFacesMatch& WithSimilarity(double value) {
49 SetSimilarity(value);
50 return *this;
51 }
53
55
59 inline const ComparedFace& GetFace() const { return m_face; }
60 inline bool FaceHasBeenSet() const { return m_faceHasBeenSet; }
61 template <typename FaceT = ComparedFace>
62 void SetFace(FaceT&& value) {
63 m_faceHasBeenSet = true;
64 m_face = std::forward<FaceT>(value);
65 }
66 template <typename FaceT = ComparedFace>
67 CompareFacesMatch& WithFace(FaceT&& value) {
68 SetFace(std::forward<FaceT>(value));
69 return *this;
70 }
72 private:
73 double m_similarity{0.0};
74
75 ComparedFace m_face;
76 bool m_similarityHasBeenSet = false;
77 bool m_faceHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace Rekognition
82} // namespace Aws
AWS_REKOGNITION_API CompareFacesMatch()=default
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_REKOGNITION_API CompareFacesMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
CompareFacesMatch & WithFace(FaceT &&value)
AWS_REKOGNITION_API CompareFacesMatch(Aws::Utils::Json::JsonView jsonValue)
CompareFacesMatch & WithSimilarity(double value)
Aws::Utils::Json::JsonValue JsonValue