Interface Celebrity.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Celebrity.Builder,
,Celebrity> SdkBuilder<Celebrity.Builder,
,Celebrity> SdkPojo
- Enclosing class:
Celebrity
-
Method Summary
Modifier and TypeMethodDescriptiondefault Celebrity.Builder
face
(Consumer<ComparedFace.Builder> face) Provides information about the celebrity's face, such as its location on the image.face
(ComparedFace face) Provides information about the celebrity's face, such as its location on the image.A unique identifier for the celebrity.default Celebrity.Builder
knownGender
(Consumer<KnownGender.Builder> knownGender) Sets the value of the KnownGender property for this object.knownGender
(KnownGender knownGender) Sets the value of the KnownGender property for this object.matchConfidence
(Float matchConfidence) The confidence, in percentage, that Amazon Rekognition has that the recognized face is the celebrity.The name of the celebrity.An array of URLs pointing to additional information about the celebrity.urls
(Collection<String> urls) An array of URLs pointing to additional information about the celebrity.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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.
- Parameters:
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:
- 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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the celebrity.
- Parameters:
name
- The name of the celebrity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
A unique identifier for the celebrity.
- Parameters:
id
- A unique identifier for the celebrity.- Returns:
- 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.
- Parameters:
face
- Provides information about the celebrity's face, such as its location on the image.- Returns:
- 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.
This is a convenience method that creates an instance of theComparedFace.Builder
avoiding the need to create one manually viaComparedFace.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toface(ComparedFace)
.- Parameters:
face
- a consumer that will call methods onComparedFace.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
matchConfidence
The confidence, in percentage, that Amazon Rekognition has that the recognized face is the celebrity.
- Parameters:
matchConfidence
- The confidence, in percentage, that Amazon Rekognition has that the recognized face is the celebrity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knownGender
Sets the value of the KnownGender property for this object.- Parameters:
knownGender
- The new value for the KnownGender property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knownGender
Sets the value of the KnownGender property for this object. This is a convenience method that creates an instance of theKnownGender.Builder
avoiding the need to create one manually viaKnownGender.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toknownGender(KnownGender)
.- Parameters:
knownGender
- a consumer that will call methods onKnownGender.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-