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

A person detected by a call to DetectProtectiveEquipment. The API * returns all persons detected in the input image in an array of * ProtectiveEquipmentPerson objects.

See Also:

AWS * API Reference

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

An array of body parts detected on a person's body (including body parts * without PPE).

*/ inline const Aws::Vector& GetBodyParts() const{ return m_bodyParts; } /** *

An array of body parts detected on a person's body (including body parts * without PPE).

*/ inline bool BodyPartsHasBeenSet() const { return m_bodyPartsHasBeenSet; } /** *

An array of body parts detected on a person's body (including body parts * without PPE).

*/ inline void SetBodyParts(const Aws::Vector& value) { m_bodyPartsHasBeenSet = true; m_bodyParts = value; } /** *

An array of body parts detected on a person's body (including body parts * without PPE).

*/ inline void SetBodyParts(Aws::Vector&& value) { m_bodyPartsHasBeenSet = true; m_bodyParts = std::move(value); } /** *

An array of body parts detected on a person's body (including body parts * without PPE).

*/ inline ProtectiveEquipmentPerson& WithBodyParts(const Aws::Vector& value) { SetBodyParts(value); return *this;} /** *

An array of body parts detected on a person's body (including body parts * without PPE).

*/ inline ProtectiveEquipmentPerson& WithBodyParts(Aws::Vector&& value) { SetBodyParts(std::move(value)); return *this;} /** *

An array of body parts detected on a person's body (including body parts * without PPE).

*/ inline ProtectiveEquipmentPerson& AddBodyParts(const ProtectiveEquipmentBodyPart& value) { m_bodyPartsHasBeenSet = true; m_bodyParts.push_back(value); return *this; } /** *

An array of body parts detected on a person's body (including body parts * without PPE).

*/ inline ProtectiveEquipmentPerson& AddBodyParts(ProtectiveEquipmentBodyPart&& value) { m_bodyPartsHasBeenSet = true; m_bodyParts.push_back(std::move(value)); return *this; } /** *

A bounding box around the detected person.

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

A bounding box around the detected person.

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

A bounding box around the detected person.

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

A bounding box around the detected person.

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

A bounding box around the detected person.

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

A bounding box around the detected person.

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

The confidence that Amazon Rekognition has that the bounding box contains a * person.

*/ inline double GetConfidence() const{ return m_confidence; } /** *

The confidence that Amazon Rekognition has that the bounding box contains a * person.

*/ inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; } /** *

The confidence that Amazon Rekognition has that the bounding box contains a * person.

*/ inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; } /** *

The confidence that Amazon Rekognition has that the bounding box contains a * person.

*/ inline ProtectiveEquipmentPerson& WithConfidence(double value) { SetConfidence(value); return *this;} /** *

The identifier for the detected person. The identifier is only unique for a * single call to DetectProtectiveEquipment.

*/ inline int GetId() const{ return m_id; } /** *

The identifier for the detected person. The identifier is only unique for a * single call to DetectProtectiveEquipment.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The identifier for the detected person. The identifier is only unique for a * single call to DetectProtectiveEquipment.

*/ inline void SetId(int value) { m_idHasBeenSet = true; m_id = value; } /** *

The identifier for the detected person. The identifier is only unique for a * single call to DetectProtectiveEquipment.

*/ inline ProtectiveEquipmentPerson& WithId(int value) { SetId(value); return *this;} private: Aws::Vector m_bodyParts; bool m_bodyPartsHasBeenSet = false; BoundingBox m_boundingBox; bool m_boundingBoxHasBeenSet = false; double m_confidence; bool m_confidenceHasBeenSet = false; int m_id; bool m_idHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws