/** * 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 { /** *

Information about a body part detected by DetectProtectiveEquipment * that contains PPE. An array of ProtectiveEquipmentBodyPart objects * is returned for each person detected by DetectProtectiveEquipment. *

See Also:

AWS * API Reference

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

The detected body part.

*/ inline const BodyPart& GetName() const{ return m_name; } /** *

The detected body part.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The detected body part.

*/ inline void SetName(const BodyPart& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The detected body part.

*/ inline void SetName(BodyPart&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The detected body part.

*/ inline ProtectiveEquipmentBodyPart& WithName(const BodyPart& value) { SetName(value); return *this;} /** *

The detected body part.

*/ inline ProtectiveEquipmentBodyPart& WithName(BodyPart&& value) { SetName(std::move(value)); return *this;} /** *

The confidence that Amazon Rekognition has in the detection accuracy of the * detected body part.

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

The confidence that Amazon Rekognition has in the detection accuracy of the * detected body part.

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

The confidence that Amazon Rekognition has in the detection accuracy of the * detected body part.

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

The confidence that Amazon Rekognition has in the detection accuracy of the * detected body part.

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

An array of Personal Protective Equipment items detected around a body * part.

*/ inline const Aws::Vector& GetEquipmentDetections() const{ return m_equipmentDetections; } /** *

An array of Personal Protective Equipment items detected around a body * part.

*/ inline bool EquipmentDetectionsHasBeenSet() const { return m_equipmentDetectionsHasBeenSet; } /** *

An array of Personal Protective Equipment items detected around a body * part.

*/ inline void SetEquipmentDetections(const Aws::Vector& value) { m_equipmentDetectionsHasBeenSet = true; m_equipmentDetections = value; } /** *

An array of Personal Protective Equipment items detected around a body * part.

*/ inline void SetEquipmentDetections(Aws::Vector&& value) { m_equipmentDetectionsHasBeenSet = true; m_equipmentDetections = std::move(value); } /** *

An array of Personal Protective Equipment items detected around a body * part.

*/ inline ProtectiveEquipmentBodyPart& WithEquipmentDetections(const Aws::Vector& value) { SetEquipmentDetections(value); return *this;} /** *

An array of Personal Protective Equipment items detected around a body * part.

*/ inline ProtectiveEquipmentBodyPart& WithEquipmentDetections(Aws::Vector&& value) { SetEquipmentDetections(std::move(value)); return *this;} /** *

An array of Personal Protective Equipment items detected around a body * part.

*/ inline ProtectiveEquipmentBodyPart& AddEquipmentDetections(const EquipmentDetection& value) { m_equipmentDetectionsHasBeenSet = true; m_equipmentDetections.push_back(value); return *this; } /** *

An array of Personal Protective Equipment items detected around a body * part.

*/ inline ProtectiveEquipmentBodyPart& AddEquipmentDetections(EquipmentDetection&& value) { m_equipmentDetectionsHasBeenSet = true; m_equipmentDetections.push_back(std::move(value)); return *this; } private: BodyPart m_name; bool m_nameHasBeenSet = false; double m_confidence; bool m_confidenceHasBeenSet = false; Aws::Vector m_equipmentDetections; bool m_equipmentDetectionsHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws