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 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

      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

      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 the ComparedFace.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).

      Parameters:
      face - a consumer that will call methods on ComparedFace.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 the KnownGender.Builder avoiding the need to create one manually via KnownGender.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to knownGender(KnownGender).

      Parameters:
      knownGender - a consumer that will call methods on KnownGender.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: