/* * Copyright 2018-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; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* 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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPersonsWithRequiredEquipment(java.util.Collection)} or * {@link #withPersonsWithRequiredEquipment(java.util.Collection)} if you want to override the existing values. *
* * @param personsWithRequiredEquipment * An array of IDs for persons who are wearing detected personal protective equipment. * @return Returns a reference to this object so that method calls can be chained together. */ public ProtectiveEquipmentSummary withPersonsWithRequiredEquipment(Integer... personsWithRequiredEquipment) { if (this.personsWithRequiredEquipment == null) { setPersonsWithRequiredEquipment(new java.util.ArrayList* 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. * @return Returns a reference to this 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.
*
RequiredEquipmentTypes
field of the detected personal protective equipment.
*/
public 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.
*
RequiredEquipmentTypes
field of the detected personal protective equipment.
*/
public void setPersonsWithoutRequiredEquipment(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.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setPersonsWithoutRequiredEquipment(java.util.Collection)} or * {@link #withPersonsWithoutRequiredEquipment(java.util.Collection)} if you want to override the existing values. *
* * @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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ProtectiveEquipmentSummary withPersonsWithoutRequiredEquipment(Integer... personsWithoutRequiredEquipment) {
if (this.personsWithoutRequiredEquipment == null) {
setPersonsWithoutRequiredEquipment(new java.util.ArrayList
* 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.
*
RequiredEquipmentTypes
field of the detected personal protective equipment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ProtectiveEquipmentSummary withPersonsWithoutRequiredEquipment(java.util.Collection* 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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPersonsIndeterminate(java.util.Collection)} or {@link #withPersonsIndeterminate(java.util.Collection)} * if you want to override the existing values. *
* * @param personsIndeterminate * An array of IDs for persons where it was not possible to determine if they are wearing personal protective * equipment. * @return Returns a reference to this object so that method calls can be chained together. */ public ProtectiveEquipmentSummary withPersonsIndeterminate(Integer... personsIndeterminate) { if (this.personsIndeterminate == null) { setPersonsIndeterminate(new java.util.ArrayList* 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. * @return Returns a reference to this object so that method calls can be chained together. */ public ProtectiveEquipmentSummary withPersonsIndeterminate(java.util.Collection