public class AddImagesOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
AddImagesOptions.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
collectionId |
protected java.util.List<com.ibm.cloud.sdk.core.service.model.FileWithMetadata> |
imagesFile |
protected java.util.List<java.lang.String> |
imageUrl |
protected java.lang.String |
trainingData |
Modifier | Constructor and Description |
---|---|
protected |
AddImagesOptions(AddImagesOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
collectionId()
Gets the collectionId.
|
java.util.List<com.ibm.cloud.sdk.core.service.model.FileWithMetadata> |
imagesFile()
Gets the imagesFile.
|
java.util.List<java.lang.String> |
imageUrl()
Gets the imageUrl.
|
AddImagesOptions.Builder |
newBuilder()
New builder.
|
java.lang.String |
trainingData()
Gets the trainingData.
|
protected java.lang.String collectionId
protected java.util.List<com.ibm.cloud.sdk.core.service.model.FileWithMetadata> imagesFile
protected java.util.List<java.lang.String> imageUrl
protected java.lang.String trainingData
protected AddImagesOptions(AddImagesOptions.Builder builder)
public AddImagesOptions.Builder newBuilder()
public java.lang.String collectionId()
The identifier of the collection.
public java.util.List<com.ibm.cloud.sdk.core.service.model.FileWithMetadata> imagesFile()
An array of image files (.jpg or .png) or .zip files with images. - Include a maximum of 20 images in a request. - Limit the .zip file to 100 MB. - Limit each image file to 10 MB.
You can also include an image with the **image_url** parameter.
public java.util.List<java.lang.String> imageUrl()
The array of URLs of image files (.jpg or .png). - Include a maximum of 20 images in a request. - Limit each image file to 10 MB. - Minimum width and height is 30 pixels, but the service tends to perform better with images that are at least 300 x 300 pixels. Maximum is 5400 pixels for either height or width.
You can also include images with the **images_file** parameter.
public java.lang.String trainingData()
Training data for a single image. Include training data only if you add one image with the request.
The `object` property can contain alphanumeric, underscore, hyphen, space, and dot characters. It cannot begin with the reserved prefix `sys-` and must be no longer than 32 characters.