Class FeedbackDataInput.Builder

java.lang.Object
com.ibm.watson.compare_comply.v1.model.FeedbackDataInput.Builder
Enclosing class:
FeedbackDataInput

public static class FeedbackDataInput.Builder
extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String feedbackType, Location location, String text, OriginalLabelsIn originalLabels, UpdatedLabelsIn updatedLabels)
      Instantiates a new builder with required properties.
      Parameters:
      feedbackType - the feedbackType
      location - the location
      text - the text
      originalLabels - the originalLabels
      updatedLabels - the updatedLabels
  • Method Details

    • build

      public FeedbackDataInput build()
      Builds a FeedbackDataInput.
      Returns:
      the new FeedbackDataInput instance
    • feedbackType

      public FeedbackDataInput.Builder feedbackType​(String feedbackType)
      Set the feedbackType.
      Parameters:
      feedbackType - the feedbackType
      Returns:
      the FeedbackDataInput builder
    • document

      public FeedbackDataInput.Builder document​(ShortDoc document)
      Set the document.
      Parameters:
      document - the document
      Returns:
      the FeedbackDataInput builder
    • modelId

      public FeedbackDataInput.Builder modelId​(String modelId)
      Set the modelId.
      Parameters:
      modelId - the modelId
      Returns:
      the FeedbackDataInput builder
    • modelVersion

      public FeedbackDataInput.Builder modelVersion​(String modelVersion)
      Set the modelVersion.
      Parameters:
      modelVersion - the modelVersion
      Returns:
      the FeedbackDataInput builder
    • location

      public FeedbackDataInput.Builder location​(Location location)
      Set the location.
      Parameters:
      location - the location
      Returns:
      the FeedbackDataInput builder
    • text

      public FeedbackDataInput.Builder text​(String text)
      Set the text.
      Parameters:
      text - the text
      Returns:
      the FeedbackDataInput builder
    • originalLabels

      public FeedbackDataInput.Builder originalLabels​(OriginalLabelsIn originalLabels)
      Set the originalLabels.
      Parameters:
      originalLabels - the originalLabels
      Returns:
      the FeedbackDataInput builder
    • updatedLabels

      public FeedbackDataInput.Builder updatedLabels​(UpdatedLabelsIn updatedLabels)
      Set the updatedLabels.
      Parameters:
      updatedLabels - the updatedLabels
      Returns:
      the FeedbackDataInput builder