@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ProtectiveEquipmentSummary extends Object implements Serializable, Cloneable, StructuredPojo
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
.
Constructor and Description |
---|
ProtectiveEquipmentSummary() |
Modifier and Type | Method and Description |
---|---|
ProtectiveEquipmentSummary |
clone() |
boolean |
equals(Object obj) |
List<Integer> |
getPersonsIndeterminate()
An array of IDs for persons where it was not possible to determine if they are wearing personal protective
equipment.
|
List<Integer> |
getPersonsWithoutRequiredEquipment()
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. |
List<Integer> |
getPersonsWithRequiredEquipment()
An array of IDs for persons who are wearing detected personal protective equipment.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPersonsIndeterminate(Collection<Integer> personsIndeterminate)
An array of IDs for persons where it was not possible to determine if they are wearing personal protective
equipment.
|
void |
setPersonsWithoutRequiredEquipment(Collection<Integer> 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. |
void |
setPersonsWithRequiredEquipment(Collection<Integer> personsWithRequiredEquipment)
An array of IDs for persons who are wearing detected personal protective equipment.
|
String |
toString()
Returns a string representation of this object.
|
ProtectiveEquipmentSummary |
withPersonsIndeterminate(Collection<Integer> personsIndeterminate)
An array of IDs for persons where it was not possible to determine if they are wearing personal protective
equipment.
|
ProtectiveEquipmentSummary |
withPersonsIndeterminate(Integer... personsIndeterminate)
An array of IDs for persons where it was not possible to determine if they are wearing personal protective
equipment.
|
ProtectiveEquipmentSummary |
withPersonsWithoutRequiredEquipment(Collection<Integer> 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. |
ProtectiveEquipmentSummary |
withPersonsWithoutRequiredEquipment(Integer... 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. |
ProtectiveEquipmentSummary |
withPersonsWithRequiredEquipment(Collection<Integer> personsWithRequiredEquipment)
An array of IDs for persons who are wearing detected personal protective equipment.
|
ProtectiveEquipmentSummary |
withPersonsWithRequiredEquipment(Integer... personsWithRequiredEquipment)
An array of IDs for persons who are wearing detected personal protective equipment.
|
public List<Integer> getPersonsWithRequiredEquipment()
An array of IDs for persons who are wearing detected personal protective equipment.
public void setPersonsWithRequiredEquipment(Collection<Integer> personsWithRequiredEquipment)
An array of IDs for persons who are wearing detected personal protective equipment.
personsWithRequiredEquipment
- An array of IDs for persons who are wearing detected personal protective equipment.public ProtectiveEquipmentSummary withPersonsWithRequiredEquipment(Integer... personsWithRequiredEquipment)
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
setPersonsWithRequiredEquipment(java.util.Collection)
or
withPersonsWithRequiredEquipment(java.util.Collection)
if you want to override the existing values.
personsWithRequiredEquipment
- An array of IDs for persons who are wearing detected personal protective equipment.public ProtectiveEquipmentSummary withPersonsWithRequiredEquipment(Collection<Integer> personsWithRequiredEquipment)
An array of IDs for persons who are wearing detected personal protective equipment.
personsWithRequiredEquipment
- An array of IDs for persons who are wearing detected personal protective equipment.public List<Integer> getPersonsWithoutRequiredEquipment()
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(Collection<Integer> 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.
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.public ProtectiveEquipmentSummary withPersonsWithoutRequiredEquipment(Integer... 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.
NOTE: This method appends the values to the existing list (if any). Use
setPersonsWithoutRequiredEquipment(java.util.Collection)
or
withPersonsWithoutRequiredEquipment(java.util.Collection)
if you want to override the existing values.
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.public ProtectiveEquipmentSummary withPersonsWithoutRequiredEquipment(Collection<Integer> 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.
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.public List<Integer> getPersonsIndeterminate()
An array of IDs for persons where it was not possible to determine if they are wearing personal protective equipment.
public void setPersonsIndeterminate(Collection<Integer> personsIndeterminate)
An array of IDs for persons where it was not possible to determine if they are wearing personal protective equipment.
personsIndeterminate
- An array of IDs for persons where it was not possible to determine if they are wearing personal protective
equipment.public ProtectiveEquipmentSummary withPersonsIndeterminate(Integer... personsIndeterminate)
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
setPersonsIndeterminate(java.util.Collection)
or withPersonsIndeterminate(java.util.Collection)
if you want to override the existing values.
personsIndeterminate
- An array of IDs for persons where it was not possible to determine if they are wearing personal protective
equipment.public ProtectiveEquipmentSummary withPersonsIndeterminate(Collection<Integer> personsIndeterminate)
An array of IDs for persons where it was not possible to determine if they are wearing personal protective equipment.
personsIndeterminate
- An array of IDs for persons where it was not possible to determine if they are wearing personal protective
equipment.public String toString()
toString
in class Object
Object.toString()
public ProtectiveEquipmentSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.