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 FeedbackDataInput
build()
Builds a FeedbackDataInput.FeedbackDataInput.Builder
document(ShortDoc document)
Set the document.FeedbackDataInput.Builder
feedbackType(String feedbackType)
Set the feedbackType.FeedbackDataInput.Builder
location(Location location)
Set the location.FeedbackDataInput.Builder
modelId(String modelId)
Set the modelId.FeedbackDataInput.Builder
modelVersion(String modelVersion)
Set the modelVersion.FeedbackDataInput.Builder
originalLabels(OriginalLabelsIn originalLabels)
Set the originalLabels.FeedbackDataInput.Builder
text(String text)
Set the text.FeedbackDataInput.Builder
updatedLabels(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
-