AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
UnsuccessfulFaceAssociation.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/rekognition/Rekognition_EXPORTS.h>
10#include <aws/rekognition/model/UnsuccessfulFaceAssociationReason.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Rekognition {
22namespace Model {
23
31 public:
32 AWS_REKOGNITION_API UnsuccessfulFaceAssociation() = default;
35 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetFaceId() const { return m_faceId; }
42 inline bool FaceIdHasBeenSet() const { return m_faceIdHasBeenSet; }
43 template <typename FaceIdT = Aws::String>
44 void SetFaceId(FaceIdT&& value) {
45 m_faceIdHasBeenSet = true;
46 m_faceId = std::forward<FaceIdT>(value);
47 }
48 template <typename FaceIdT = Aws::String>
50 SetFaceId(std::forward<FaceIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetUserId() const { return m_userId; }
60 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
61 template <typename UserIdT = Aws::String>
62 void SetUserId(UserIdT&& value) {
63 m_userIdHasBeenSet = true;
64 m_userId = std::forward<UserIdT>(value);
65 }
66 template <typename UserIdT = Aws::String>
68 SetUserId(std::forward<UserIdT>(value));
69 return *this;
70 }
72
74
78 inline double GetConfidence() const { return m_confidence; }
79 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
80 inline void SetConfidence(double value) {
81 m_confidenceHasBeenSet = true;
82 m_confidence = value;
83 }
85 SetConfidence(value);
86 return *this;
87 }
89
91
94 inline const Aws::Vector<UnsuccessfulFaceAssociationReason>& GetReasons() const { return m_reasons; }
95 inline bool ReasonsHasBeenSet() const { return m_reasonsHasBeenSet; }
96 template <typename ReasonsT = Aws::Vector<UnsuccessfulFaceAssociationReason>>
97 void SetReasons(ReasonsT&& value) {
98 m_reasonsHasBeenSet = true;
99 m_reasons = std::forward<ReasonsT>(value);
100 }
101 template <typename ReasonsT = Aws::Vector<UnsuccessfulFaceAssociationReason>>
103 SetReasons(std::forward<ReasonsT>(value));
104 return *this;
105 }
107 m_reasonsHasBeenSet = true;
108 m_reasons.push_back(value);
109 return *this;
110 }
112 private:
113 Aws::String m_faceId;
114 bool m_faceIdHasBeenSet = false;
115
116 Aws::String m_userId;
117 bool m_userIdHasBeenSet = false;
118
119 double m_confidence{0.0};
120 bool m_confidenceHasBeenSet = false;
121
123 bool m_reasonsHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace Rekognition
128} // namespace Aws
const Aws::Vector< UnsuccessfulFaceAssociationReason > & GetReasons() const
UnsuccessfulFaceAssociation & WithFaceId(FaceIdT &&value)
AWS_REKOGNITION_API UnsuccessfulFaceAssociation(Aws::Utils::Json::JsonView jsonValue)
UnsuccessfulFaceAssociation & WithUserId(UserIdT &&value)
AWS_REKOGNITION_API UnsuccessfulFaceAssociation()=default
AWS_REKOGNITION_API UnsuccessfulFaceAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
UnsuccessfulFaceAssociation & AddReasons(UnsuccessfulFaceAssociationReason value)
UnsuccessfulFaceAssociation & WithReasons(ReasonsT &&value)
UnsuccessfulFaceAssociation & WithConfidence(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue