public static class FeedbackDataInput.Builder extends Object
| Constructor and Description | 
|---|
Builder()
Instantiates a new builder. 
 | 
Builder(String feedbackType,
       Location location,
       String text,
       OriginalLabelsIn originalLabels,
       UpdatedLabelsIn updatedLabels)
Instantiates a new builder with required properties. 
 | 
| Modifier and Type | Method and 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. 
 | 
public Builder()
public Builder(String feedbackType, Location location, String text, OriginalLabelsIn originalLabels, UpdatedLabelsIn updatedLabels)
feedbackType - the feedbackTypelocation - the locationtext - the textoriginalLabels - the originalLabelsupdatedLabels - the updatedLabelspublic FeedbackDataInput build()
public FeedbackDataInput.Builder feedbackType(String feedbackType)
feedbackType - the feedbackTypepublic FeedbackDataInput.Builder document(ShortDoc document)
document - the documentpublic FeedbackDataInput.Builder modelId(String modelId)
modelId - the modelIdpublic FeedbackDataInput.Builder modelVersion(String modelVersion)
modelVersion - the modelVersionpublic FeedbackDataInput.Builder location(Location location)
location - the locationpublic FeedbackDataInput.Builder text(String text)
text - the textpublic FeedbackDataInput.Builder originalLabels(OriginalLabelsIn originalLabels)
originalLabels - the originalLabelspublic FeedbackDataInput.Builder updatedLabels(UpdatedLabelsIn updatedLabels)
updatedLabels - the updatedLabelsCopyright © 2021 IBM Cloud. All rights reserved.