@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ProtectiveEquipmentBodyPart extends Object implements Serializable, Cloneable, StructuredPojo
Information about a body part detected by DetectProtectiveEquipment that contains PPE. An array of
ProtectiveEquipmentBodyPart
objects is returned for each person detected by
DetectProtectiveEquipment
.
Constructor and Description |
---|
ProtectiveEquipmentBodyPart() |
Modifier and Type | Method and Description |
---|---|
ProtectiveEquipmentBodyPart |
clone() |
boolean |
equals(Object obj) |
Float |
getConfidence()
The confidence that Amazon Rekognition has in the detection accuracy of the detected body part.
|
List<EquipmentDetection> |
getEquipmentDetections()
An array of Personal Protective Equipment items detected around a body part.
|
String |
getName()
The detected body part.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setConfidence(Float confidence)
The confidence that Amazon Rekognition has in the detection accuracy of the detected body part.
|
void |
setEquipmentDetections(Collection<EquipmentDetection> equipmentDetections)
An array of Personal Protective Equipment items detected around a body part.
|
void |
setName(String name)
The detected body part.
|
String |
toString()
Returns a string representation of this object.
|
ProtectiveEquipmentBodyPart |
withConfidence(Float confidence)
The confidence that Amazon Rekognition has in the detection accuracy of the detected body part.
|
ProtectiveEquipmentBodyPart |
withEquipmentDetections(Collection<EquipmentDetection> equipmentDetections)
An array of Personal Protective Equipment items detected around a body part.
|
ProtectiveEquipmentBodyPart |
withEquipmentDetections(EquipmentDetection... equipmentDetections)
An array of Personal Protective Equipment items detected around a body part.
|
ProtectiveEquipmentBodyPart |
withName(BodyPart name)
The detected body part.
|
ProtectiveEquipmentBodyPart |
withName(String name)
The detected body part.
|
public void setName(String name)
The detected body part.
name
- The detected body part.BodyPart
public String getName()
The detected body part.
BodyPart
public ProtectiveEquipmentBodyPart withName(String name)
The detected body part.
name
- The detected body part.BodyPart
public ProtectiveEquipmentBodyPart withName(BodyPart name)
The detected body part.
name
- The detected body part.BodyPart
public void setConfidence(Float confidence)
The confidence that Amazon Rekognition has in the detection accuracy of the detected body part.
confidence
- The confidence that Amazon Rekognition has in the detection accuracy of the detected body part.public Float getConfidence()
The confidence that Amazon Rekognition has in the detection accuracy of the detected body part.
public ProtectiveEquipmentBodyPart withConfidence(Float confidence)
The confidence that Amazon Rekognition has in the detection accuracy of the detected body part.
confidence
- The confidence that Amazon Rekognition has in the detection accuracy of the detected body part.public List<EquipmentDetection> getEquipmentDetections()
An array of Personal Protective Equipment items detected around a body part.
public void setEquipmentDetections(Collection<EquipmentDetection> equipmentDetections)
An array of Personal Protective Equipment items detected around a body part.
equipmentDetections
- An array of Personal Protective Equipment items detected around a body part.public ProtectiveEquipmentBodyPart withEquipmentDetections(EquipmentDetection... equipmentDetections)
An array of Personal Protective Equipment items detected around a body part.
NOTE: This method appends the values to the existing list (if any). Use
setEquipmentDetections(java.util.Collection)
or withEquipmentDetections(java.util.Collection)
if you want to override the existing values.
equipmentDetections
- An array of Personal Protective Equipment items detected around a body part.public ProtectiveEquipmentBodyPart withEquipmentDetections(Collection<EquipmentDetection> equipmentDetections)
An array of Personal Protective Equipment items detected around a body part.
equipmentDetections
- An array of Personal Protective Equipment items detected around a body part.public String toString()
toString
in class Object
Object.toString()
public ProtectiveEquipmentBodyPart clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.