Class ImageSource
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.visual_recognition.v4.model.ImageSource
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class ImageSource
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The source type of the image.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ImageSource.Type
The source type of the image. -
Constructor Summary
Constructors Constructor Description ImageSource()
-
Method Summary
Modifier and Type Method Description String
getArchiveFilename()
Gets the archiveFilename.String
getFilename()
Gets the filename.String
getResolvedUrl()
Gets the resolvedUrl.String
getSourceUrl()
Gets the sourceUrl.String
getType()
Gets the type.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
ImageSource
public ImageSource()
-
-
Method Details
-
getType
Gets the type.The source type of the image.
- Returns:
- the type
-
getFilename
Gets the filename.Name of the image file if uploaded. Not returned when the image is passed by URL.
- Returns:
- the filename
-
getArchiveFilename
Gets the archiveFilename.Name of the .zip file of images if uploaded. Not returned when the image is passed directly or by URL.
- Returns:
- the archiveFilename
-
getSourceUrl
Gets the sourceUrl.Source of the image before any redirects. Not returned when the image is uploaded.
- Returns:
- the sourceUrl
-
getResolvedUrl
Gets the resolvedUrl.Fully resolved URL of the image after redirects are followed. Not returned when the image is uploaded.
- Returns:
- the resolvedUrl
-