/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.rekognition.model; import java.io.Serializable; /** *
* 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
.
*
* An array of IDs for persons who are wearing detected personal protective * equipment. *
*/ private java.util.List
* 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.
*
* An array of IDs for persons where it was not possible to determine if * they are wearing personal protective equipment. *
*/ private java.util.List* An array of IDs for persons who are wearing detected personal protective * equipment. *
* * @return* An array of IDs for persons who are wearing detected personal * protective equipment. *
*/ public java.util.List* An array of IDs for persons who are wearing detected personal protective * equipment. *
* * @param personsWithRequiredEquipment* An array of IDs for persons who are wearing detected personal * protective equipment. *
*/ public void setPersonsWithRequiredEquipment( java.util.Collection* An array of IDs for persons who are wearing detected personal protective * equipment. *
** Returns a reference to this object so that method calls can be chained * together. * * @param personsWithRequiredEquipment
* An array of IDs for persons who are wearing detected personal * protective equipment. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ProtectiveEquipmentSummary withPersonsWithRequiredEquipment( Integer... personsWithRequiredEquipment) { if (getPersonsWithRequiredEquipment() == null) { this.personsWithRequiredEquipment = new java.util.ArrayList* An array of IDs for persons who are wearing detected personal protective * equipment. *
** Returns a reference to this object so that method calls can be chained * together. * * @param personsWithRequiredEquipment
* An array of IDs for persons who are wearing detected personal * protective equipment. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ProtectiveEquipmentSummary withPersonsWithRequiredEquipment( java.util.Collection
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param 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.
*
* 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.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param 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.
*
* An array of IDs for persons where it was not possible to determine if * they are wearing personal protective equipment. *
* * @return* An array of IDs for persons where it was not possible to * determine if they are wearing personal protective equipment. *
*/ public java.util.List* An array of IDs for persons where it was not possible to determine if * they are wearing personal protective equipment. *
* * @param personsIndeterminate* An array of IDs for persons where it was not possible to * determine if they are wearing personal protective equipment. *
*/ public void setPersonsIndeterminate(java.util.Collection* An array of IDs for persons where it was not possible to determine if * they are wearing personal protective equipment. *
** Returns a reference to this object so that method calls can be chained * together. * * @param personsIndeterminate
* An array of IDs for persons where it was not possible to * determine if they are wearing personal protective equipment. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ProtectiveEquipmentSummary withPersonsIndeterminate(Integer... personsIndeterminate) { if (getPersonsIndeterminate() == null) { this.personsIndeterminate = new java.util.ArrayList* An array of IDs for persons where it was not possible to determine if * they are wearing personal protective equipment. *
** Returns a reference to this object so that method calls can be chained * together. * * @param personsIndeterminate
* An array of IDs for persons where it was not possible to * determine if they are wearing personal protective equipment. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ProtectiveEquipmentSummary withPersonsIndeterminate( java.util.Collection