@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PersonMatch extends Object implements Serializable, Cloneable, StructuredPojo
Information about a person whose face matches a face(s) in an Amazon Rekognition collection. Includes information
about the faces in the Amazon Rekognition collection (FaceMatch), information about the person
(PersonDetail), and the time stamp for when the person was detected in a video. An array of
PersonMatch
objects is returned by GetFaceSearch.
Constructor and Description |
---|
PersonMatch() |
Modifier and Type | Method and Description |
---|---|
PersonMatch |
clone() |
boolean |
equals(Object obj) |
List<FaceMatch> |
getFaceMatches()
Information about the faces in the input collection that match the face of a person in the video.
|
PersonDetail |
getPerson()
Information about the matched person.
|
Long |
getTimestamp()
The time, in milliseconds from the beginning of the video, that the person was matched in the video.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFaceMatches(Collection<FaceMatch> faceMatches)
Information about the faces in the input collection that match the face of a person in the video.
|
void |
setPerson(PersonDetail person)
Information about the matched person.
|
void |
setTimestamp(Long timestamp)
The time, in milliseconds from the beginning of the video, that the person was matched in the video.
|
String |
toString()
Returns a string representation of this object.
|
PersonMatch |
withFaceMatches(Collection<FaceMatch> faceMatches)
Information about the faces in the input collection that match the face of a person in the video.
|
PersonMatch |
withFaceMatches(FaceMatch... faceMatches)
Information about the faces in the input collection that match the face of a person in the video.
|
PersonMatch |
withPerson(PersonDetail person)
Information about the matched person.
|
PersonMatch |
withTimestamp(Long timestamp)
The time, in milliseconds from the beginning of the video, that the person was matched in the video.
|
public void setTimestamp(Long timestamp)
The time, in milliseconds from the beginning of the video, that the person was matched in the video.
timestamp
- The time, in milliseconds from the beginning of the video, that the person was matched in the video.public Long getTimestamp()
The time, in milliseconds from the beginning of the video, that the person was matched in the video.
public PersonMatch withTimestamp(Long timestamp)
The time, in milliseconds from the beginning of the video, that the person was matched in the video.
timestamp
- The time, in milliseconds from the beginning of the video, that the person was matched in the video.public void setPerson(PersonDetail person)
Information about the matched person.
person
- Information about the matched person.public PersonDetail getPerson()
Information about the matched person.
public PersonMatch withPerson(PersonDetail person)
Information about the matched person.
person
- Information about the matched person.public List<FaceMatch> getFaceMatches()
Information about the faces in the input collection that match the face of a person in the video.
public void setFaceMatches(Collection<FaceMatch> faceMatches)
Information about the faces in the input collection that match the face of a person in the video.
faceMatches
- Information about the faces in the input collection that match the face of a person in the video.public PersonMatch withFaceMatches(FaceMatch... faceMatches)
Information about the faces in the input collection that match the face of a person in the video.
NOTE: This method appends the values to the existing list (if any). Use
setFaceMatches(java.util.Collection)
or withFaceMatches(java.util.Collection)
if you want to
override the existing values.
faceMatches
- Information about the faces in the input collection that match the face of a person in the video.public PersonMatch withFaceMatches(Collection<FaceMatch> faceMatches)
Information about the faces in the input collection that match the face of a person in the video.
faceMatches
- Information about the faces in the input collection that match the face of a person in the video.public String toString()
toString
in class Object
Object.toString()
public PersonMatch clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.