Interface AnalyzeIDDetections.Builder

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

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

    • text

      Text of either the normalized field or value associated with it.

      Parameters:
      text - Text of either the normalized field or value associated with it.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • normalizedValue

      AnalyzeIDDetections.Builder normalizedValue(NormalizedValue normalizedValue)

      Only returned for dates, returns the type of value detected and the date written in a more machine readable way.

      Parameters:
      normalizedValue - Only returned for dates, returns the type of value detected and the date written in a more machine readable way.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • normalizedValue

      default AnalyzeIDDetections.Builder normalizedValue(Consumer<NormalizedValue.Builder> normalizedValue)

      Only returned for dates, returns the type of value detected and the date written in a more machine readable way.

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

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

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

      AnalyzeIDDetections.Builder confidence(Float confidence)

      The confidence score of the detected text.

      Parameters:
      confidence - The confidence score of the detected text.
      Returns:
      Returns a reference to this object so that method calls can be chained together.