/* * 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; /** *
* A person detected by a call to DetectProtectiveEquipment. The API
* returns all persons detected in the input image in an array of
* ProtectiveEquipmentPerson
objects.
*
* An array of body parts detected on a person's body (including body parts * without PPE). *
*/ private java.util.List* A bounding box around the detected person. *
*/ private BoundingBox boundingBox; /** ** The confidence that Amazon Rekognition has that the bounding box contains * a person. *
*
* Constraints:
* Length: 0.0 - 100.0
*/
private Float confidence;
/**
*
* The identifier for the detected person. The identifier is only unique for
* a single call to DetectProtectiveEquipment
.
*
* Constraints:
* Range: 0 -
*/
private Integer id;
/**
*
* An array of body parts detected on a person's body (including body parts * without PPE). *
* * @return* An array of body parts detected on a person's body (including * body parts without PPE). *
*/ public java.util.List* An array of body parts detected on a person's body (including body parts * without PPE). *
* * @param bodyParts* An array of body parts detected on a person's body (including * body parts without PPE). *
*/ public void setBodyParts(java.util.Collection* An array of body parts detected on a person's body (including body parts * without PPE). *
** Returns a reference to this object so that method calls can be chained * together. * * @param bodyParts
* An array of body parts detected on a person's body (including * body parts without PPE). *
* @return A reference to this updated object so that method calls can be * chained together. */ public ProtectiveEquipmentPerson withBodyParts(ProtectiveEquipmentBodyPart... bodyParts) { if (getBodyParts() == null) { this.bodyParts = new java.util.ArrayList* An array of body parts detected on a person's body (including body parts * without PPE). *
** Returns a reference to this object so that method calls can be chained * together. * * @param bodyParts
* An array of body parts detected on a person's body (including * body parts without PPE). *
* @return A reference to this updated object so that method calls can be * chained together. */ public ProtectiveEquipmentPerson withBodyParts( java.util.Collection* A bounding box around the detected person. *
* * @return* A bounding box around the detected person. *
*/ public BoundingBox getBoundingBox() { return boundingBox; } /** ** A bounding box around the detected person. *
* * @param boundingBox* A bounding box around the detected person. *
*/ public void setBoundingBox(BoundingBox boundingBox) { this.boundingBox = boundingBox; } /** ** A bounding box around the detected person. *
** Returns a reference to this object so that method calls can be chained * together. * * @param boundingBox
* A bounding box around the detected person. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ProtectiveEquipmentPerson withBoundingBox(BoundingBox boundingBox) { this.boundingBox = boundingBox; return this; } /** ** The confidence that Amazon Rekognition has that the bounding box contains * a person. *
*
* Constraints:
* Length: 0.0 - 100.0
*
* @return
* The confidence that Amazon Rekognition has that the bounding box * contains a person. *
*/ public Float getConfidence() { return confidence; } /** ** The confidence that Amazon Rekognition has that the bounding box contains * a person. *
*
* Constraints:
* Length: 0.0 - 100.0
*
* @param confidence
* The confidence that Amazon Rekognition has that the bounding * box contains a person. *
*/ public void setConfidence(Float confidence) { this.confidence = confidence; } /** ** The confidence that Amazon Rekognition has that the bounding box contains * a person. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 0.0 - 100.0
*
* @param confidence
* The confidence that Amazon Rekognition has that the bounding * box contains a person. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ProtectiveEquipmentPerson withConfidence(Float confidence) { this.confidence = confidence; return this; } /** *
* The identifier for the detected person. The identifier is only unique for
* a single call to DetectProtectiveEquipment
.
*
* Constraints:
* Range: 0 -
*
* @return
* The identifier for the detected person. The identifier is only
* unique for a single call to
* DetectProtectiveEquipment
.
*
* The identifier for the detected person. The identifier is only unique for
* a single call to DetectProtectiveEquipment
.
*
* Constraints:
* Range: 0 -
*
* @param id
* The identifier for the detected person. The identifier is only
* unique for a single call to
* DetectProtectiveEquipment
.
*
* The identifier for the detected person. The identifier is only unique for
* a single call to DetectProtectiveEquipment
.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Range: 0 -
*
* @param id
* The identifier for the detected person. The identifier is only
* unique for a single call to
* DetectProtectiveEquipment
.
*