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 Summary
-
Method Summary
Modifier and Type Method Description AnalyzeOptions.Builder
addCollectionIds(String collectionIds)
Adds an collectionIds to collectionIds.AnalyzeOptions.Builder
addFeatures(String features)
Adds an features to features.AnalyzeOptions.Builder
addImagesFile(com.ibm.cloud.sdk.core.service.model.FileWithMetadata imagesFile)
Adds an imagesFile to imagesFile.AnalyzeOptions.Builder
addImageUrl(String imageUrl)
Adds an imageUrl to imageUrl.AnalyzeOptions
build()
Builds a AnalyzeOptions.AnalyzeOptions.Builder
collectionIds(List<String> collectionIds)
Set the collectionIds.AnalyzeOptions.Builder
features(List<String> features)
Set the features.AnalyzeOptions.Builder
imagesFile(List<com.ibm.cloud.sdk.core.service.model.FileWithMetadata> imagesFile)
Set the imagesFile.AnalyzeOptions.Builder
imageUrl(List<String> imageUrl)
Set the imageUrl.AnalyzeOptions.Builder
threshold(Float threshold)
Set the threshold.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
collectionIds
- the collectionIdsfeatures
- the features
-
-
Method Details
-
build
Builds a AnalyzeOptions.- Returns:
- the new AnalyzeOptions instance
-
addCollectionIds
Adds an collectionIds to collectionIds.- Parameters:
collectionIds
- the new collectionIds- Returns:
- the AnalyzeOptions builder
-
addFeatures
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
Adds an imageUrl to imageUrl.- Parameters:
imageUrl
- the new imageUrl- Returns:
- the AnalyzeOptions builder
-
collectionIds
Set the collectionIds. Existing collectionIds will be replaced.- Parameters:
collectionIds
- the collectionIds- Returns:
- the AnalyzeOptions builder
-
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
Set the imageUrl. Existing imageUrl will be replaced.- Parameters:
imageUrl
- the imageUrl- Returns:
- the AnalyzeOptions builder
-
threshold
Set the threshold.- Parameters:
threshold
- the threshold- Returns:
- the AnalyzeOptions builder
-