SourceInput Class
- java.
lang. Object - com.
azure. ai. translation. document. models. SourceInput
- com.
public final class SourceInput
Source of the input documents.
Constructor Summary
| Constructor | Description |
|---|---|
| SourceInput(String sourceUrl) |
Creates an instance of Source |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Document |
getFilter()
Get the filter property: Document filter. |
| String |
getLanguage()
Get the language property: Language code If none is specified, we will perform auto detect on the document. |
| String |
getSourceUrl()
Get the source |
|
Storage |
getStorageSource()
Get the storage |
|
Source |
setFilter(DocumentFilter filter)
Set the filter property: Document filter. |
|
Source |
setLanguage(String language)
Set the language property: Language code If none is specified, we will perform auto detect on the document. |
|
Source |
setStorageSource(StorageSource storageSource)
Set the storage |
Methods inherited from java.lang.Object
Constructor Details
SourceInput
public SourceInput(String sourceUrl)
Creates an instance of SourceInput class.
Parameters:
Method Details
getFilter
public DocumentFilter getFilter()
Get the filter property: Document filter.
Returns:
getLanguage
public String getLanguage()
Get the language property: Language code If none is specified, we will perform auto detect on the document.
Returns:
getSourceUrl
public String getSourceUrl()
Get the sourceUrl property: Location of the folder / container or single file with your documents.
Returns:
getStorageSource
public StorageSource getStorageSource()
Get the storageSource property: Storage Source.
Returns:
setFilter
public SourceInput setFilter(DocumentFilter filter)
Set the filter property: Document filter.
Parameters:
Returns:
setLanguage
public SourceInput setLanguage(String language)
Set the language property: Language code If none is specified, we will perform auto detect on the document.
Parameters:
Returns:
setStorageSource
public SourceInput setStorageSource(StorageSource storageSource)
Set the storageSource property: Storage Source.
Parameters:
Returns: