Class AddImagesOptions.Builder
java.lang.Object
com.ibm.watson.visual_recognition.v4.model.AddImagesOptions.Builder
- Enclosing class:
- AddImagesOptions
public static class AddImagesOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description AddImagesOptions.Builder
addImagesFile(com.ibm.cloud.sdk.core.service.model.FileWithMetadata imagesFile)
Adds an imagesFile to imagesFile.AddImagesOptions.Builder
addImageUrl(String imageUrl)
Adds an imageUrl to imageUrl.AddImagesOptions
build()
Builds a AddImagesOptions.AddImagesOptions.Builder
collectionId(String collectionId)
Set the collectionId.AddImagesOptions.Builder
imagesFile(List<com.ibm.cloud.sdk.core.service.model.FileWithMetadata> imagesFile)
Set the imagesFile.AddImagesOptions.Builder
imageUrl(List<String> imageUrl)
Set the imageUrl.AddImagesOptions.Builder
trainingData(String trainingData)
Set the trainingData.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
collectionId
- the collectionId
-
-
Method Details
-
build
Builds a AddImagesOptions.- Returns:
- the new AddImagesOptions instance
-
addImagesFile
public AddImagesOptions.Builder addImagesFile(com.ibm.cloud.sdk.core.service.model.FileWithMetadata imagesFile)Adds an imagesFile to imagesFile.- Parameters:
imagesFile
- the new imagesFile- Returns:
- the AddImagesOptions builder
-
addImageUrl
Adds an imageUrl to imageUrl.- Parameters:
imageUrl
- the new imageUrl- Returns:
- the AddImagesOptions builder
-
collectionId
Set the collectionId.- Parameters:
collectionId
- the collectionId- Returns:
- the AddImagesOptions builder
-
imagesFile
public AddImagesOptions.Builder imagesFile(List<com.ibm.cloud.sdk.core.service.model.FileWithMetadata> imagesFile)Set the imagesFile. Existing imagesFile will be replaced.- Parameters:
imagesFile
- the imagesFile- Returns:
- the AddImagesOptions builder
-
imageUrl
Set the imageUrl. Existing imageUrl will be replaced.- Parameters:
imageUrl
- the imageUrl- Returns:
- the AddImagesOptions builder
-
trainingData
Set the trainingData.- Parameters:
trainingData
- the trainingData- Returns:
- the AddImagesOptions builder
-