/** * 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 an item of Personal Protective Equipment (PPE) detected by * DetectProtectiveEquipment. For more information, see * DetectProtectiveEquipment.

See Also:

AWS * API Reference

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

A bounding box surrounding the item of detected PPE.

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

A bounding box surrounding the item of detected PPE.

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

A bounding box surrounding the item of detected PPE.

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

A bounding box surrounding the item of detected PPE.

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

A bounding box surrounding the item of detected PPE.

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

A bounding box surrounding the item of detected PPE.

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

The confidence that Amazon Rekognition has that the bounding box * (BoundingBox) contains an item of PPE.

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

The confidence that Amazon Rekognition has that the bounding box * (BoundingBox) contains an item of PPE.

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

The confidence that Amazon Rekognition has that the bounding box * (BoundingBox) contains an item of PPE.

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

The confidence that Amazon Rekognition has that the bounding box * (BoundingBox) contains an item of PPE.

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

The type of detected PPE.

*/ inline const ProtectiveEquipmentType& GetType() const{ return m_type; } /** *

The type of detected PPE.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of detected PPE.

*/ inline void SetType(const ProtectiveEquipmentType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of detected PPE.

*/ inline void SetType(ProtectiveEquipmentType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of detected PPE.

*/ inline EquipmentDetection& WithType(const ProtectiveEquipmentType& value) { SetType(value); return *this;} /** *

The type of detected PPE.

*/ inline EquipmentDetection& WithType(ProtectiveEquipmentType&& value) { SetType(std::move(value)); return *this;} /** *

Information about the body part covered by the detected PPE.

*/ inline const CoversBodyPart& GetCoversBodyPart() const{ return m_coversBodyPart; } /** *

Information about the body part covered by the detected PPE.

*/ inline bool CoversBodyPartHasBeenSet() const { return m_coversBodyPartHasBeenSet; } /** *

Information about the body part covered by the detected PPE.

*/ inline void SetCoversBodyPart(const CoversBodyPart& value) { m_coversBodyPartHasBeenSet = true; m_coversBodyPart = value; } /** *

Information about the body part covered by the detected PPE.

*/ inline void SetCoversBodyPart(CoversBodyPart&& value) { m_coversBodyPartHasBeenSet = true; m_coversBodyPart = std::move(value); } /** *

Information about the body part covered by the detected PPE.

*/ inline EquipmentDetection& WithCoversBodyPart(const CoversBodyPart& value) { SetCoversBodyPart(value); return *this;} /** *

Information about the body part covered by the detected PPE.

*/ inline EquipmentDetection& WithCoversBodyPart(CoversBodyPart&& value) { SetCoversBodyPart(std::move(value)); return *this;} private: BoundingBox m_boundingBox; bool m_boundingBoxHasBeenSet = false; double m_confidence; bool m_confidenceHasBeenSet = false; ProtectiveEquipmentType m_type; bool m_typeHasBeenSet = false; CoversBodyPart m_coversBodyPart; bool m_coversBodyPartHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws