AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Face.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/rekognition/model/BoundingBox.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Rekognition
23{
24namespace Model
25{
26
34 class Face
35 {
36 public:
37 AWS_REKOGNITION_API Face();
38 AWS_REKOGNITION_API Face(Aws::Utils::Json::JsonView jsonValue);
39 AWS_REKOGNITION_API Face& operator=(Aws::Utils::Json::JsonView jsonValue);
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 Face& WithFaceId(const Aws::String& value) { SetFaceId(value); return *this;}
53 inline Face& WithFaceId(Aws::String&& value) { SetFaceId(std::move(value)); return *this;}
54 inline Face& WithFaceId(const char* value) { SetFaceId(value); return *this;}
56
58
61 inline const BoundingBox& GetBoundingBox() const{ return m_boundingBox; }
62 inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; }
63 inline void SetBoundingBox(const BoundingBox& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = value; }
64 inline void SetBoundingBox(BoundingBox&& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = std::move(value); }
65 inline Face& WithBoundingBox(const BoundingBox& value) { SetBoundingBox(value); return *this;}
66 inline Face& WithBoundingBox(BoundingBox&& value) { SetBoundingBox(std::move(value)); return *this;}
68
70
73 inline const Aws::String& GetImageId() const{ return m_imageId; }
74 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
75 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
76 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
77 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
78 inline Face& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
79 inline Face& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
80 inline Face& WithImageId(const char* value) { SetImageId(value); return *this;}
82
84
87 inline const Aws::String& GetExternalImageId() const{ return m_externalImageId; }
88 inline bool ExternalImageIdHasBeenSet() const { return m_externalImageIdHasBeenSet; }
89 inline void SetExternalImageId(const Aws::String& value) { m_externalImageIdHasBeenSet = true; m_externalImageId = value; }
90 inline void SetExternalImageId(Aws::String&& value) { m_externalImageIdHasBeenSet = true; m_externalImageId = std::move(value); }
91 inline void SetExternalImageId(const char* value) { m_externalImageIdHasBeenSet = true; m_externalImageId.assign(value); }
92 inline Face& WithExternalImageId(const Aws::String& value) { SetExternalImageId(value); return *this;}
93 inline Face& WithExternalImageId(Aws::String&& value) { SetExternalImageId(std::move(value)); return *this;}
94 inline Face& WithExternalImageId(const char* value) { SetExternalImageId(value); return *this;}
96
98
102 inline double GetConfidence() const{ return m_confidence; }
103 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
104 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
105 inline Face& WithConfidence(double value) { SetConfidence(value); return *this;}
107
109
113 inline const Aws::String& GetIndexFacesModelVersion() const{ return m_indexFacesModelVersion; }
114 inline bool IndexFacesModelVersionHasBeenSet() const { return m_indexFacesModelVersionHasBeenSet; }
115 inline void SetIndexFacesModelVersion(const Aws::String& value) { m_indexFacesModelVersionHasBeenSet = true; m_indexFacesModelVersion = value; }
116 inline void SetIndexFacesModelVersion(Aws::String&& value) { m_indexFacesModelVersionHasBeenSet = true; m_indexFacesModelVersion = std::move(value); }
117 inline void SetIndexFacesModelVersion(const char* value) { m_indexFacesModelVersionHasBeenSet = true; m_indexFacesModelVersion.assign(value); }
118 inline Face& WithIndexFacesModelVersion(const Aws::String& value) { SetIndexFacesModelVersion(value); return *this;}
119 inline Face& WithIndexFacesModelVersion(Aws::String&& value) { SetIndexFacesModelVersion(std::move(value)); return *this;}
120 inline Face& WithIndexFacesModelVersion(const char* value) { SetIndexFacesModelVersion(value); return *this;}
122
124
127 inline const Aws::String& GetUserId() const{ return m_userId; }
128 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
129 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
130 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
131 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
132 inline Face& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
133 inline Face& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
134 inline Face& WithUserId(const char* value) { SetUserId(value); return *this;}
136 private:
137
138 Aws::String m_faceId;
139 bool m_faceIdHasBeenSet = false;
140
141 BoundingBox m_boundingBox;
142 bool m_boundingBoxHasBeenSet = false;
143
144 Aws::String m_imageId;
145 bool m_imageIdHasBeenSet = false;
146
147 Aws::String m_externalImageId;
148 bool m_externalImageIdHasBeenSet = false;
149
150 double m_confidence;
151 bool m_confidenceHasBeenSet = false;
152
153 Aws::String m_indexFacesModelVersion;
154 bool m_indexFacesModelVersionHasBeenSet = false;
155
156 Aws::String m_userId;
157 bool m_userIdHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace Rekognition
162} // namespace Aws
Face & WithFaceId(const Aws::String &value)
Definition Face.h:52
void SetImageId(const char *value)
Definition Face.h:77
bool BoundingBoxHasBeenSet() const
Definition Face.h:62
bool ConfidenceHasBeenSet() const
Definition Face.h:103
bool UserIdHasBeenSet() const
Definition Face.h:128
void SetFaceId(const char *value)
Definition Face.h:51
void SetBoundingBox(const BoundingBox &value)
Definition Face.h:63
void SetIndexFacesModelVersion(Aws::String &&value)
Definition Face.h:116
bool ExternalImageIdHasBeenSet() const
Definition Face.h:88
void SetImageId(const Aws::String &value)
Definition Face.h:75
Face & WithImageId(const Aws::String &value)
Definition Face.h:78
bool ImageIdHasBeenSet() const
Definition Face.h:74
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
Face & WithImageId(Aws::String &&value)
Definition Face.h:79
Face & WithIndexFacesModelVersion(const Aws::String &value)
Definition Face.h:118
Face & WithExternalImageId(const Aws::String &value)
Definition Face.h:92
void SetUserId(const char *value)
Definition Face.h:131
Face & WithBoundingBox(BoundingBox &&value)
Definition Face.h:66
Face & WithFaceId(const char *value)
Definition Face.h:54
void SetFaceId(Aws::String &&value)
Definition Face.h:50
void SetIndexFacesModelVersion(const Aws::String &value)
Definition Face.h:115
Face & WithConfidence(double value)
Definition Face.h:105
void SetFaceId(const Aws::String &value)
Definition Face.h:49
void SetBoundingBox(BoundingBox &&value)
Definition Face.h:64
const BoundingBox & GetBoundingBox() const
Definition Face.h:61
bool IndexFacesModelVersionHasBeenSet() const
Definition Face.h:114
AWS_REKOGNITION_API Face & operator=(Aws::Utils::Json::JsonView jsonValue)
Face & WithExternalImageId(Aws::String &&value)
Definition Face.h:93
double GetConfidence() const
Definition Face.h:102
void SetExternalImageId(const Aws::String &value)
Definition Face.h:89
void SetConfidence(double value)
Definition Face.h:104
Face & WithUserId(Aws::String &&value)
Definition Face.h:133
const Aws::String & GetFaceId() const
Definition Face.h:47
Face & WithFaceId(Aws::String &&value)
Definition Face.h:53
bool FaceIdHasBeenSet() const
Definition Face.h:48
Face & WithBoundingBox(const BoundingBox &value)
Definition Face.h:65
const Aws::String & GetExternalImageId() const
Definition Face.h:87
void SetExternalImageId(Aws::String &&value)
Definition Face.h:90
void SetUserId(const Aws::String &value)
Definition Face.h:129
Face & WithUserId(const char *value)
Definition Face.h:134
Face & WithIndexFacesModelVersion(const char *value)
Definition Face.h:120
AWS_REKOGNITION_API Face()
AWS_REKOGNITION_API Face(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetIndexFacesModelVersion() const
Definition Face.h:113
Face & WithExternalImageId(const char *value)
Definition Face.h:94
const Aws::String & GetUserId() const
Definition Face.h:127
void SetIndexFacesModelVersion(const char *value)
Definition Face.h:117
void SetExternalImageId(const char *value)
Definition Face.h:91
const Aws::String & GetImageId() const
Definition Face.h:73
void SetUserId(Aws::String &&value)
Definition Face.h:130
Face & WithImageId(const char *value)
Definition Face.h:80
Face & WithUserId(const Aws::String &value)
Definition Face.h:132
Face & WithIndexFacesModelVersion(Aws::String &&value)
Definition Face.h:119
void SetImageId(Aws::String &&value)
Definition Face.h:76
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue