SourceInput Class

  • java.lang.Object
    • com.azure.ai.translation.document.models.SourceInput

public final class SourceInput

Source of the input documents.

Constructor Summary

Constructor Description
SourceInput(String sourceUrl)

Creates an instance of SourceInput class.

Method Summary

Modifier and Type Method and Description
DocumentFilter 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 sourceUrl property: Location of the folder / container or single file with your documents.

StorageSource getStorageSource()

Get the storageSource property: Storage Source.

SourceInput setFilter(DocumentFilter filter)

Set the filter property: Document filter.

SourceInput setLanguage(String language)

Set the language property: Language code If none is specified, we will perform auto detect on the document.

SourceInput setStorageSource(StorageSource storageSource)

Set the storageSource property: Storage Source.

Methods inherited from java.lang.Object

Constructor Details

SourceInput

public SourceInput(String sourceUrl)

Creates an instance of SourceInput class.

Parameters:

sourceUrl - the sourceUrl value to set.

Method Details

getFilter

public DocumentFilter getFilter()

Get the filter property: Document filter.

Returns:

the filter value.

getLanguage

public String getLanguage()

Get the language property: Language code If none is specified, we will perform auto detect on the document.

Returns:

the language value.

getSourceUrl

public String getSourceUrl()

Get the sourceUrl property: Location of the folder / container or single file with your documents.

Returns:

the sourceUrl value.

getStorageSource

public StorageSource getStorageSource()

Get the storageSource property: Storage Source.

Returns:

the storageSource value.

setFilter

public SourceInput setFilter(DocumentFilter filter)

Set the filter property: Document filter.

Parameters:

filter - the filter value to set.

Returns:

the SourceInput object itself.

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:

language - the language value to set.

Returns:

the SourceInput object itself.

setStorageSource

public SourceInput setStorageSource(StorageSource storageSource)

Set the storageSource property: Storage Source.

Parameters:

storageSource - the storageSource value to set.

Returns:

the SourceInput object itself.

Applies to