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 Summary
Constructors Constructor Description Builder()Instantiates a new builder.Builder(String feedbackType, Location location, String text, OriginalLabelsIn originalLabels, UpdatedLabelsIn updatedLabels)Instantiates a new builder with required properties. -
Method Summary
Modifier and Type Method Description FeedbackDataInputbuild()Builds a FeedbackDataInput.FeedbackDataInput.Builderdocument(ShortDoc document)Set the document.FeedbackDataInput.BuilderfeedbackType(String feedbackType)Set the feedbackType.FeedbackDataInput.Builderlocation(Location location)Set the location.FeedbackDataInput.BuildermodelId(String modelId)Set the modelId.FeedbackDataInput.BuildermodelVersion(String modelVersion)Set the modelVersion.FeedbackDataInput.BuilderoriginalLabels(OriginalLabelsIn originalLabels)Set the originalLabels.FeedbackDataInput.Buildertext(String text)Set the text.FeedbackDataInput.BuilderupdatedLabels(UpdatedLabelsIn updatedLabels)Set the updatedLabels.
-
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 feedbackTypelocation- the locationtext- the textoriginalLabels- the originalLabelsupdatedLabels- the updatedLabels
-
-
Method Details
-
build
Builds a FeedbackDataInput.- Returns:
- the new FeedbackDataInput instance
-
feedbackType
Set the feedbackType.- Parameters:
feedbackType- the feedbackType- Returns:
- the FeedbackDataInput builder
-
document
Set the document.- Parameters:
document- the document- Returns:
- the FeedbackDataInput builder
-
modelId
Set the modelId.- Parameters:
modelId- the modelId- Returns:
- the FeedbackDataInput builder
-
modelVersion
Set the modelVersion.- Parameters:
modelVersion- the modelVersion- Returns:
- the FeedbackDataInput builder
-
location
Set the location.- Parameters:
location- the location- Returns:
- the FeedbackDataInput builder
-
text
Set the text.- Parameters:
text- the text- Returns:
- the FeedbackDataInput builder
-
originalLabels
Set the originalLabels.- Parameters:
originalLabels- the originalLabels- Returns:
- the FeedbackDataInput builder
-
updatedLabels
Set the updatedLabels.- Parameters:
updatedLabels- the updatedLabels- Returns:
- the FeedbackDataInput builder
-