Interface Instance.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Instance.Builder,Instance>, SdkBuilder<Instance.Builder,Instance>, SdkPojo
Enclosing class:
Instance

public static interface Instance.Builder extends SdkPojo, CopyableBuilder<Instance.Builder,Instance>
  • Method Details

    • boundingBox

      Instance.Builder boundingBox(BoundingBox boundingBox)

      The position of the label instance on the image.

      Parameters:
      boundingBox - The position of the label instance on the image.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • boundingBox

      default Instance.Builder boundingBox(Consumer<BoundingBox.Builder> boundingBox)

      The position of the label instance on the image.

      This is a convenience method that creates an instance of the BoundingBox.Builder avoiding the need to create one manually via BoundingBox.builder().

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

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

      Instance.Builder confidence(Float confidence)

      The confidence that Amazon Rekognition has in the accuracy of the bounding box.

      Parameters:
      confidence - The confidence that Amazon Rekognition has in the accuracy of the bounding box.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dominantColors

      Instance.Builder dominantColors(Collection<DominantColor> dominantColors)

      The dominant colors found in an individual instance of a label.

      Parameters:
      dominantColors - The dominant colors found in an individual instance of a label.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dominantColors

      Instance.Builder dominantColors(DominantColor... dominantColors)

      The dominant colors found in an individual instance of a label.

      Parameters:
      dominantColors - The dominant colors found in an individual instance of a label.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dominantColors

      Instance.Builder dominantColors(Consumer<DominantColor.Builder>... dominantColors)

      The dominant colors found in an individual instance of a label.

      This is a convenience method that creates an instance of the DominantColor.Builder avoiding the need to create one manually via DominantColor.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to dominantColors(List<DominantColor>).

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