Class AnalyzeOptions.Builder

java.lang.Object
com.ibm.watson.visual_recognition.v4.model.AnalyzeOptions.Builder
Enclosing class:
AnalyzeOptions

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(List<String> collectionIds, List<String> features)
      Instantiates a new builder with required properties.
      Parameters:
      collectionIds - the collectionIds
      features - the features
  • Method Details

    • build

      public AnalyzeOptions build()
      Builds a AnalyzeOptions.
      Returns:
      the new AnalyzeOptions instance
    • addCollectionIds

      public AnalyzeOptions.Builder addCollectionIds​(String collectionIds)
      Adds an collectionIds to collectionIds.
      Parameters:
      collectionIds - the new collectionIds
      Returns:
      the AnalyzeOptions builder
    • addFeatures

      public AnalyzeOptions.Builder addFeatures​(String features)
      Adds an features to features.
      Parameters:
      features - the new features
      Returns:
      the AnalyzeOptions builder
    • addImagesFile

      public AnalyzeOptions.Builder addImagesFile​(com.ibm.cloud.sdk.core.service.model.FileWithMetadata imagesFile)
      Adds an imagesFile to imagesFile.
      Parameters:
      imagesFile - the new imagesFile
      Returns:
      the AnalyzeOptions builder
    • addImageUrl

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

      public AnalyzeOptions.Builder collectionIds​(List<String> collectionIds)
      Set the collectionIds. Existing collectionIds will be replaced.
      Parameters:
      collectionIds - the collectionIds
      Returns:
      the AnalyzeOptions builder
    • features

      public AnalyzeOptions.Builder features​(List<String> features)
      Set the features. Existing features will be replaced.
      Parameters:
      features - the features
      Returns:
      the AnalyzeOptions builder
    • imagesFile

      public AnalyzeOptions.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 AnalyzeOptions builder
    • imageUrl

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

      public AnalyzeOptions.Builder threshold​(Float threshold)
      Set the threshold.
      Parameters:
      threshold - the threshold
      Returns:
      the AnalyzeOptions builder