BatchRequest Class

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

public final class BatchRequest

Definition for the input batch translation request.

Constructor Summary

Constructor Description
BatchRequest(SourceInput source, List<TargetInput> targets)

Creates an instance of BatchRequest class.

Method Summary

Modifier and Type Method and Description
SourceInput getSource()

Get the source property: Source of the input documents.

StorageInputType getStorageType()

Get the storageType property: Storage type of the input documents source string.

List<TargetInput> getTargets()

Get the targets property: Location of the destination for the output.

BatchRequest setStorageType(StorageInputType storageType)

Set the storageType property: Storage type of the input documents source string.

Methods inherited from java.lang.Object

Constructor Details

BatchRequest

public BatchRequest(SourceInput source, List<TargetInput> targets)

Creates an instance of BatchRequest class.

Parameters:

source - the source value to set.
targets - the targets value to set.

Method Details

getSource

public SourceInput getSource()

Get the source property: Source of the input documents.

Returns:

the source value.

getStorageType

public StorageInputType getStorageType()

Get the storageType property: Storage type of the input documents source string.

Returns:

the storageType value.

getTargets

public List<TargetInput> getTargets()

Get the targets property: Location of the destination for the output.

Returns:

the targets value.

setStorageType

public BatchRequest setStorageType(StorageInputType storageType)

Set the storageType property: Storage type of the input documents source string.

Parameters:

storageType - the storageType value to set.

Returns:

the BatchRequest object itself.

Applies to