@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAmazonTranslate extends Object implements AmazonTranslate
AmazonTranslate
. Convenient method forms pass through to the corresponding
overload that takes a request object, which throws an UnsupportedOperationException
.ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
CreateParallelDataResult |
createParallelData(CreateParallelDataRequest request)
Creates a parallel data resource in Amazon Translate by importing an input file from Amazon S3.
|
DeleteParallelDataResult |
deleteParallelData(DeleteParallelDataRequest request)
Deletes a parallel data resource in Amazon Translate.
|
DeleteTerminologyResult |
deleteTerminology(DeleteTerminologyRequest request)
A synchronous action that deletes a custom terminology.
|
DescribeTextTranslationJobResult |
describeTextTranslationJob(DescribeTextTranslationJobRequest request)
Gets the properties associated with an asynchronous batch translation job including name, ID, status, source and
target languages, input/output S3 buckets, and so on.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues
where a service isn't acting as expected.
|
GetParallelDataResult |
getParallelData(GetParallelDataRequest request)
Provides information about a parallel data resource.
|
GetTerminologyResult |
getTerminology(GetTerminologyRequest request)
Retrieves a custom terminology.
|
ImportTerminologyResult |
importTerminology(ImportTerminologyRequest request)
Creates or updates a custom terminology, depending on whether or not one already exists for the given terminology
name.
|
ListParallelDataResult |
listParallelData(ListParallelDataRequest request)
Provides a list of your parallel data resources in Amazon Translate.
|
ListTerminologiesResult |
listTerminologies(ListTerminologiesRequest request)
Provides a list of custom terminologies associated with your account.
|
ListTextTranslationJobsResult |
listTextTranslationJobs(ListTextTranslationJobsRequest request)
Gets a list of the batch translation jobs that you have submitted.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
StartTextTranslationJobResult |
startTextTranslationJob(StartTextTranslationJobRequest request)
Starts an asynchronous batch translation job.
|
StopTextTranslationJobResult |
stopTextTranslationJob(StopTextTranslationJobRequest request)
Stops an asynchronous batch translation job that is in progress.
|
TranslateTextResult |
translateText(TranslateTextRequest request)
Translates input text from the source language to the target language.
|
UpdateParallelDataResult |
updateParallelData(UpdateParallelDataRequest request)
Updates a previously created parallel data resource by importing a new input file from Amazon S3.
|
public CreateParallelDataResult createParallelData(CreateParallelDataRequest request)
AmazonTranslate
Creates a parallel data resource in Amazon Translate by importing an input file from Amazon S3. Parallel data files contain examples that show how you want segments of text to be translated. By adding parallel data, you can influence the style, tone, and word choice in your translation output.
createParallelData
in interface AmazonTranslate
public DeleteParallelDataResult deleteParallelData(DeleteParallelDataRequest request)
AmazonTranslate
Deletes a parallel data resource in Amazon Translate.
deleteParallelData
in interface AmazonTranslate
public DeleteTerminologyResult deleteTerminology(DeleteTerminologyRequest request)
AmazonTranslate
A synchronous action that deletes a custom terminology.
deleteTerminology
in interface AmazonTranslate
public DescribeTextTranslationJobResult describeTextTranslationJob(DescribeTextTranslationJobRequest request)
AmazonTranslate
Gets the properties associated with an asynchronous batch translation job including name, ID, status, source and target languages, input/output S3 buckets, and so on.
describeTextTranslationJob
in interface AmazonTranslate
public GetParallelDataResult getParallelData(GetParallelDataRequest request)
AmazonTranslate
Provides information about a parallel data resource.
getParallelData
in interface AmazonTranslate
public GetTerminologyResult getTerminology(GetTerminologyRequest request)
AmazonTranslate
Retrieves a custom terminology.
getTerminology
in interface AmazonTranslate
public ImportTerminologyResult importTerminology(ImportTerminologyRequest request)
AmazonTranslate
Creates or updates a custom terminology, depending on whether or not one already exists for the given terminology name. Importing a terminology with the same name as an existing one will merge the terminologies based on the chosen merge strategy. Currently, the only supported merge strategy is OVERWRITE, and so the imported terminology will overwrite an existing terminology of the same name.
If you import a terminology that overwrites an existing one, the new terminology take up to 10 minutes to fully propagate and be available for use in a translation due to cache policies with the DataPlane service that performs the translations.
importTerminology
in interface AmazonTranslate
public ListParallelDataResult listParallelData(ListParallelDataRequest request)
AmazonTranslate
Provides a list of your parallel data resources in Amazon Translate.
listParallelData
in interface AmazonTranslate
public ListTerminologiesResult listTerminologies(ListTerminologiesRequest request)
AmazonTranslate
Provides a list of custom terminologies associated with your account.
listTerminologies
in interface AmazonTranslate
public ListTextTranslationJobsResult listTextTranslationJobs(ListTextTranslationJobsRequest request)
AmazonTranslate
Gets a list of the batch translation jobs that you have submitted.
listTextTranslationJobs
in interface AmazonTranslate
public StartTextTranslationJobResult startTextTranslationJob(StartTextTranslationJobRequest request)
AmazonTranslate
Starts an asynchronous batch translation job. Batch translation jobs can be used to translate large volumes of text across multiple documents at once. For more information, see async.
Batch translation jobs can be described with the DescribeTextTranslationJob operation, listed with the ListTextTranslationJobs operation, and stopped with the StopTextTranslationJob operation.
Amazon Translate does not support batch translation of multiple source languages at once.
startTextTranslationJob
in interface AmazonTranslate
public StopTextTranslationJobResult stopTextTranslationJob(StopTextTranslationJobRequest request)
AmazonTranslate
Stops an asynchronous batch translation job that is in progress.
If the job's state is IN_PROGRESS
, the job will be marked for termination and put into the
STOP_REQUESTED
state. If the job completes before it can be stopped, it is put into the
COMPLETED
state. Otherwise, the job is put into the STOPPED
state.
Asynchronous batch translation jobs are started with the StartTextTranslationJob operation. You can use
the DescribeTextTranslationJob or ListTextTranslationJobs operations to get a batch translation
job's JobId
.
stopTextTranslationJob
in interface AmazonTranslate
public TranslateTextResult translateText(TranslateTextRequest request)
AmazonTranslate
Translates input text from the source language to the target language. For a list of available languages and language codes, see what-is-languages.
translateText
in interface AmazonTranslate
public UpdateParallelDataResult updateParallelData(UpdateParallelDataRequest request)
AmazonTranslate
Updates a previously created parallel data resource by importing a new input file from Amazon S3.
updateParallelData
in interface AmazonTranslate
public void shutdown()
AmazonTranslate
shutdown
in interface AmazonTranslate
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
AmazonTranslate
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
getCachedResponseMetadata
in interface AmazonTranslate
request
- The originally executed request.