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

Summary information for required items of personal protective equipment (PPE) * detected on persons by a call to DetectProtectiveEquipment. You specify * the required type of PPE in the SummarizationAttributes * (ProtectiveEquipmentSummarizationAttributes) input parameter. The summary * includes which persons were detected wearing the required personal protective * equipment (PersonsWithRequiredEquipment), which persons were * detected as not wearing the required PPE * (PersonsWithoutRequiredEquipment), and the persons in which a * determination could not be made (PersonsIndeterminate).

To * get a total for each category, use the size of the field array. For example, to * find out how many people were detected as wearing the specified PPE, use the * size of the PersonsWithRequiredEquipment array. If you want to find * out more about a person, such as the location (BoundingBox) of the person * on the image, use the person ID in each array element. Each person ID matches * the ID field of a ProtectiveEquipmentPerson object returned in the * Persons array by * DetectProtectiveEquipment.

See Also:

AWS * API Reference

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

An array of IDs for persons who are wearing detected personal protective * equipment.

*/ inline const Aws::Vector& GetPersonsWithRequiredEquipment() const{ return m_personsWithRequiredEquipment; } /** *

An array of IDs for persons who are wearing detected personal protective * equipment.

*/ inline bool PersonsWithRequiredEquipmentHasBeenSet() const { return m_personsWithRequiredEquipmentHasBeenSet; } /** *

An array of IDs for persons who are wearing detected personal protective * equipment.

*/ inline void SetPersonsWithRequiredEquipment(const Aws::Vector& value) { m_personsWithRequiredEquipmentHasBeenSet = true; m_personsWithRequiredEquipment = value; } /** *

An array of IDs for persons who are wearing detected personal protective * equipment.

*/ inline void SetPersonsWithRequiredEquipment(Aws::Vector&& value) { m_personsWithRequiredEquipmentHasBeenSet = true; m_personsWithRequiredEquipment = std::move(value); } /** *

An array of IDs for persons who are wearing detected personal protective * equipment.

*/ inline ProtectiveEquipmentSummary& WithPersonsWithRequiredEquipment(const Aws::Vector& value) { SetPersonsWithRequiredEquipment(value); return *this;} /** *

An array of IDs for persons who are wearing detected personal protective * equipment.

*/ inline ProtectiveEquipmentSummary& WithPersonsWithRequiredEquipment(Aws::Vector&& value) { SetPersonsWithRequiredEquipment(std::move(value)); return *this;} /** *

An array of IDs for persons who are wearing detected personal protective * equipment.

*/ inline ProtectiveEquipmentSummary& AddPersonsWithRequiredEquipment(int value) { m_personsWithRequiredEquipmentHasBeenSet = true; m_personsWithRequiredEquipment.push_back(value); return *this; } /** *

An array of IDs for persons who are not wearing all of the types of PPE * specified in the RequiredEquipmentTypes field of the detected * personal protective equipment.

*/ inline const Aws::Vector& GetPersonsWithoutRequiredEquipment() const{ return m_personsWithoutRequiredEquipment; } /** *

An array of IDs for persons who are not wearing all of the types of PPE * specified in the RequiredEquipmentTypes field of the detected * personal protective equipment.

*/ inline bool PersonsWithoutRequiredEquipmentHasBeenSet() const { return m_personsWithoutRequiredEquipmentHasBeenSet; } /** *

An array of IDs for persons who are not wearing all of the types of PPE * specified in the RequiredEquipmentTypes field of the detected * personal protective equipment.

*/ inline void SetPersonsWithoutRequiredEquipment(const Aws::Vector& value) { m_personsWithoutRequiredEquipmentHasBeenSet = true; m_personsWithoutRequiredEquipment = value; } /** *

An array of IDs for persons who are not wearing all of the types of PPE * specified in the RequiredEquipmentTypes field of the detected * personal protective equipment.

*/ inline void SetPersonsWithoutRequiredEquipment(Aws::Vector&& value) { m_personsWithoutRequiredEquipmentHasBeenSet = true; m_personsWithoutRequiredEquipment = std::move(value); } /** *

An array of IDs for persons who are not wearing all of the types of PPE * specified in the RequiredEquipmentTypes field of the detected * personal protective equipment.

*/ inline ProtectiveEquipmentSummary& WithPersonsWithoutRequiredEquipment(const Aws::Vector& value) { SetPersonsWithoutRequiredEquipment(value); return *this;} /** *

An array of IDs for persons who are not wearing all of the types of PPE * specified in the RequiredEquipmentTypes field of the detected * personal protective equipment.

*/ inline ProtectiveEquipmentSummary& WithPersonsWithoutRequiredEquipment(Aws::Vector&& value) { SetPersonsWithoutRequiredEquipment(std::move(value)); return *this;} /** *

An array of IDs for persons who are not wearing all of the types of PPE * specified in the RequiredEquipmentTypes field of the detected * personal protective equipment.

*/ inline ProtectiveEquipmentSummary& AddPersonsWithoutRequiredEquipment(int value) { m_personsWithoutRequiredEquipmentHasBeenSet = true; m_personsWithoutRequiredEquipment.push_back(value); return *this; } /** *

An array of IDs for persons where it was not possible to determine if they * are wearing personal protective equipment.

*/ inline const Aws::Vector& GetPersonsIndeterminate() const{ return m_personsIndeterminate; } /** *

An array of IDs for persons where it was not possible to determine if they * are wearing personal protective equipment.

*/ inline bool PersonsIndeterminateHasBeenSet() const { return m_personsIndeterminateHasBeenSet; } /** *

An array of IDs for persons where it was not possible to determine if they * are wearing personal protective equipment.

*/ inline void SetPersonsIndeterminate(const Aws::Vector& value) { m_personsIndeterminateHasBeenSet = true; m_personsIndeterminate = value; } /** *

An array of IDs for persons where it was not possible to determine if they * are wearing personal protective equipment.

*/ inline void SetPersonsIndeterminate(Aws::Vector&& value) { m_personsIndeterminateHasBeenSet = true; m_personsIndeterminate = std::move(value); } /** *

An array of IDs for persons where it was not possible to determine if they * are wearing personal protective equipment.

*/ inline ProtectiveEquipmentSummary& WithPersonsIndeterminate(const Aws::Vector& value) { SetPersonsIndeterminate(value); return *this;} /** *

An array of IDs for persons where it was not possible to determine if they * are wearing personal protective equipment.

*/ inline ProtectiveEquipmentSummary& WithPersonsIndeterminate(Aws::Vector&& value) { SetPersonsIndeterminate(std::move(value)); return *this;} /** *

An array of IDs for persons where it was not possible to determine if they * are wearing personal protective equipment.

*/ inline ProtectiveEquipmentSummary& AddPersonsIndeterminate(int value) { m_personsIndeterminateHasBeenSet = true; m_personsIndeterminate.push_back(value); return *this; } private: Aws::Vector m_personsWithRequiredEquipment; bool m_personsWithRequiredEquipmentHasBeenSet = false; Aws::Vector m_personsWithoutRequiredEquipment; bool m_personsWithoutRequiredEquipmentHasBeenSet = false; Aws::Vector m_personsIndeterminate; bool m_personsIndeterminateHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws