public class Celebrity extends Object implements Serializable
Provides information about a celebrity recognized by the operation.
Constructor and Description |
---|
Celebrity() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
ComparedFace |
getFace()
Provides information about the celebrity's face, such as its location on
the image.
|
String |
getId()
A unique identifier for the celebrity.
|
Float |
getMatchConfidence()
The confidence, in percentage, that Rekognition has that the recognized
face is the celebrity.
|
String |
getName()
The name of the celebrity.
|
List<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(String id)
A unique identifier for the celebrity.
|
void |
setMatchConfidence(Float matchConfidence)
The confidence, in percentage, that Rekognition has that the recognized
face is the celebrity.
|
void |
setName(String name)
The name of the celebrity.
|
void |
setUrls(Collection<String> urls)
An array of URLs pointing to additional information about the celebrity.
|
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(String id)
A unique identifier for the celebrity.
|
Celebrity |
withMatchConfidence(Float matchConfidence)
The confidence, in percentage, that Rekognition has that the recognized
face is the celebrity.
|
Celebrity |
withName(String name)
The name of the celebrity.
|
Celebrity |
withUrls(Collection<String> urls)
An array of URLs pointing to additional information about the celebrity.
|
Celebrity |
withUrls(String... urls)
An array of URLs pointing to additional information about the celebrity.
|
public List<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(Collection<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(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(Collection<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 String getName()
The name of the celebrity.
The name of the celebrity.
public void setName(String name)
The name of the celebrity.
name
- The name of the celebrity.
public Celebrity withName(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 String getId()
A unique identifier for the celebrity.
Constraints:
Pattern: [0-9A-Za-z]*
A unique identifier for the celebrity.
public void setId(String id)
A unique identifier for the celebrity.
Constraints:
Pattern: [0-9A-Za-z]*
id
- A unique identifier for the celebrity.
public Celebrity withId(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 Float getMatchConfidence()
The confidence, in percentage, that Rekognition has that the recognized face is the celebrity.
Constraints:
Length: 0 - 100
The confidence, in percentage, that Rekognition has that the recognized face is the celebrity.
public void setMatchConfidence(Float matchConfidence)
The confidence, in percentage, that Rekognition has that the recognized face is the celebrity.
Constraints:
Length: 0 - 100
matchConfidence
- The confidence, in percentage, that Rekognition has that the recognized face is the celebrity.
public Celebrity withMatchConfidence(Float matchConfidence)
The confidence, in percentage, that 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 Rekognition has that the recognized face is the celebrity.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.