@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface TranslateClient extends SdkClient
builder() method.
Provides translation between one source language and another of the same set of languages.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider. |
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
static TranslateClientBuilder |
builder()
Create a builder that can be used to configure and create a
TranslateClient. |
static TranslateClient |
create()
Create a
TranslateClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CreateParallelDataResponse |
createParallelData(Consumer<CreateParallelDataRequest.Builder> createParallelDataRequest)
Creates a parallel data resource in Amazon Translate by importing an input file from Amazon S3.
|
default CreateParallelDataResponse |
createParallelData(CreateParallelDataRequest createParallelDataRequest)
Creates a parallel data resource in Amazon Translate by importing an input file from Amazon S3.
|
default DeleteParallelDataResponse |
deleteParallelData(Consumer<DeleteParallelDataRequest.Builder> deleteParallelDataRequest)
Deletes a parallel data resource in Amazon Translate.
|
default DeleteParallelDataResponse |
deleteParallelData(DeleteParallelDataRequest deleteParallelDataRequest)
Deletes a parallel data resource in Amazon Translate.
|
default DeleteTerminologyResponse |
deleteTerminology(Consumer<DeleteTerminologyRequest.Builder> deleteTerminologyRequest)
A synchronous action that deletes a custom terminology.
|
default DeleteTerminologyResponse |
deleteTerminology(DeleteTerminologyRequest deleteTerminologyRequest)
A synchronous action that deletes a custom terminology.
|
default DescribeTextTranslationJobResponse |
describeTextTranslationJob(Consumer<DescribeTextTranslationJobRequest.Builder> describeTextTranslationJobRequest)
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.
|
default DescribeTextTranslationJobResponse |
describeTextTranslationJob(DescribeTextTranslationJobRequest describeTextTranslationJobRequest)
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.
|
default GetParallelDataResponse |
getParallelData(Consumer<GetParallelDataRequest.Builder> getParallelDataRequest)
Provides information about a parallel data resource.
|
default GetParallelDataResponse |
getParallelData(GetParallelDataRequest getParallelDataRequest)
Provides information about a parallel data resource.
|
default GetTerminologyResponse |
getTerminology(Consumer<GetTerminologyRequest.Builder> getTerminologyRequest)
Retrieves a custom terminology.
|
default GetTerminologyResponse |
getTerminology(GetTerminologyRequest getTerminologyRequest)
Retrieves a custom terminology.
|
default ImportTerminologyResponse |
importTerminology(Consumer<ImportTerminologyRequest.Builder> importTerminologyRequest)
Creates or updates a custom terminology, depending on whether or not one already exists for the given terminology
name.
|
default ImportTerminologyResponse |
importTerminology(ImportTerminologyRequest importTerminologyRequest)
Creates or updates a custom terminology, depending on whether or not one already exists for the given terminology
name.
|
default ListParallelDataResponse |
listParallelData(Consumer<ListParallelDataRequest.Builder> listParallelDataRequest)
Provides a list of your parallel data resources in Amazon Translate.
|
default ListParallelDataResponse |
listParallelData(ListParallelDataRequest listParallelDataRequest)
Provides a list of your parallel data resources in Amazon Translate.
|
default ListParallelDataIterable |
listParallelDataPaginator(Consumer<ListParallelDataRequest.Builder> listParallelDataRequest)
Provides a list of your parallel data resources in Amazon Translate.
|
default ListParallelDataIterable |
listParallelDataPaginator(ListParallelDataRequest listParallelDataRequest)
Provides a list of your parallel data resources in Amazon Translate.
|
default ListTerminologiesResponse |
listTerminologies()
Provides a list of custom terminologies associated with your account.
|
default ListTerminologiesResponse |
listTerminologies(Consumer<ListTerminologiesRequest.Builder> listTerminologiesRequest)
Provides a list of custom terminologies associated with your account.
|
default ListTerminologiesResponse |
listTerminologies(ListTerminologiesRequest listTerminologiesRequest)
Provides a list of custom terminologies associated with your account.
|
default ListTerminologiesIterable |
listTerminologiesPaginator()
Provides a list of custom terminologies associated with your account.
|
default ListTerminologiesIterable |
listTerminologiesPaginator(Consumer<ListTerminologiesRequest.Builder> listTerminologiesRequest)
Provides a list of custom terminologies associated with your account.
|
default ListTerminologiesIterable |
listTerminologiesPaginator(ListTerminologiesRequest listTerminologiesRequest)
Provides a list of custom terminologies associated with your account.
|
default ListTextTranslationJobsResponse |
listTextTranslationJobs(Consumer<ListTextTranslationJobsRequest.Builder> listTextTranslationJobsRequest)
Gets a list of the batch translation jobs that you have submitted.
|
default ListTextTranslationJobsResponse |
listTextTranslationJobs(ListTextTranslationJobsRequest listTextTranslationJobsRequest)
Gets a list of the batch translation jobs that you have submitted.
|
default ListTextTranslationJobsIterable |
listTextTranslationJobsPaginator(Consumer<ListTextTranslationJobsRequest.Builder> listTextTranslationJobsRequest)
Gets a list of the batch translation jobs that you have submitted.
|
default ListTextTranslationJobsIterable |
listTextTranslationJobsPaginator(ListTextTranslationJobsRequest listTextTranslationJobsRequest)
Gets a list of the batch translation jobs that you have submitted.
|
static ServiceMetadata |
serviceMetadata() |
default StartTextTranslationJobResponse |
startTextTranslationJob(Consumer<StartTextTranslationJobRequest.Builder> startTextTranslationJobRequest)
Starts an asynchronous batch translation job.
|
default StartTextTranslationJobResponse |
startTextTranslationJob(StartTextTranslationJobRequest startTextTranslationJobRequest)
Starts an asynchronous batch translation job.
|
default StopTextTranslationJobResponse |
stopTextTranslationJob(Consumer<StopTextTranslationJobRequest.Builder> stopTextTranslationJobRequest)
Stops an asynchronous batch translation job that is in progress.
|
default StopTextTranslationJobResponse |
stopTextTranslationJob(StopTextTranslationJobRequest stopTextTranslationJobRequest)
Stops an asynchronous batch translation job that is in progress.
|
default TranslateTextResponse |
translateText(Consumer<TranslateTextRequest.Builder> translateTextRequest)
Translates input text from the source language to the target language.
|
default TranslateTextResponse |
translateText(TranslateTextRequest translateTextRequest)
Translates input text from the source language to the target language.
|
default UpdateParallelDataResponse |
updateParallelData(Consumer<UpdateParallelDataRequest.Builder> updateParallelDataRequest)
Updates a previously created parallel data resource by importing a new input file from Amazon S3.
|
default UpdateParallelDataResponse |
updateParallelData(UpdateParallelDataRequest updateParallelDataRequest)
Updates a previously created parallel data resource by importing a new input file from Amazon S3.
|
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.static TranslateClient create()
TranslateClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static TranslateClientBuilder builder()
TranslateClient.default CreateParallelDataResponse createParallelData(CreateParallelDataRequest createParallelDataRequest) throws InvalidParameterValueException, InvalidRequestException, LimitExceededException, TooManyRequestsException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
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.
createParallelDataRequest - InvalidParameterValueException - The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and
then retry your operation.InvalidRequestException - The request that you made is invalid. Check your request to determine why it's invalid and then retry the
request.LimitExceededException - The specified limit has been exceeded. Review your request and retry it with a quantity below the stated
limit.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.ConflictException - There was a conflict processing the request. Try your request again.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateParallelDataResponse createParallelData(Consumer<CreateParallelDataRequest.Builder> createParallelDataRequest) throws InvalidParameterValueException, InvalidRequestException, LimitExceededException, TooManyRequestsException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
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.
This is a convenience which creates an instance of the CreateParallelDataRequest.Builder avoiding the
need to create one manually via CreateParallelDataRequest.builder()
createParallelDataRequest - A Consumer that will call methods on CreateParallelDataRequest.Builder to create a
request.InvalidParameterValueException - The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and
then retry your operation.InvalidRequestException - The request that you made is invalid. Check your request to determine why it's invalid and then retry the
request.LimitExceededException - The specified limit has been exceeded. Review your request and retry it with a quantity below the stated
limit.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.ConflictException - There was a conflict processing the request. Try your request again.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteParallelDataResponse deleteParallelData(DeleteParallelDataRequest deleteParallelDataRequest) throws ConcurrentModificationException, ResourceNotFoundException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
Deletes a parallel data resource in Amazon Translate.
deleteParallelDataRequest - ConcurrentModificationException - Another modification is being made. That modification must complete before you can make your change.ResourceNotFoundException - The resource you are looking for has not been found. Review the resource you're looking for and see if a
different resource will accomplish your needs before retrying the revised request.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteParallelDataResponse deleteParallelData(Consumer<DeleteParallelDataRequest.Builder> deleteParallelDataRequest) throws ConcurrentModificationException, ResourceNotFoundException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
Deletes a parallel data resource in Amazon Translate.
This is a convenience which creates an instance of the DeleteParallelDataRequest.Builder avoiding the
need to create one manually via DeleteParallelDataRequest.builder()
deleteParallelDataRequest - A Consumer that will call methods on DeleteParallelDataRequest.Builder to create a
request.ConcurrentModificationException - Another modification is being made. That modification must complete before you can make your change.ResourceNotFoundException - The resource you are looking for has not been found. Review the resource you're looking for and see if a
different resource will accomplish your needs before retrying the revised request.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteTerminologyResponse deleteTerminology(DeleteTerminologyRequest deleteTerminologyRequest) throws ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
A synchronous action that deletes a custom terminology.
deleteTerminologyRequest - ResourceNotFoundException - The resource you are looking for has not been found. Review the resource you're looking for and see if a
different resource will accomplish your needs before retrying the revised request.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InvalidParameterValueException - The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and
then retry your operation.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteTerminologyResponse deleteTerminology(Consumer<DeleteTerminologyRequest.Builder> deleteTerminologyRequest) throws ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
A synchronous action that deletes a custom terminology.
This is a convenience which creates an instance of the DeleteTerminologyRequest.Builder avoiding the need
to create one manually via DeleteTerminologyRequest.builder()
deleteTerminologyRequest - A Consumer that will call methods on DeleteTerminologyRequest.Builder to create a request.ResourceNotFoundException - The resource you are looking for has not been found. Review the resource you're looking for and see if a
different resource will accomplish your needs before retrying the revised request.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InvalidParameterValueException - The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and
then retry your operation.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeTextTranslationJobResponse describeTextTranslationJob(DescribeTextTranslationJobRequest describeTextTranslationJobRequest) throws ResourceNotFoundException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
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.
describeTextTranslationJobRequest - ResourceNotFoundException - The resource you are looking for has not been found. Review the resource you're looking for and see if a
different resource will accomplish your needs before retrying the revised request.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeTextTranslationJobResponse describeTextTranslationJob(Consumer<DescribeTextTranslationJobRequest.Builder> describeTextTranslationJobRequest) throws ResourceNotFoundException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
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.
This is a convenience which creates an instance of the DescribeTextTranslationJobRequest.Builder avoiding
the need to create one manually via DescribeTextTranslationJobRequest.builder()
describeTextTranslationJobRequest - A Consumer that will call methods on DescribeTextTranslationJobRequest.Builder to create a
request.ResourceNotFoundException - The resource you are looking for has not been found. Review the resource you're looking for and see if a
different resource will accomplish your needs before retrying the revised request.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetParallelDataResponse getParallelData(GetParallelDataRequest getParallelDataRequest) throws ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
Provides information about a parallel data resource.
getParallelDataRequest - ResourceNotFoundException - The resource you are looking for has not been found. Review the resource you're looking for and see if a
different resource will accomplish your needs before retrying the revised request.InvalidParameterValueException - The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and
then retry your operation.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetParallelDataResponse getParallelData(Consumer<GetParallelDataRequest.Builder> getParallelDataRequest) throws ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
Provides information about a parallel data resource.
This is a convenience which creates an instance of the GetParallelDataRequest.Builder avoiding the need
to create one manually via GetParallelDataRequest.builder()
getParallelDataRequest - A Consumer that will call methods on GetParallelDataRequest.Builder to create a request.ResourceNotFoundException - The resource you are looking for has not been found. Review the resource you're looking for and see if a
different resource will accomplish your needs before retrying the revised request.InvalidParameterValueException - The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and
then retry your operation.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetTerminologyResponse getTerminology(GetTerminologyRequest getTerminologyRequest) throws ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
Retrieves a custom terminology.
getTerminologyRequest - ResourceNotFoundException - The resource you are looking for has not been found. Review the resource you're looking for and see if a
different resource will accomplish your needs before retrying the revised request.InvalidParameterValueException - The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and
then retry your operation.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetTerminologyResponse getTerminology(Consumer<GetTerminologyRequest.Builder> getTerminologyRequest) throws ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
Retrieves a custom terminology.
This is a convenience which creates an instance of the GetTerminologyRequest.Builder avoiding the need to
create one manually via GetTerminologyRequest.builder()
getTerminologyRequest - A Consumer that will call methods on GetTerminologyRequest.Builder to create a request.ResourceNotFoundException - The resource you are looking for has not been found. Review the resource you're looking for and see if a
different resource will accomplish your needs before retrying the revised request.InvalidParameterValueException - The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and
then retry your operation.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ImportTerminologyResponse importTerminology(ImportTerminologyRequest importTerminologyRequest) throws InvalidParameterValueException, LimitExceededException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
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.
importTerminologyRequest - InvalidParameterValueException - The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and
then retry your operation.LimitExceededException - The specified limit has been exceeded. Review your request and retry it with a quantity below the stated
limit.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ImportTerminologyResponse importTerminology(Consumer<ImportTerminologyRequest.Builder> importTerminologyRequest) throws InvalidParameterValueException, LimitExceededException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
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.
This is a convenience which creates an instance of the ImportTerminologyRequest.Builder avoiding the need
to create one manually via ImportTerminologyRequest.builder()
importTerminologyRequest - A Consumer that will call methods on ImportTerminologyRequest.Builder to create a request.InvalidParameterValueException - The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and
then retry your operation.LimitExceededException - The specified limit has been exceeded. Review your request and retry it with a quantity below the stated
limit.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListParallelDataResponse listParallelData(ListParallelDataRequest listParallelDataRequest) throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
Provides a list of your parallel data resources in Amazon Translate.
listParallelDataRequest - InvalidParameterValueException - The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and
then retry your operation.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListParallelDataResponse listParallelData(Consumer<ListParallelDataRequest.Builder> listParallelDataRequest) throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
Provides a list of your parallel data resources in Amazon Translate.
This is a convenience which creates an instance of the ListParallelDataRequest.Builder avoiding the need
to create one manually via ListParallelDataRequest.builder()
listParallelDataRequest - A Consumer that will call methods on ListParallelDataRequest.Builder to create a request.InvalidParameterValueException - The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and
then retry your operation.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListParallelDataIterable listParallelDataPaginator(ListParallelDataRequest listParallelDataRequest) throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
Provides a list of your parallel data resources in Amazon Translate.
This is a variant of
listParallelData(software.amazon.awssdk.services.translate.model.ListParallelDataRequest) operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.translate.paginators.ListParallelDataIterable responses = client.listParallelDataPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.translate.paginators.ListParallelDataIterable responses = client
.listParallelDataPaginator(request);
for (software.amazon.awssdk.services.translate.model.ListParallelDataResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.translate.paginators.ListParallelDataIterable responses = client.listParallelDataPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listParallelData(software.amazon.awssdk.services.translate.model.ListParallelDataRequest) operation.
listParallelDataRequest - InvalidParameterValueException - The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and
then retry your operation.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListParallelDataIterable listParallelDataPaginator(Consumer<ListParallelDataRequest.Builder> listParallelDataRequest) throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
Provides a list of your parallel data resources in Amazon Translate.
This is a variant of
listParallelData(software.amazon.awssdk.services.translate.model.ListParallelDataRequest) operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.translate.paginators.ListParallelDataIterable responses = client.listParallelDataPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.translate.paginators.ListParallelDataIterable responses = client
.listParallelDataPaginator(request);
for (software.amazon.awssdk.services.translate.model.ListParallelDataResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.translate.paginators.ListParallelDataIterable responses = client.listParallelDataPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listParallelData(software.amazon.awssdk.services.translate.model.ListParallelDataRequest) operation.
This is a convenience which creates an instance of the ListParallelDataRequest.Builder avoiding the need
to create one manually via ListParallelDataRequest.builder()
listParallelDataRequest - A Consumer that will call methods on ListParallelDataRequest.Builder to create a request.InvalidParameterValueException - The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and
then retry your operation.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTerminologiesResponse listTerminologies() throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
Provides a list of custom terminologies associated with your account.
InvalidParameterValueException - The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and
then retry your operation.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionlistTerminologies(ListTerminologiesRequest),
AWS
API Documentationdefault ListTerminologiesResponse listTerminologies(ListTerminologiesRequest listTerminologiesRequest) throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
Provides a list of custom terminologies associated with your account.
listTerminologiesRequest - InvalidParameterValueException - The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and
then retry your operation.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTerminologiesResponse listTerminologies(Consumer<ListTerminologiesRequest.Builder> listTerminologiesRequest) throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
Provides a list of custom terminologies associated with your account.
This is a convenience which creates an instance of the ListTerminologiesRequest.Builder avoiding the need
to create one manually via ListTerminologiesRequest.builder()
listTerminologiesRequest - A Consumer that will call methods on ListTerminologiesRequest.Builder to create a request.InvalidParameterValueException - The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and
then retry your operation.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTerminologiesIterable listTerminologiesPaginator() throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
Provides a list of custom terminologies associated with your account.
This is a variant of
listTerminologies(software.amazon.awssdk.services.translate.model.ListTerminologiesRequest) operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.translate.paginators.ListTerminologiesIterable responses = client.listTerminologiesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.translate.paginators.ListTerminologiesIterable responses = client
.listTerminologiesPaginator(request);
for (software.amazon.awssdk.services.translate.model.ListTerminologiesResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.translate.paginators.ListTerminologiesIterable responses = client.listTerminologiesPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTerminologies(software.amazon.awssdk.services.translate.model.ListTerminologiesRequest)
operation.
InvalidParameterValueException - The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and
then retry your operation.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionlistTerminologiesPaginator(ListTerminologiesRequest),
AWS
API Documentationdefault ListTerminologiesIterable listTerminologiesPaginator(ListTerminologiesRequest listTerminologiesRequest) throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
Provides a list of custom terminologies associated with your account.
This is a variant of
listTerminologies(software.amazon.awssdk.services.translate.model.ListTerminologiesRequest) operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.translate.paginators.ListTerminologiesIterable responses = client.listTerminologiesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.translate.paginators.ListTerminologiesIterable responses = client
.listTerminologiesPaginator(request);
for (software.amazon.awssdk.services.translate.model.ListTerminologiesResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.translate.paginators.ListTerminologiesIterable responses = client.listTerminologiesPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTerminologies(software.amazon.awssdk.services.translate.model.ListTerminologiesRequest)
operation.
listTerminologiesRequest - InvalidParameterValueException - The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and
then retry your operation.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTerminologiesIterable listTerminologiesPaginator(Consumer<ListTerminologiesRequest.Builder> listTerminologiesRequest) throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
Provides a list of custom terminologies associated with your account.
This is a variant of
listTerminologies(software.amazon.awssdk.services.translate.model.ListTerminologiesRequest) operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.translate.paginators.ListTerminologiesIterable responses = client.listTerminologiesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.translate.paginators.ListTerminologiesIterable responses = client
.listTerminologiesPaginator(request);
for (software.amazon.awssdk.services.translate.model.ListTerminologiesResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.translate.paginators.ListTerminologiesIterable responses = client.listTerminologiesPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTerminologies(software.amazon.awssdk.services.translate.model.ListTerminologiesRequest)
operation.
This is a convenience which creates an instance of the ListTerminologiesRequest.Builder avoiding the need
to create one manually via ListTerminologiesRequest.builder()
listTerminologiesRequest - A Consumer that will call methods on ListTerminologiesRequest.Builder to create a request.InvalidParameterValueException - The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and
then retry your operation.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTextTranslationJobsResponse listTextTranslationJobs(ListTextTranslationJobsRequest listTextTranslationJobsRequest) throws InvalidRequestException, TooManyRequestsException, InvalidFilterException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
Gets a list of the batch translation jobs that you have submitted.
listTextTranslationJobsRequest - InvalidRequestException - The request that you made is invalid. Check your request to determine why it's invalid and then retry the
request.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InvalidFilterException - The filter specified for the operation is invalid. Specify a different filter.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTextTranslationJobsResponse listTextTranslationJobs(Consumer<ListTextTranslationJobsRequest.Builder> listTextTranslationJobsRequest) throws InvalidRequestException, TooManyRequestsException, InvalidFilterException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
Gets a list of the batch translation jobs that you have submitted.
This is a convenience which creates an instance of the ListTextTranslationJobsRequest.Builder avoiding
the need to create one manually via ListTextTranslationJobsRequest.builder()
listTextTranslationJobsRequest - A Consumer that will call methods on ListTextTranslationJobsRequest.Builder to create a
request.InvalidRequestException - The request that you made is invalid. Check your request to determine why it's invalid and then retry the
request.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InvalidFilterException - The filter specified for the operation is invalid. Specify a different filter.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTextTranslationJobsIterable listTextTranslationJobsPaginator(ListTextTranslationJobsRequest listTextTranslationJobsRequest) throws InvalidRequestException, TooManyRequestsException, InvalidFilterException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
Gets a list of the batch translation jobs that you have submitted.
This is a variant of
listTextTranslationJobs(software.amazon.awssdk.services.translate.model.ListTextTranslationJobsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.translate.paginators.ListTextTranslationJobsIterable responses = client.listTextTranslationJobsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.translate.paginators.ListTextTranslationJobsIterable responses = client
.listTextTranslationJobsPaginator(request);
for (software.amazon.awssdk.services.translate.model.ListTextTranslationJobsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.translate.paginators.ListTextTranslationJobsIterable responses = client.listTextTranslationJobsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTextTranslationJobs(software.amazon.awssdk.services.translate.model.ListTextTranslationJobsRequest)
operation.
listTextTranslationJobsRequest - InvalidRequestException - The request that you made is invalid. Check your request to determine why it's invalid and then retry the
request.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InvalidFilterException - The filter specified for the operation is invalid. Specify a different filter.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTextTranslationJobsIterable listTextTranslationJobsPaginator(Consumer<ListTextTranslationJobsRequest.Builder> listTextTranslationJobsRequest) throws InvalidRequestException, TooManyRequestsException, InvalidFilterException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
Gets a list of the batch translation jobs that you have submitted.
This is a variant of
listTextTranslationJobs(software.amazon.awssdk.services.translate.model.ListTextTranslationJobsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.translate.paginators.ListTextTranslationJobsIterable responses = client.listTextTranslationJobsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.translate.paginators.ListTextTranslationJobsIterable responses = client
.listTextTranslationJobsPaginator(request);
for (software.amazon.awssdk.services.translate.model.ListTextTranslationJobsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.translate.paginators.ListTextTranslationJobsIterable responses = client.listTextTranslationJobsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTextTranslationJobs(software.amazon.awssdk.services.translate.model.ListTextTranslationJobsRequest)
operation.
This is a convenience which creates an instance of the ListTextTranslationJobsRequest.Builder avoiding
the need to create one manually via ListTextTranslationJobsRequest.builder()
listTextTranslationJobsRequest - A Consumer that will call methods on ListTextTranslationJobsRequest.Builder to create a
request.InvalidRequestException - The request that you made is invalid. Check your request to determine why it's invalid and then retry the
request.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InvalidFilterException - The filter specified for the operation is invalid. Specify a different filter.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault StartTextTranslationJobResponse startTextTranslationJob(StartTextTranslationJobRequest startTextTranslationJobRequest) throws TooManyRequestsException, UnsupportedLanguagePairException, InvalidRequestException, ResourceNotFoundException, InvalidParameterValueException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
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.
startTextTranslationJobRequest - TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.UnsupportedLanguagePairException - Amazon Translate does not support translation from the language of the source text into the requested
target language. For more information, see how-to-error-msg.InvalidRequestException - The request that you made is invalid. Check your request to determine why it's invalid and then retry the
request.ResourceNotFoundException - The resource you are looking for has not been found. Review the resource you're looking for and see if a
different resource will accomplish your needs before retrying the revised request.InvalidParameterValueException - The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and
then retry your operation.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault StartTextTranslationJobResponse startTextTranslationJob(Consumer<StartTextTranslationJobRequest.Builder> startTextTranslationJobRequest) throws TooManyRequestsException, UnsupportedLanguagePairException, InvalidRequestException, ResourceNotFoundException, InvalidParameterValueException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
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.
This is a convenience which creates an instance of the StartTextTranslationJobRequest.Builder avoiding
the need to create one manually via StartTextTranslationJobRequest.builder()
startTextTranslationJobRequest - A Consumer that will call methods on StartTextTranslationJobRequest.Builder to create a
request.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.UnsupportedLanguagePairException - Amazon Translate does not support translation from the language of the source text into the requested
target language. For more information, see how-to-error-msg.InvalidRequestException - The request that you made is invalid. Check your request to determine why it's invalid and then retry the
request.ResourceNotFoundException - The resource you are looking for has not been found. Review the resource you're looking for and see if a
different resource will accomplish your needs before retrying the revised request.InvalidParameterValueException - The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and
then retry your operation.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault StopTextTranslationJobResponse stopTextTranslationJob(StopTextTranslationJobRequest stopTextTranslationJobRequest) throws ResourceNotFoundException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
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.
stopTextTranslationJobRequest - ResourceNotFoundException - The resource you are looking for has not been found. Review the resource you're looking for and see if a
different resource will accomplish your needs before retrying the revised request.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault StopTextTranslationJobResponse stopTextTranslationJob(Consumer<StopTextTranslationJobRequest.Builder> stopTextTranslationJobRequest) throws ResourceNotFoundException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
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.
This is a convenience which creates an instance of the StopTextTranslationJobRequest.Builder avoiding the
need to create one manually via StopTextTranslationJobRequest.builder()
stopTextTranslationJobRequest - A Consumer that will call methods on StopTextTranslationJobRequest.Builder to create a
request.ResourceNotFoundException - The resource you are looking for has not been found. Review the resource you're looking for and see if a
different resource will accomplish your needs before retrying the revised request.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault TranslateTextResponse translateText(TranslateTextRequest translateTextRequest) throws InvalidRequestException, TextSizeLimitExceededException, TooManyRequestsException, UnsupportedLanguagePairException, DetectedLanguageLowConfidenceException, ResourceNotFoundException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, TranslateException
Translates input text from the source language to the target language. For a list of available languages and language codes, see what-is-languages.
translateTextRequest - InvalidRequestException - The request that you made is invalid. Check your request to determine why it's invalid and then retry the
request.TextSizeLimitExceededException - The size of the text you submitted exceeds the size limit. Reduce the size of the text or use a smaller
document and then retry your request.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.UnsupportedLanguagePairException - Amazon Translate does not support translation from the language of the source text into the requested
target language. For more information, see how-to-error-msg.DetectedLanguageLowConfidenceException - The confidence that Amazon Comprehend accurately detected the source language is low. If a low confidence
level is acceptable for your application, you can use the language in the exception to call Amazon
Translate again. For more information, see the DetectDominantLanguage operation in the Amazon Comprehend Developer Guide.ResourceNotFoundException - The resource you are looking for has not been found. Review the resource you're looking for and see if a
different resource will accomplish your needs before retrying the revised request.InternalServerException - An internal server error occurred. Retry your request.ServiceUnavailableException - The Amazon Translate service is temporarily unavailable. Please wait a bit and then retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault TranslateTextResponse translateText(Consumer<TranslateTextRequest.Builder> translateTextRequest) throws InvalidRequestException, TextSizeLimitExceededException, TooManyRequestsException, UnsupportedLanguagePairException, DetectedLanguageLowConfidenceException, ResourceNotFoundException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, TranslateException
Translates input text from the source language to the target language. For a list of available languages and language codes, see what-is-languages.
This is a convenience which creates an instance of the TranslateTextRequest.Builder avoiding the need to
create one manually via TranslateTextRequest.builder()
translateTextRequest - A Consumer that will call methods on TranslateTextRequest.Builder to create a request.InvalidRequestException - The request that you made is invalid. Check your request to determine why it's invalid and then retry the
request.TextSizeLimitExceededException - The size of the text you submitted exceeds the size limit. Reduce the size of the text or use a smaller
document and then retry your request.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.UnsupportedLanguagePairException - Amazon Translate does not support translation from the language of the source text into the requested
target language. For more information, see how-to-error-msg.DetectedLanguageLowConfidenceException - The confidence that Amazon Comprehend accurately detected the source language is low. If a low confidence
level is acceptable for your application, you can use the language in the exception to call Amazon
Translate again. For more information, see the DetectDominantLanguage operation in the Amazon Comprehend Developer Guide.ResourceNotFoundException - The resource you are looking for has not been found. Review the resource you're looking for and see if a
different resource will accomplish your needs before retrying the revised request.InternalServerException - An internal server error occurred. Retry your request.ServiceUnavailableException - The Amazon Translate service is temporarily unavailable. Please wait a bit and then retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateParallelDataResponse updateParallelData(UpdateParallelDataRequest updateParallelDataRequest) throws ConcurrentModificationException, InvalidParameterValueException, InvalidRequestException, LimitExceededException, TooManyRequestsException, ConflictException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
Updates a previously created parallel data resource by importing a new input file from Amazon S3.
updateParallelDataRequest - ConcurrentModificationException - Another modification is being made. That modification must complete before you can make your change.InvalidParameterValueException - The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and
then retry your operation.InvalidRequestException - The request that you made is invalid. Check your request to determine why it's invalid and then retry the
request.LimitExceededException - The specified limit has been exceeded. Review your request and retry it with a quantity below the stated
limit.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.ConflictException - There was a conflict processing the request. Try your request again.ResourceNotFoundException - The resource you are looking for has not been found. Review the resource you're looking for and see if a
different resource will accomplish your needs before retrying the revised request.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateParallelDataResponse updateParallelData(Consumer<UpdateParallelDataRequest.Builder> updateParallelDataRequest) throws ConcurrentModificationException, InvalidParameterValueException, InvalidRequestException, LimitExceededException, TooManyRequestsException, ConflictException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, TranslateException
Updates a previously created parallel data resource by importing a new input file from Amazon S3.
This is a convenience which creates an instance of the UpdateParallelDataRequest.Builder avoiding the
need to create one manually via UpdateParallelDataRequest.builder()
updateParallelDataRequest - A Consumer that will call methods on UpdateParallelDataRequest.Builder to create a
request.ConcurrentModificationException - Another modification is being made. That modification must complete before you can make your change.InvalidParameterValueException - The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and
then retry your operation.InvalidRequestException - The request that you made is invalid. Check your request to determine why it's invalid and then retry the
request.LimitExceededException - The specified limit has been exceeded. Review your request and retry it with a quantity below the stated
limit.TooManyRequestsException - You have made too many requests within a short period of time. Wait for a short time and then try your
request again.ConflictException - There was a conflict processing the request. Try your request again.ResourceNotFoundException - The resource you are looking for has not been found. Review the resource you're looking for and see if a
different resource will accomplish your needs before retrying the revised request.InternalServerException - An internal server error occurred. Retry your request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TranslateException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionstatic ServiceMetadata serviceMetadata()
Copyright © 2022. All rights reserved.