AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UnsuccessfulFaceAssociation.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rekognition/model/UnsuccessfulFaceAssociationReason.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Rekognition
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_REKOGNITION_API UnsuccessfulFaceAssociation();
40 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetFaceId() const{ return m_faceId; }
48 inline bool FaceIdHasBeenSet() const { return m_faceIdHasBeenSet; }
49 inline void SetFaceId(const Aws::String& value) { m_faceIdHasBeenSet = true; m_faceId = value; }
50 inline void SetFaceId(Aws::String&& value) { m_faceIdHasBeenSet = true; m_faceId = std::move(value); }
51 inline void SetFaceId(const char* value) { m_faceIdHasBeenSet = true; m_faceId.assign(value); }
52 inline UnsuccessfulFaceAssociation& WithFaceId(const Aws::String& value) { SetFaceId(value); return *this;}
53 inline UnsuccessfulFaceAssociation& WithFaceId(Aws::String&& value) { SetFaceId(std::move(value)); return *this;}
54 inline UnsuccessfulFaceAssociation& WithFaceId(const char* value) { SetFaceId(value); return *this;}
56
58
61 inline const Aws::String& GetUserId() const{ return m_userId; }
62 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
63 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
64 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
65 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
66 inline UnsuccessfulFaceAssociation& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
67 inline UnsuccessfulFaceAssociation& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
68 inline UnsuccessfulFaceAssociation& WithUserId(const char* value) { SetUserId(value); return *this;}
70
72
76 inline double GetConfidence() const{ return m_confidence; }
77 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
78 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
79 inline UnsuccessfulFaceAssociation& WithConfidence(double value) { SetConfidence(value); return *this;}
81
83
86 inline const Aws::Vector<UnsuccessfulFaceAssociationReason>& GetReasons() const{ return m_reasons; }
87 inline bool ReasonsHasBeenSet() const { return m_reasonsHasBeenSet; }
88 inline void SetReasons(const Aws::Vector<UnsuccessfulFaceAssociationReason>& value) { m_reasonsHasBeenSet = true; m_reasons = value; }
89 inline void SetReasons(Aws::Vector<UnsuccessfulFaceAssociationReason>&& value) { m_reasonsHasBeenSet = true; m_reasons = std::move(value); }
92 inline UnsuccessfulFaceAssociation& AddReasons(const UnsuccessfulFaceAssociationReason& value) { m_reasonsHasBeenSet = true; m_reasons.push_back(value); return *this; }
93 inline UnsuccessfulFaceAssociation& AddReasons(UnsuccessfulFaceAssociationReason&& value) { m_reasonsHasBeenSet = true; m_reasons.push_back(std::move(value)); return *this; }
95 private:
96
97 Aws::String m_faceId;
98 bool m_faceIdHasBeenSet = false;
99
100 Aws::String m_userId;
101 bool m_userIdHasBeenSet = false;
102
103 double m_confidence;
104 bool m_confidenceHasBeenSet = false;
105
107 bool m_reasonsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Rekognition
112} // namespace Aws
const Aws::Vector< UnsuccessfulFaceAssociationReason > & GetReasons() const
UnsuccessfulFaceAssociation & AddReasons(UnsuccessfulFaceAssociationReason &&value)
UnsuccessfulFaceAssociation & WithUserId(const char *value)
UnsuccessfulFaceAssociation & WithUserId(const Aws::String &value)
AWS_REKOGNITION_API UnsuccessfulFaceAssociation(Aws::Utils::Json::JsonView jsonValue)
UnsuccessfulFaceAssociation & AddReasons(const UnsuccessfulFaceAssociationReason &value)
UnsuccessfulFaceAssociation & WithReasons(const Aws::Vector< UnsuccessfulFaceAssociationReason > &value)
void SetReasons(Aws::Vector< UnsuccessfulFaceAssociationReason > &&value)
UnsuccessfulFaceAssociation & WithFaceId(const char *value)
AWS_REKOGNITION_API UnsuccessfulFaceAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
UnsuccessfulFaceAssociation & WithFaceId(Aws::String &&value)
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReasons(const Aws::Vector< UnsuccessfulFaceAssociationReason > &value)
UnsuccessfulFaceAssociation & WithFaceId(const Aws::String &value)
UnsuccessfulFaceAssociation & WithUserId(Aws::String &&value)
UnsuccessfulFaceAssociation & WithReasons(Aws::Vector< UnsuccessfulFaceAssociationReason > &&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