AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetFaceDetectionResult.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/VideoJobStatus.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rekognition/model/VideoMetadata.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/rekognition/model/Video.h>
13#include <aws/rekognition/model/FaceDetection.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace Rekognition
29{
30namespace Model
31{
33 {
34 public:
35 AWS_REKOGNITION_API GetFaceDetectionResult() = default;
38
39
41
44 inline VideoJobStatus GetJobStatus() const { return m_jobStatus; }
45 inline void SetJobStatus(VideoJobStatus value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; }
46 inline GetFaceDetectionResult& WithJobStatus(VideoJobStatus value) { SetJobStatus(value); return *this;}
48
50
54 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
55 template<typename StatusMessageT = Aws::String>
56 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
57 template<typename StatusMessageT = Aws::String>
58 GetFaceDetectionResult& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
60
62
67 inline const VideoMetadata& GetVideoMetadata() const { return m_videoMetadata; }
68 template<typename VideoMetadataT = VideoMetadata>
69 void SetVideoMetadata(VideoMetadataT&& value) { m_videoMetadataHasBeenSet = true; m_videoMetadata = std::forward<VideoMetadataT>(value); }
70 template<typename VideoMetadataT = VideoMetadata>
71 GetFaceDetectionResult& WithVideoMetadata(VideoMetadataT&& value) { SetVideoMetadata(std::forward<VideoMetadataT>(value)); return *this;}
73
75
79 inline const Aws::String& GetNextToken() const { return m_nextToken; }
80 template<typename NextTokenT = Aws::String>
81 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
82 template<typename NextTokenT = Aws::String>
83 GetFaceDetectionResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
85
87
92 inline const Aws::Vector<FaceDetection>& GetFaces() const { return m_faces; }
93 template<typename FacesT = Aws::Vector<FaceDetection>>
94 void SetFaces(FacesT&& value) { m_facesHasBeenSet = true; m_faces = std::forward<FacesT>(value); }
95 template<typename FacesT = Aws::Vector<FaceDetection>>
96 GetFaceDetectionResult& WithFaces(FacesT&& value) { SetFaces(std::forward<FacesT>(value)); return *this;}
97 template<typename FacesT = FaceDetection>
98 GetFaceDetectionResult& AddFaces(FacesT&& value) { m_facesHasBeenSet = true; m_faces.emplace_back(std::forward<FacesT>(value)); return *this; }
100
102
107 inline const Aws::String& GetJobId() const { return m_jobId; }
108 template<typename JobIdT = Aws::String>
109 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
110 template<typename JobIdT = Aws::String>
111 GetFaceDetectionResult& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
113
115
116 inline const Video& GetVideo() const { return m_video; }
117 template<typename VideoT = Video>
118 void SetVideo(VideoT&& value) { m_videoHasBeenSet = true; m_video = std::forward<VideoT>(value); }
119 template<typename VideoT = Video>
120 GetFaceDetectionResult& WithVideo(VideoT&& value) { SetVideo(std::forward<VideoT>(value)); return *this;}
122
124
129 inline const Aws::String& GetJobTag() const { return m_jobTag; }
130 template<typename JobTagT = Aws::String>
131 void SetJobTag(JobTagT&& value) { m_jobTagHasBeenSet = true; m_jobTag = std::forward<JobTagT>(value); }
132 template<typename JobTagT = Aws::String>
133 GetFaceDetectionResult& WithJobTag(JobTagT&& value) { SetJobTag(std::forward<JobTagT>(value)); return *this;}
135
137
138 inline const Aws::String& GetRequestId() const { return m_requestId; }
139 template<typename RequestIdT = Aws::String>
140 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
141 template<typename RequestIdT = Aws::String>
142 GetFaceDetectionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
144 private:
145
147 bool m_jobStatusHasBeenSet = false;
148
149 Aws::String m_statusMessage;
150 bool m_statusMessageHasBeenSet = false;
151
152 VideoMetadata m_videoMetadata;
153 bool m_videoMetadataHasBeenSet = false;
154
155 Aws::String m_nextToken;
156 bool m_nextTokenHasBeenSet = false;
157
159 bool m_facesHasBeenSet = false;
160
161 Aws::String m_jobId;
162 bool m_jobIdHasBeenSet = false;
163
164 Video m_video;
165 bool m_videoHasBeenSet = false;
166
167 Aws::String m_jobTag;
168 bool m_jobTagHasBeenSet = false;
169
170 Aws::String m_requestId;
171 bool m_requestIdHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace Rekognition
176} // namespace Aws
GetFaceDetectionResult & WithNextToken(NextTokenT &&value)
const Aws::Vector< FaceDetection > & GetFaces() const
GetFaceDetectionResult & WithRequestId(RequestIdT &&value)
GetFaceDetectionResult & WithVideoMetadata(VideoMetadataT &&value)
GetFaceDetectionResult & WithVideo(VideoT &&value)
GetFaceDetectionResult & AddFaces(FacesT &&value)
AWS_REKOGNITION_API GetFaceDetectionResult()=default
AWS_REKOGNITION_API GetFaceDetectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetFaceDetectionResult & WithJobStatus(VideoJobStatus value)
AWS_REKOGNITION_API GetFaceDetectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetFaceDetectionResult & WithStatusMessage(StatusMessageT &&value)
GetFaceDetectionResult & WithJobTag(JobTagT &&value)
GetFaceDetectionResult & WithJobId(JobIdT &&value)
GetFaceDetectionResult & WithFaces(FacesT &&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