Class AddImageTrainingDataOptions.Builder
java.lang.Object
com.ibm.watson.visual_recognition.v4.model.AddImageTrainingDataOptions.Builder
- Enclosing class:
- AddImageTrainingDataOptions
public static class AddImageTrainingDataOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description AddImageTrainingDataOptions.Builder
addObjects(TrainingDataObject objects)
Adds an objects to objects.AddImageTrainingDataOptions
build()
Builds a AddImageTrainingDataOptions.AddImageTrainingDataOptions.Builder
collectionId(String collectionId)
Set the collectionId.AddImageTrainingDataOptions.Builder
imageId(String imageId)
Set the imageId.AddImageTrainingDataOptions.Builder
objects(List<TrainingDataObject> objects)
Set the objects.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
collectionId
- the collectionIdimageId
- the imageId
-
-
Method Details
-
build
Builds a AddImageTrainingDataOptions.- Returns:
- the new AddImageTrainingDataOptions instance
-
addObjects
Adds an objects to objects.- Parameters:
objects
- the new objects- Returns:
- the AddImageTrainingDataOptions builder
-
collectionId
Set the collectionId.- Parameters:
collectionId
- the collectionId- Returns:
- the AddImageTrainingDataOptions builder
-
imageId
Set the imageId.- Parameters:
imageId
- the imageId- Returns:
- the AddImageTrainingDataOptions builder
-
objects
Set the objects. Existing objects will be replaced.- Parameters:
objects
- the objects- Returns:
- the AddImageTrainingDataOptions builder
-