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

Details about a person detected in a video analysis request.

See * Also:

AWS * API Reference

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

Identifier for the person detected person within a video. Use to keep track * of the person throughout the video. The identifier is not stored by Amazon * Rekognition.

*/ inline long long GetIndex() const{ return m_index; } /** *

Identifier for the person detected person within a video. Use to keep track * of the person throughout the video. The identifier is not stored by Amazon * Rekognition.

*/ inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; } /** *

Identifier for the person detected person within a video. Use to keep track * of the person throughout the video. The identifier is not stored by Amazon * Rekognition.

*/ inline void SetIndex(long long value) { m_indexHasBeenSet = true; m_index = value; } /** *

Identifier for the person detected person within a video. Use to keep track * of the person throughout the video. The identifier is not stored by Amazon * Rekognition.

*/ inline PersonDetail& WithIndex(long long value) { SetIndex(value); return *this;} /** *

Bounding box around the detected person.

*/ inline const BoundingBox& GetBoundingBox() const{ return m_boundingBox; } /** *

Bounding box around the detected person.

*/ inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; } /** *

Bounding box around the detected person.

*/ inline void SetBoundingBox(const BoundingBox& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = value; } /** *

Bounding box around the detected person.

*/ inline void SetBoundingBox(BoundingBox&& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = std::move(value); } /** *

Bounding box around the detected person.

*/ inline PersonDetail& WithBoundingBox(const BoundingBox& value) { SetBoundingBox(value); return *this;} /** *

Bounding box around the detected person.

*/ inline PersonDetail& WithBoundingBox(BoundingBox&& value) { SetBoundingBox(std::move(value)); return *this;} /** *

Face details for the detected person.

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

Face details for the detected person.

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

Face details for the detected person.

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

Face details for the detected person.

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

Face details for the detected person.

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

Face details for the detected person.

*/ inline PersonDetail& WithFace(FaceDetail&& value) { SetFace(std::move(value)); return *this;} private: long long m_index; bool m_indexHasBeenSet = false; BoundingBox m_boundingBox; bool m_boundingBoxHasBeenSet = false; FaceDetail m_face; bool m_faceHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws