public static interface Celebrity.Builder extends CopyableBuilder<Celebrity.Builder,Celebrity>
Modifier and Type | Method and Description |
---|---|
Celebrity.Builder |
face(ComparedFace face)
Provides information about the celebrity's face, such as its location on the image.
|
default Celebrity.Builder |
face(Consumer<ComparedFace.Builder> face)
Provides information about the celebrity's face, such as its location on the image.
|
Celebrity.Builder |
id(String id)
A unique identifier for the celebrity.
|
Celebrity.Builder |
matchConfidence(Float matchConfidence)
The confidence, in percentage, that Rekognition has that the recognized face is the celebrity.
|
Celebrity.Builder |
name(String name)
The name of the celebrity.
|
Celebrity.Builder |
urls(Collection<String> urls)
An array of URLs pointing to additional information about the celebrity.
|
Celebrity.Builder |
urls(String... urls)
An array of URLs pointing to additional information about the celebrity.
|
copy
applyMutation, build
Celebrity.Builder urls(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.Celebrity.Builder urls(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.Celebrity.Builder name(String name)
The name of the celebrity.
name
- The name of the celebrity.Celebrity.Builder id(String id)
A unique identifier for the celebrity.
id
- A unique identifier for the celebrity.Celebrity.Builder face(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.default Celebrity.Builder face(Consumer<ComparedFace.Builder> face)
Provides information about the celebrity's face, such as its location on the image.
This is a convenience that creates an instance of theComparedFace.Builder
avoiding the need to
create one manually via ComparedFace.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to face(ComparedFace)
.face
- a consumer that will call methods on ComparedFace.Builder
face(ComparedFace)
Celebrity.Builder matchConfidence(Float matchConfidence)
The confidence, in percentage, that Rekognition has that the recognized face is the celebrity.
matchConfidence
- The confidence, in percentage, that Rekognition has that the recognized face is the celebrity.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.