Class ClassifyOptions.Builder

java.lang.Object
com.ibm.watson.visual_recognition.v3.model.ClassifyOptions.Builder
Enclosing class:
ClassifyOptions

public static class ClassifyOptions.Builder
extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
  • Method Details

    • build

      public ClassifyOptions build()
      Builds a ClassifyOptions.
      Returns:
      the new ClassifyOptions instance
    • addOwner

      public ClassifyOptions.Builder addOwner​(String owner)
      Adds an owner to owners.
      Parameters:
      owner - the new owner
      Returns:
      the ClassifyOptions builder
    • addClassifierId

      public ClassifyOptions.Builder addClassifierId​(String classifierId)
      Adds an classifierId to classifierIds.
      Parameters:
      classifierId - the new classifierId
      Returns:
      the ClassifyOptions builder
    • imagesFile

      public ClassifyOptions.Builder imagesFile​(InputStream imagesFile)
      Set the imagesFile.
      Parameters:
      imagesFile - the imagesFile
      Returns:
      the ClassifyOptions builder
    • imagesFilename

      public ClassifyOptions.Builder imagesFilename​(String imagesFilename)
      Set the imagesFilename.
      Parameters:
      imagesFilename - the imagesFilename
      Returns:
      the ClassifyOptions builder
    • imagesFileContentType

      public ClassifyOptions.Builder imagesFileContentType​(String imagesFileContentType)
      Set the imagesFileContentType.
      Parameters:
      imagesFileContentType - the imagesFileContentType
      Returns:
      the ClassifyOptions builder
    • url

      public ClassifyOptions.Builder url​(String url)
      Set the url.
      Parameters:
      url - the url
      Returns:
      the ClassifyOptions builder
    • threshold

      public ClassifyOptions.Builder threshold​(Float threshold)
      Set the threshold.
      Parameters:
      threshold - the threshold
      Returns:
      the ClassifyOptions builder
    • owners

      public ClassifyOptions.Builder owners​(List<String> owners)
      Set the owners. Existing owners will be replaced.
      Parameters:
      owners - the owners
      Returns:
      the ClassifyOptions builder
    • classifierIds

      public ClassifyOptions.Builder classifierIds​(List<String> classifierIds)
      Set the classifierIds. Existing classifierIds will be replaced.
      Parameters:
      classifierIds - the classifierIds
      Returns:
      the ClassifyOptions builder
    • acceptLanguage

      public ClassifyOptions.Builder acceptLanguage​(String acceptLanguage)
      Set the acceptLanguage.
      Parameters:
      acceptLanguage - the acceptLanguage
      Returns:
      the ClassifyOptions builder
    • imagesFile

      public ClassifyOptions.Builder imagesFile​(File imagesFile) throws FileNotFoundException
      Set the imagesFile.
      Parameters:
      imagesFile - the imagesFile
      Returns:
      the ClassifyOptions builder
      Throws:
      FileNotFoundException - if the file could not be found