Interface Celebrity.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Celebrity.Builder,Celebrity>,SdkBuilder<Celebrity.Builder,Celebrity>,SdkPojo
- Enclosing class:
- Celebrity
public static interface Celebrity.Builder extends SdkPojo, CopyableBuilder<Celebrity.Builder,Celebrity>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Celebrity.Builderface(Consumer<ComparedFace.Builder> face)Provides information about the celebrity's face, such as its location on the image.Celebrity.Builderface(ComparedFace face)Provides information about the celebrity's face, such as its location on the image.Celebrity.Builderid(String id)A unique identifier for the celebrity.default Celebrity.BuilderknownGender(Consumer<KnownGender.Builder> knownGender)Sets the value of the KnownGender property for this object.Celebrity.BuilderknownGender(KnownGender knownGender)Sets the value of the KnownGender property for this object.Celebrity.BuildermatchConfidence(Float matchConfidence)The confidence, in percentage, that Amazon Rekognition has that the recognized face is the celebrity.Celebrity.Buildername(String name)The name of the celebrity.Celebrity.Builderurls(String... urls)An array of URLs pointing to additional information about the celebrity.Celebrity.Builderurls(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 Detail
-
urls
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.
- 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
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.
- 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
Celebrity.Builder name(String 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
Celebrity.Builder id(String 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
Celebrity.Builder face(ComparedFace 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
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 method that creates an instance of theComparedFace.Builderavoiding the need to create one manually viaComparedFace.builder().When the
Consumercompletes,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:
face(ComparedFace)
-
matchConfidence
Celebrity.Builder matchConfidence(Float 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
Celebrity.Builder knownGender(KnownGender 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
default Celebrity.Builder knownGender(Consumer<KnownGender.Builder> knownGender)
Sets the value of the KnownGender property for this object. This is a convenience method that creates an instance of theKnownGender.Builderavoiding the need to create one manually viaKnownGender.builder().When the
Consumercompletes,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:
knownGender(KnownGender)
-
-