public class CelebrityDetail
extends java.lang.Object
implements java.io.Serializable
Information about a recognized celebrity.
Constructor and Description |
---|
CelebrityDetail() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
BoundingBox |
getBoundingBox()
Bounding box around the body of a celebrity.
|
java.lang.Float |
getConfidence()
The confidence, in percentage, that Amazon Rekognition has that the
recognized face is the celebrity.
|
FaceDetail |
getFace()
Face details for the recognized celebrity.
|
java.lang.String |
getId()
The unique identifier for 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 celebrity information.
|
int |
hashCode() |
void |
setBoundingBox(BoundingBox boundingBox)
Bounding box around the body of a celebrity.
|
void |
setConfidence(java.lang.Float confidence)
The confidence, in percentage, that Amazon Rekognition has that the
recognized face is the celebrity.
|
void |
setFace(FaceDetail face)
Face details for the recognized celebrity.
|
void |
setId(java.lang.String id)
The unique identifier for 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 celebrity information.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CelebrityDetail |
withBoundingBox(BoundingBox boundingBox)
Bounding box around the body of a celebrity.
|
CelebrityDetail |
withConfidence(java.lang.Float confidence)
The confidence, in percentage, that Amazon Rekognition has that the
recognized face is the celebrity.
|
CelebrityDetail |
withFace(FaceDetail face)
Face details for the recognized celebrity.
|
CelebrityDetail |
withId(java.lang.String id)
The unique identifier for the celebrity.
|
CelebrityDetail |
withName(java.lang.String name)
The name of the celebrity.
|
CelebrityDetail |
withUrls(java.util.Collection<java.lang.String> urls)
An array of URLs pointing to additional celebrity information.
|
CelebrityDetail |
withUrls(java.lang.String... urls)
An array of URLs pointing to additional celebrity information.
|
public java.util.List<java.lang.String> getUrls()
An array of URLs pointing to additional celebrity information.
An array of URLs pointing to additional celebrity information.
public void setUrls(java.util.Collection<java.lang.String> urls)
An array of URLs pointing to additional celebrity information.
urls
- An array of URLs pointing to additional celebrity information.
public CelebrityDetail withUrls(java.lang.String... urls)
An array of URLs pointing to additional celebrity information.
Returns a reference to this object so that method calls can be chained together.
urls
- An array of URLs pointing to additional celebrity information.
public CelebrityDetail withUrls(java.util.Collection<java.lang.String> urls)
An array of URLs pointing to additional celebrity information.
Returns a reference to this object so that method calls can be chained together.
urls
- An array of URLs pointing to additional celebrity information.
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 CelebrityDetail 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()
The unique identifier for the celebrity.
Constraints:
Pattern: [0-9A-Za-z]*
The unique identifier for the celebrity.
public void setId(java.lang.String id)
The unique identifier for the celebrity.
Constraints:
Pattern: [0-9A-Za-z]*
id
- The unique identifier for the celebrity.
public CelebrityDetail withId(java.lang.String id)
The 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
- The unique identifier for the celebrity.
public java.lang.Float getConfidence()
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 setConfidence(java.lang.Float confidence)
The confidence, in percentage, that Amazon Rekognition has that the recognized face is the celebrity.
Constraints:
Length: 0 - 100
confidence
- The confidence, in percentage, that Amazon Rekognition has that the recognized face is the celebrity.
public CelebrityDetail withConfidence(java.lang.Float confidence)
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
confidence
- The confidence, in percentage, that Amazon Rekognition has that the recognized face is the celebrity.
public BoundingBox getBoundingBox()
Bounding box around the body of a celebrity.
Bounding box around the body of a celebrity.
public void setBoundingBox(BoundingBox boundingBox)
Bounding box around the body of a celebrity.
boundingBox
- Bounding box around the body of a celebrity.
public CelebrityDetail withBoundingBox(BoundingBox boundingBox)
Bounding box around the body of a celebrity.
Returns a reference to this object so that method calls can be chained together.
boundingBox
- Bounding box around the body of a celebrity.
public FaceDetail getFace()
Face details for the recognized celebrity.
Face details for the recognized celebrity.
public void setFace(FaceDetail face)
Face details for the recognized celebrity.
face
- Face details for the recognized celebrity.
public CelebrityDetail withFace(FaceDetail face)
Face details for the recognized celebrity.
Returns a reference to this object so that method calls can be chained together.
face
- Face details for the recognized 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.