Interface Correction.Builder

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

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

    • beginOffset

      Correction.Builder beginOffset(Integer beginOffset)

      The zero-based location in the response string or text where the corrected word starts.

      Parameters:
      beginOffset - The zero-based location in the response string or text where the corrected word starts.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endOffset

      Correction.Builder endOffset(Integer endOffset)

      The zero-based location in the response string or text where the corrected word ends.

      Parameters:
      endOffset - The zero-based location in the response string or text where the corrected word ends.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • term

      The string or text of a misspelled word in a query.

      Parameters:
      term - The string or text of a misspelled word in a query.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • correctedTerm

      Correction.Builder correctedTerm(String correctedTerm)

      The string or text of a corrected misspelled word in a query.

      Parameters:
      correctedTerm - The string or text of a corrected misspelled word in a query.
      Returns:
      Returns a reference to this object so that method calls can be chained together.