AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
FaceDetection.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/FaceDetail.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
29 public:
30 AWS_REKOGNITION_API FaceDetection() = default;
31 AWS_REKOGNITION_API FaceDetection(Aws::Utils::Json::JsonView jsonValue);
32 AWS_REKOGNITION_API FaceDetection& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline long long GetTimestamp() const { return m_timestamp; }
42 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
43 inline void SetTimestamp(long long value) {
44 m_timestampHasBeenSet = true;
45 m_timestamp = value;
46 }
47 inline FaceDetection& WithTimestamp(long long value) {
48 SetTimestamp(value);
49 return *this;
50 }
52
54
57 inline const FaceDetail& GetFace() const { return m_face; }
58 inline bool FaceHasBeenSet() const { return m_faceHasBeenSet; }
59 template <typename FaceT = FaceDetail>
60 void SetFace(FaceT&& value) {
61 m_faceHasBeenSet = true;
62 m_face = std::forward<FaceT>(value);
63 }
64 template <typename FaceT = FaceDetail>
65 FaceDetection& WithFace(FaceT&& value) {
66 SetFace(std::forward<FaceT>(value));
67 return *this;
68 }
70 private:
71 long long m_timestamp{0};
72
73 FaceDetail m_face;
74 bool m_timestampHasBeenSet = false;
75 bool m_faceHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Rekognition
80} // namespace Aws
FaceDetection & WithFace(FaceT &&value)
AWS_REKOGNITION_API FaceDetection(Aws::Utils::Json::JsonView jsonValue)
AWS_REKOGNITION_API FaceDetection()=default
const FaceDetail & GetFace() const
AWS_REKOGNITION_API FaceDetection & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
FaceDetection & WithTimestamp(long long value)
Aws::Utils::Json::JsonValue JsonValue