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 Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String collectionId)
      Instantiates a new builder with required properties.
      Parameters:
      collectionId - the collectionId
  • Method Details

    • build

      public AddImagesOptions 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

      public AddImagesOptions.Builder addImageUrl​(String imageUrl)
      Adds an imageUrl to imageUrl.
      Parameters:
      imageUrl - the new imageUrl
      Returns:
      the AddImagesOptions builder
    • collectionId

      public AddImagesOptions.Builder collectionId​(String 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

      public AddImagesOptions.Builder imageUrl​(List<String> imageUrl)
      Set the imageUrl. Existing imageUrl will be replaced.
      Parameters:
      imageUrl - the imageUrl
      Returns:
      the AddImagesOptions builder
    • trainingData

      public AddImagesOptions.Builder trainingData​(String trainingData)
      Set the trainingData.
      Parameters:
      trainingData - the trainingData
      Returns:
      the AddImagesOptions builder