public class Celebrity
extends java.lang.Object
implements java.io.Serializable
Provides information about a celebrity recognized by the RecognizeCelebrities operation.
Constructor and Description |
---|
Celebrity() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
ComparedFace |
getFace()
Provides information about the celebrity's face, such as its location on
the image.
|
java.lang.String |
getId()
A unique identifier for the celebrity.
|
java.lang.Float |
getMatchConfidence()
The confidence, in percentage, that Amazon Rekognition has that the
recognized face is the celebrity.
|
java.lang.String |
getName()
The name of the celebrity.
|
java.util.List<java.lang.String> |
getUrls()
An array of URLs pointing to additional information about the celebrity.
|
int |
hashCode() |
void |
setFace(ComparedFace face)
Provides information about the celebrity's face, such as its location on
the image.
|
void |
setId(java.lang.String id)
A unique identifier for the celebrity.
|
void |
setMatchConfidence(java.lang.Float matchConfidence)
The confidence, in percentage, that Amazon Rekognition has that the
recognized face is the celebrity.
|
void |
setName(java.lang.String name)
The name of the celebrity.
|
void |
setUrls(java.util.Collection<java.lang.String> urls)
An array of URLs pointing to additional information about the celebrity.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Celebrity |
withFace(ComparedFace face)
Provides information about the celebrity's face, such as its location on
the image.
|
Celebrity |
withId(java.lang.String id)
A unique identifier for the celebrity.
|
Celebrity |
withMatchConfidence(java.lang.Float matchConfidence)
The confidence, in percentage, that Amazon Rekognition has that the
recognized face is the celebrity.
|
Celebrity |
withName(java.lang.String name)
The name of the celebrity.
|
Celebrity |
withUrls(java.util.Collection<java.lang.String> urls)
An array of URLs pointing to additional information about the celebrity.
|
Celebrity |
withUrls(java.lang.String... urls)
An array of URLs pointing to additional information about the celebrity.
|
public java.util.List<java.lang.String> getUrls()
An array of URLs pointing to additional information about the celebrity. If there is no additional information about the celebrity, this list is empty.
An array of URLs pointing to additional information about the celebrity. If there is no additional information about the celebrity, this list is empty.
public void setUrls(java.util.Collection<java.lang.String> urls)
An array of URLs pointing to additional information about the celebrity. If there is no additional information about the celebrity, this list is empty.
urls
- An array of URLs pointing to additional information about the celebrity. If there is no additional information about the celebrity, this list is empty.
public Celebrity withUrls(java.lang.String... urls)
An array of URLs pointing to additional information about the celebrity. If there is no additional information about the celebrity, this list is empty.
Returns a reference to this object so that method calls can be chained together.
urls
- An array of URLs pointing to additional information about the celebrity. If there is no additional information about the celebrity, this list is empty.
public Celebrity withUrls(java.util.Collection<java.lang.String> urls)
An array of URLs pointing to additional information about the celebrity. If there is no additional information about the celebrity, this list is empty.
Returns a reference to this object so that method calls can be chained together.
urls
- An array of URLs pointing to additional information about the celebrity. If there is no additional information about the celebrity, this list is empty.
public java.lang.String getName()
The name of the celebrity.
The name of the celebrity.
public void setName(java.lang.String name)
The name of the celebrity.
name
- The name of the celebrity.
public Celebrity withName(java.lang.String name)
The name of the celebrity.
Returns a reference to this object so that method calls can be chained together.
name
- The name of the celebrity.
public java.lang.String getId()
A unique identifier for the celebrity.
Constraints:
Pattern: [0-9A-Za-z]*
A unique identifier for the celebrity.
public void setId(java.lang.String id)
A unique identifier for the celebrity.
Constraints:
Pattern: [0-9A-Za-z]*
id
- A unique identifier for the celebrity.
public Celebrity withId(java.lang.String id)
A unique identifier for the celebrity.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [0-9A-Za-z]*
id
- A unique identifier for the celebrity.
public ComparedFace getFace()
Provides information about the celebrity's face, such as its location on the image.
Provides information about the celebrity's face, such as its location on the image.
public void setFace(ComparedFace face)
Provides information about the celebrity's face, such as its location on the image.
face
- Provides information about the celebrity's face, such as its location on the image.
public Celebrity withFace(ComparedFace face)
Provides information about the celebrity's face, such as its location on the image.
Returns a reference to this object so that method calls can be chained together.
face
- Provides information about the celebrity's face, such as its location on the image.
public java.lang.Float getMatchConfidence()
The confidence, in percentage, that Amazon Rekognition has that the recognized face is the celebrity.
Constraints:
Length: 0 - 100
The confidence, in percentage, that Amazon Rekognition has that the recognized face is the celebrity.
public void setMatchConfidence(java.lang.Float matchConfidence)
The confidence, in percentage, that Amazon Rekognition has that the recognized face is the celebrity.
Constraints:
Length: 0 - 100
matchConfidence
- The confidence, in percentage, that Amazon Rekognition has that the recognized face is the celebrity.
public Celebrity withMatchConfidence(java.lang.Float matchConfidence)
The confidence, in percentage, that Amazon Rekognition has that the recognized face is the celebrity.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 100
matchConfidence
- The confidence, in percentage, that Amazon Rekognition has that the recognized face is the celebrity.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.