/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Rekognition { namespace Model { /** *

Information about a face detected in a video analysis request and the time * the face was detected in the video.

See Also:

AWS * API Reference

*/ class FaceDetection { public: AWS_REKOGNITION_API FaceDetection(); AWS_REKOGNITION_API FaceDetection(Aws::Utils::Json::JsonView jsonValue); AWS_REKOGNITION_API FaceDetection& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Time, in milliseconds from the start of the video, that the face was * detected. Note that Timestamp is not guaranteed to be accurate to * the individual frame where the face first appears.

*/ inline long long GetTimestamp() const{ return m_timestamp; } /** *

Time, in milliseconds from the start of the video, that the face was * detected. Note that Timestamp is not guaranteed to be accurate to * the individual frame where the face first appears.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

Time, in milliseconds from the start of the video, that the face was * detected. Note that Timestamp is not guaranteed to be accurate to * the individual frame where the face first appears.

*/ inline void SetTimestamp(long long value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

Time, in milliseconds from the start of the video, that the face was * detected. Note that Timestamp is not guaranteed to be accurate to * the individual frame where the face first appears.

*/ inline FaceDetection& WithTimestamp(long long value) { SetTimestamp(value); return *this;} /** *

The face properties for the detected face.

*/ inline const FaceDetail& GetFace() const{ return m_face; } /** *

The face properties for the detected face.

*/ inline bool FaceHasBeenSet() const { return m_faceHasBeenSet; } /** *

The face properties for the detected face.

*/ inline void SetFace(const FaceDetail& value) { m_faceHasBeenSet = true; m_face = value; } /** *

The face properties for the detected face.

*/ inline void SetFace(FaceDetail&& value) { m_faceHasBeenSet = true; m_face = std::move(value); } /** *

The face properties for the detected face.

*/ inline FaceDetection& WithFace(const FaceDetail& value) { SetFace(value); return *this;} /** *

The face properties for the detected face.

*/ inline FaceDetection& WithFace(FaceDetail&& value) { SetFace(std::move(value)); return *this;} private: long long m_timestamp; bool m_timestampHasBeenSet = false; FaceDetail m_face; bool m_faceHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws