Interface TranslateClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.
Provides translation of the input content from the source language to the target language.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionstatic TranslateClientBuilder
builder()
Create a builder that can be used to configure and create aTranslateClient
.static TranslateClient
create()
Create aTranslateClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.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.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.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 one already exists for the given terminology name.default ImportTerminologyResponse
importTerminology
(ImportTerminologyRequest importTerminologyRequest) Creates or updates a custom terminology, depending on whether one already exists for the given terminology name.default ListLanguagesResponse
listLanguages
(Consumer<ListLanguagesRequest.Builder> listLanguagesRequest) Provides a list of languages (RFC-5646 codes and names) that Amazon Translate supports.default ListLanguagesResponse
listLanguages
(ListLanguagesRequest listLanguagesRequest) Provides a list of languages (RFC-5646 codes and names) that Amazon Translate supports.default ListLanguagesIterable
listLanguagesPaginator
(Consumer<ListLanguagesRequest.Builder> listLanguagesRequest) This is a variant oflistLanguages(software.amazon.awssdk.services.translate.model.ListLanguagesRequest)
operation.default ListLanguagesIterable
listLanguagesPaginator
(ListLanguagesRequest listLanguagesRequest) This is a variant oflistLanguages(software.amazon.awssdk.services.translate.model.ListLanguagesRequest)
operation.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) This is a variant oflistParallelData(software.amazon.awssdk.services.translate.model.ListParallelDataRequest)
operation.default ListParallelDataIterable
listParallelDataPaginator
(ListParallelDataRequest listParallelDataRequest) This is a variant oflistParallelData(software.amazon.awssdk.services.translate.model.ListParallelDataRequest)
operation.default ListTagsForResourceResponse
listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists all tags associated with a given Amazon Translate resource.default ListTagsForResourceResponse
listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) Lists all tags associated with a given Amazon Translate resource.default ListTerminologiesResponse
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
This is a variant oflistTerminologies(software.amazon.awssdk.services.translate.model.ListTerminologiesRequest)
operation.default ListTerminologiesIterable
listTerminologiesPaginator
(Consumer<ListTerminologiesRequest.Builder> listTerminologiesRequest) This is a variant oflistTerminologies(software.amazon.awssdk.services.translate.model.ListTerminologiesRequest)
operation.default ListTerminologiesIterable
listTerminologiesPaginator
(ListTerminologiesRequest listTerminologiesRequest) This is a variant oflistTerminologies(software.amazon.awssdk.services.translate.model.ListTerminologiesRequest)
operation.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) This is a variant oflistTextTranslationJobs(software.amazon.awssdk.services.translate.model.ListTextTranslationJobsRequest)
operation.default ListTextTranslationJobsIterable
listTextTranslationJobsPaginator
(ListTextTranslationJobsRequest listTextTranslationJobsRequest) This is a variant oflistTextTranslationJobs(software.amazon.awssdk.services.translate.model.ListTextTranslationJobsRequest)
operation.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic 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 TagResourceResponse
tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) Associates a specific tag with a resource.default TagResourceResponse
tagResource
(TagResourceRequest tagResourceRequest) Associates a specific tag with a resource.default TranslateDocumentResponse
translateDocument
(Consumer<TranslateDocumentRequest.Builder> translateDocumentRequest) Translates the input document from the source language to the target language.default TranslateDocumentResponse
translateDocument
(TranslateDocumentRequest translateDocumentRequest) Translates the input document from the source language to the target language.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 UntagResourceResponse
untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes a specific tag associated with an Amazon Translate resource.default UntagResourceResponse
untagResource
(UntagResourceRequest untagResourceRequest) Removes a specific tag associated with an Amazon Translate resource.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.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
createParallelData
default CreateParallelDataResponse createParallelData(CreateParallelDataRequest createParallelDataRequest) throws InvalidParameterValueException, InvalidRequestException, LimitExceededException, TooManyRequestsException, TooManyTagsException, ConflictException, ConcurrentModificationException, 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.
- Parameters:
createParallelDataRequest
-- Returns:
- Result of the CreateParallelData operation returned by the service.
- See Also:
-
createParallelData
default CreateParallelDataResponse createParallelData(Consumer<CreateParallelDataRequest.Builder> createParallelDataRequest) throws InvalidParameterValueException, InvalidRequestException, LimitExceededException, TooManyRequestsException, TooManyTagsException, ConflictException, ConcurrentModificationException, 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 viaCreateParallelDataRequest.builder()
- Parameters:
createParallelDataRequest
- AConsumer
that will call methods onCreateParallelDataRequest.Builder
to create a request.- Returns:
- Result of the CreateParallelData operation returned by the service.
- See Also:
-
deleteParallelData
default DeleteParallelDataResponse deleteParallelData(DeleteParallelDataRequest deleteParallelDataRequest) throws ConcurrentModificationException, ResourceNotFoundException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException Deletes a parallel data resource in Amazon Translate.
- Parameters:
deleteParallelDataRequest
-- Returns:
- Result of the DeleteParallelData operation returned by the service.
- See Also:
-
deleteParallelData
default 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 viaDeleteParallelDataRequest.builder()
- Parameters:
deleteParallelDataRequest
- AConsumer
that will call methods onDeleteParallelDataRequest.Builder
to create a request.- Returns:
- Result of the DeleteParallelData operation returned by the service.
- See Also:
-
deleteTerminology
default DeleteTerminologyResponse deleteTerminology(DeleteTerminologyRequest deleteTerminologyRequest) throws ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, InternalServerException, AwsServiceException, SdkClientException, TranslateException A synchronous action that deletes a custom terminology.
- Parameters:
deleteTerminologyRequest
-- Returns:
- Result of the DeleteTerminology operation returned by the service.
- See Also:
-
deleteTerminology
default 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 viaDeleteTerminologyRequest.builder()
- Parameters:
deleteTerminologyRequest
- AConsumer
that will call methods onDeleteTerminologyRequest.Builder
to create a request.- Returns:
- Result of the DeleteTerminology operation returned by the service.
- See Also:
-
describeTextTranslationJob
default 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.
- Parameters:
describeTextTranslationJobRequest
-- Returns:
- Result of the DescribeTextTranslationJob operation returned by the service.
- See Also:
-
describeTextTranslationJob
default 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 viaDescribeTextTranslationJobRequest.builder()
- Parameters:
describeTextTranslationJobRequest
- AConsumer
that will call methods onDescribeTextTranslationJobRequest.Builder
to create a request.- Returns:
- Result of the DescribeTextTranslationJob operation returned by the service.
- See Also:
-
getParallelData
default GetParallelDataResponse getParallelData(GetParallelDataRequest getParallelDataRequest) throws ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException Provides information about a parallel data resource.
- Parameters:
getParallelDataRequest
-- Returns:
- Result of the GetParallelData operation returned by the service.
- See Also:
-
getParallelData
default 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 viaGetParallelDataRequest.builder()
- Parameters:
getParallelDataRequest
- AConsumer
that will call methods onGetParallelDataRequest.Builder
to create a request.- Returns:
- Result of the GetParallelData operation returned by the service.
- See Also:
-
getTerminology
default GetTerminologyResponse getTerminology(GetTerminologyRequest getTerminologyRequest) throws ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException Retrieves a custom terminology.
- Parameters:
getTerminologyRequest
-- Returns:
- Result of the GetTerminology operation returned by the service.
- See Also:
-
getTerminology
default 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 viaGetTerminologyRequest.builder()
- Parameters:
getTerminologyRequest
- AConsumer
that will call methods onGetTerminologyRequest.Builder
to create a request.- Returns:
- Result of the GetTerminology operation returned by the service.
- See Also:
-
importTerminology
default ImportTerminologyResponse importTerminology(ImportTerminologyRequest importTerminologyRequest) throws InvalidParameterValueException, LimitExceededException, TooManyRequestsException, TooManyTagsException, ConcurrentModificationException, InternalServerException, AwsServiceException, SdkClientException, TranslateException Creates or updates a custom terminology, depending on whether 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. The only supported merge strategy is OVERWRITE, where the imported terminology overwrites the existing terminology of the same name.
If you import a terminology that overwrites an existing one, the new terminology takes up to 10 minutes to fully propagate. After that, translations have access to the new terminology.
- Parameters:
importTerminologyRequest
-- Returns:
- Result of the ImportTerminology operation returned by the service.
- See Also:
-
importTerminology
default ImportTerminologyResponse importTerminology(Consumer<ImportTerminologyRequest.Builder> importTerminologyRequest) throws InvalidParameterValueException, LimitExceededException, TooManyRequestsException, TooManyTagsException, ConcurrentModificationException, InternalServerException, AwsServiceException, SdkClientException, TranslateException Creates or updates a custom terminology, depending on whether 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. The only supported merge strategy is OVERWRITE, where the imported terminology overwrites the existing terminology of the same name.
If you import a terminology that overwrites an existing one, the new terminology takes up to 10 minutes to fully propagate. After that, translations have access to the new terminology.
This is a convenience which creates an instance of the
ImportTerminologyRequest.Builder
avoiding the need to create one manually viaImportTerminologyRequest.builder()
- Parameters:
importTerminologyRequest
- AConsumer
that will call methods onImportTerminologyRequest.Builder
to create a request.- Returns:
- Result of the ImportTerminology operation returned by the service.
- See Also:
-
listLanguages
default ListLanguagesResponse listLanguages(ListLanguagesRequest listLanguagesRequest) throws InvalidParameterValueException, TooManyRequestsException, UnsupportedDisplayLanguageCodeException, InternalServerException, AwsServiceException, SdkClientException, TranslateException Provides a list of languages (RFC-5646 codes and names) that Amazon Translate supports.
- Parameters:
listLanguagesRequest
-- Returns:
- Result of the ListLanguages operation returned by the service.
- See Also:
-
listLanguages
default ListLanguagesResponse listLanguages(Consumer<ListLanguagesRequest.Builder> listLanguagesRequest) throws InvalidParameterValueException, TooManyRequestsException, UnsupportedDisplayLanguageCodeException, InternalServerException, AwsServiceException, SdkClientException, TranslateException Provides a list of languages (RFC-5646 codes and names) that Amazon Translate supports.
This is a convenience which creates an instance of the
ListLanguagesRequest.Builder
avoiding the need to create one manually viaListLanguagesRequest.builder()
- Parameters:
listLanguagesRequest
- AConsumer
that will call methods onListLanguagesRequest.Builder
to create a request.- Returns:
- Result of the ListLanguages operation returned by the service.
- See Also:
-
listLanguagesPaginator
default ListLanguagesIterable listLanguagesPaginator(ListLanguagesRequest listLanguagesRequest) throws InvalidParameterValueException, TooManyRequestsException, UnsupportedDisplayLanguageCodeException, InternalServerException, AwsServiceException, SdkClientException, TranslateException This is a variant of
listLanguages(software.amazon.awssdk.services.translate.model.ListLanguagesRequest)
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 Streamsoftware.amazon.awssdk.services.translate.paginators.ListLanguagesIterable responses = client.listLanguagesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.translate.paginators.ListLanguagesIterable responses = client.listLanguagesPaginator(request); for (software.amazon.awssdk.services.translate.model.ListLanguagesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.translate.paginators.ListLanguagesIterable responses = client.listLanguagesPaginator(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
listLanguages(software.amazon.awssdk.services.translate.model.ListLanguagesRequest)
operation.- Parameters:
listLanguagesRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listLanguagesPaginator
default ListLanguagesIterable listLanguagesPaginator(Consumer<ListLanguagesRequest.Builder> listLanguagesRequest) throws InvalidParameterValueException, TooManyRequestsException, UnsupportedDisplayLanguageCodeException, InternalServerException, AwsServiceException, SdkClientException, TranslateException This is a variant of
listLanguages(software.amazon.awssdk.services.translate.model.ListLanguagesRequest)
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 Streamsoftware.amazon.awssdk.services.translate.paginators.ListLanguagesIterable responses = client.listLanguagesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.translate.paginators.ListLanguagesIterable responses = client.listLanguagesPaginator(request); for (software.amazon.awssdk.services.translate.model.ListLanguagesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.translate.paginators.ListLanguagesIterable responses = client.listLanguagesPaginator(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
listLanguages(software.amazon.awssdk.services.translate.model.ListLanguagesRequest)
operation.
This is a convenience which creates an instance of the
ListLanguagesRequest.Builder
avoiding the need to create one manually viaListLanguagesRequest.builder()
- Parameters:
listLanguagesRequest
- AConsumer
that will call methods onListLanguagesRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listParallelData
default ListParallelDataResponse listParallelData(ListParallelDataRequest listParallelDataRequest) throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException Provides a list of your parallel data resources in Amazon Translate.
- Parameters:
listParallelDataRequest
-- Returns:
- Result of the ListParallelData operation returned by the service.
- See Also:
-
listParallelData
default 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 viaListParallelDataRequest.builder()
- Parameters:
listParallelDataRequest
- AConsumer
that will call methods onListParallelDataRequest.Builder
to create a request.- Returns:
- Result of the ListParallelData operation returned by the service.
- See Also:
-
listParallelDataPaginator
default ListParallelDataIterable listParallelDataPaginator(ListParallelDataRequest listParallelDataRequest) throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException 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 Streamsoftware.amazon.awssdk.services.translate.paginators.ListParallelDataIterable responses = client.listParallelDataPaginator(request); responses.stream().forEach(....);
{ @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 directlysoftware.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.- Parameters:
listParallelDataRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listParallelDataPaginator
default ListParallelDataIterable listParallelDataPaginator(Consumer<ListParallelDataRequest.Builder> listParallelDataRequest) throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException 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 Streamsoftware.amazon.awssdk.services.translate.paginators.ListParallelDataIterable responses = client.listParallelDataPaginator(request); responses.stream().forEach(....);
{ @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 directlysoftware.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 viaListParallelDataRequest.builder()
- Parameters:
listParallelDataRequest
- AConsumer
that will call methods onListParallelDataRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws InvalidParameterValueException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, TranslateException Lists all tags associated with a given Amazon Translate resource. For more information, see Tagging your resources.
- Parameters:
listTagsForResourceRequest
-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws InvalidParameterValueException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, TranslateException Lists all tags associated with a given Amazon Translate resource. For more information, see Tagging your resources.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builder
avoiding the need to create one manually viaListTagsForResourceRequest.builder()
- Parameters:
listTagsForResourceRequest
- AConsumer
that will call methods onListTagsForResourceRequest.Builder
to create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTerminologies
default ListTerminologiesResponse listTerminologies(ListTerminologiesRequest listTerminologiesRequest) throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException Provides a list of custom terminologies associated with your account.
- Parameters:
listTerminologiesRequest
-- Returns:
- Result of the ListTerminologies operation returned by the service.
- See Also:
-
listTerminologies
default 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 viaListTerminologiesRequest.builder()
- Parameters:
listTerminologiesRequest
- AConsumer
that will call methods onListTerminologiesRequest.Builder
to create a request.- Returns:
- Result of the ListTerminologies operation returned by the service.
- See Also:
-
listTerminologies
default ListTerminologiesResponse listTerminologies() throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateExceptionProvides a list of custom terminologies associated with your account.
- Returns:
- Result of the ListTerminologies operation returned by the service.
- See Also:
-
listTerminologiesPaginator
default ListTerminologiesIterable listTerminologiesPaginator() throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateExceptionThis 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 Streamsoftware.amazon.awssdk.services.translate.paginators.ListTerminologiesIterable responses = client.listTerminologiesPaginator(request); responses.stream().forEach(....);
{ @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 directlysoftware.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.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTerminologiesPaginator
default ListTerminologiesIterable listTerminologiesPaginator(ListTerminologiesRequest listTerminologiesRequest) throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException 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 Streamsoftware.amazon.awssdk.services.translate.paginators.ListTerminologiesIterable responses = client.listTerminologiesPaginator(request); responses.stream().forEach(....);
{ @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 directlysoftware.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.- Parameters:
listTerminologiesRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTerminologiesPaginator
default ListTerminologiesIterable listTerminologiesPaginator(Consumer<ListTerminologiesRequest.Builder> listTerminologiesRequest) throws InvalidParameterValueException, TooManyRequestsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException 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 Streamsoftware.amazon.awssdk.services.translate.paginators.ListTerminologiesIterable responses = client.listTerminologiesPaginator(request); responses.stream().forEach(....);
{ @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 directlysoftware.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 viaListTerminologiesRequest.builder()
- Parameters:
listTerminologiesRequest
- AConsumer
that will call methods onListTerminologiesRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTextTranslationJobs
default ListTextTranslationJobsResponse listTextTranslationJobs(ListTextTranslationJobsRequest listTextTranslationJobsRequest) throws InvalidRequestException, TooManyRequestsException, InvalidFilterException, InternalServerException, AwsServiceException, SdkClientException, TranslateException Gets a list of the batch translation jobs that you have submitted.
- Parameters:
listTextTranslationJobsRequest
-- Returns:
- Result of the ListTextTranslationJobs operation returned by the service.
- See Also:
-
listTextTranslationJobs
default 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 viaListTextTranslationJobsRequest.builder()
- Parameters:
listTextTranslationJobsRequest
- AConsumer
that will call methods onListTextTranslationJobsRequest.Builder
to create a request.- Returns:
- Result of the ListTextTranslationJobs operation returned by the service.
- See Also:
-
listTextTranslationJobsPaginator
default ListTextTranslationJobsIterable listTextTranslationJobsPaginator(ListTextTranslationJobsRequest listTextTranslationJobsRequest) throws InvalidRequestException, TooManyRequestsException, InvalidFilterException, InternalServerException, AwsServiceException, SdkClientException, TranslateException 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 Streamsoftware.amazon.awssdk.services.translate.paginators.ListTextTranslationJobsIterable responses = client.listTextTranslationJobsPaginator(request); responses.stream().forEach(....);
{ @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 directlysoftware.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.- Parameters:
listTextTranslationJobsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTextTranslationJobsPaginator
default ListTextTranslationJobsIterable listTextTranslationJobsPaginator(Consumer<ListTextTranslationJobsRequest.Builder> listTextTranslationJobsRequest) throws InvalidRequestException, TooManyRequestsException, InvalidFilterException, InternalServerException, AwsServiceException, SdkClientException, TranslateException 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 Streamsoftware.amazon.awssdk.services.translate.paginators.ListTextTranslationJobsIterable responses = client.listTextTranslationJobsPaginator(request); responses.stream().forEach(....);
{ @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 directlysoftware.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 viaListTextTranslationJobsRequest.builder()
- Parameters:
listTextTranslationJobsRequest
- AConsumer
that will call methods onListTextTranslationJobsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
startTextTranslationJob
default StartTextTranslationJobResponse startTextTranslationJob(StartTextTranslationJobRequest startTextTranslationJobRequest) throws TooManyRequestsException, UnsupportedLanguagePairException, InvalidRequestException, ResourceNotFoundException, InvalidParameterValueException, InternalServerException, AwsServiceException, SdkClientException, TranslateException Starts an asynchronous batch translation job. Use batch translation jobs to translate large volumes of text across multiple documents at once. For batch translation, you can input documents with different source languages (specify
auto
as the source language). You can specify one or more target languages. Batch translation translates each input document into each of the target languages. For more information, see Asynchronous batch processing.Batch translation jobs can be described with the DescribeTextTranslationJob operation, listed with the ListTextTranslationJobs operation, and stopped with the StopTextTranslationJob operation.
- Parameters:
startTextTranslationJobRequest
-- Returns:
- Result of the StartTextTranslationJob operation returned by the service.
- See Also:
-
startTextTranslationJob
default StartTextTranslationJobResponse startTextTranslationJob(Consumer<StartTextTranslationJobRequest.Builder> startTextTranslationJobRequest) throws TooManyRequestsException, UnsupportedLanguagePairException, InvalidRequestException, ResourceNotFoundException, InvalidParameterValueException, InternalServerException, AwsServiceException, SdkClientException, TranslateException Starts an asynchronous batch translation job. Use batch translation jobs to translate large volumes of text across multiple documents at once. For batch translation, you can input documents with different source languages (specify
auto
as the source language). You can specify one or more target languages. Batch translation translates each input document into each of the target languages. For more information, see Asynchronous batch processing.Batch translation jobs can be described with the DescribeTextTranslationJob operation, listed with the ListTextTranslationJobs operation, and stopped with the StopTextTranslationJob operation.
This is a convenience which creates an instance of the
StartTextTranslationJobRequest.Builder
avoiding the need to create one manually viaStartTextTranslationJobRequest.builder()
- Parameters:
startTextTranslationJobRequest
- AConsumer
that will call methods onStartTextTranslationJobRequest.Builder
to create a request.- Returns:
- Result of the StartTextTranslationJob operation returned by the service.
- See Also:
-
stopTextTranslationJob
default 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 theSTOP_REQUESTED
state. If the job completes before it can be stopped, it is put into theCOMPLETED
state. Otherwise, the job is put into theSTOPPED
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
.- Parameters:
stopTextTranslationJobRequest
-- Returns:
- Result of the StopTextTranslationJob operation returned by the service.
- See Also:
-
stopTextTranslationJob
default 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 theSTOP_REQUESTED
state. If the job completes before it can be stopped, it is put into theCOMPLETED
state. Otherwise, the job is put into theSTOPPED
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 viaStopTextTranslationJobRequest.builder()
- Parameters:
stopTextTranslationJobRequest
- AConsumer
that will call methods onStopTextTranslationJobRequest.Builder
to create a request.- Returns:
- Result of the StopTextTranslationJob operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws InvalidParameterValueException, ConcurrentModificationException, ResourceNotFoundException, TooManyTagsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException Associates a specific tag with a resource. A tag is a key-value pair that adds as a metadata to a resource. For more information, see Tagging your resources.
- Parameters:
tagResourceRequest
-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws InvalidParameterValueException, ConcurrentModificationException, ResourceNotFoundException, TooManyTagsException, InternalServerException, AwsServiceException, SdkClientException, TranslateException Associates a specific tag with a resource. A tag is a key-value pair that adds as a metadata to a resource. For more information, see Tagging your resources.
This is a convenience which creates an instance of the
TagResourceRequest.Builder
avoiding the need to create one manually viaTagResourceRequest.builder()
- Parameters:
tagResourceRequest
- AConsumer
that will call methods onTagResourceRequest.Builder
to create a request.- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
translateDocument
default TranslateDocumentResponse translateDocument(TranslateDocumentRequest translateDocumentRequest) throws InvalidRequestException, LimitExceededException, TooManyRequestsException, ResourceNotFoundException, UnsupportedLanguagePairException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, TranslateException Translates the input document from the source language to the target language. This synchronous operation supports text, HTML, or Word documents as the input document.
TranslateDocument
supports translations from English to any supported language, and from any supported language to English. Therefore, specify either the source language code or the target language code as “en” (English).If you set the
Formality
parameter, the request will fail if the target language does not support formality. For a list of target languages that support formality, see Setting formality.- Parameters:
translateDocumentRequest
-- Returns:
- Result of the TranslateDocument operation returned by the service.
- See Also:
-
translateDocument
default TranslateDocumentResponse translateDocument(Consumer<TranslateDocumentRequest.Builder> translateDocumentRequest) throws InvalidRequestException, LimitExceededException, TooManyRequestsException, ResourceNotFoundException, UnsupportedLanguagePairException, InternalServerException, ServiceUnavailableException, AwsServiceException, SdkClientException, TranslateException Translates the input document from the source language to the target language. This synchronous operation supports text, HTML, or Word documents as the input document.
TranslateDocument
supports translations from English to any supported language, and from any supported language to English. Therefore, specify either the source language code or the target language code as “en” (English).If you set the
Formality
parameter, the request will fail if the target language does not support formality. For a list of target languages that support formality, see Setting formality.
This is a convenience which creates an instance of the
TranslateDocumentRequest.Builder
avoiding the need to create one manually viaTranslateDocumentRequest.builder()
- Parameters:
translateDocumentRequest
- AConsumer
that will call methods onTranslateDocumentRequest.Builder
to create a request.- Returns:
- Result of the TranslateDocument operation returned by the service.
- See Also:
-
translateText
default 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 Supported languages.
- Parameters:
translateTextRequest
-- Returns:
- Result of the TranslateText operation returned by the service.
- See Also:
-
translateText
default 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 Supported languages.
This is a convenience which creates an instance of the
TranslateTextRequest.Builder
avoiding the need to create one manually viaTranslateTextRequest.builder()
- Parameters:
translateTextRequest
- AConsumer
that will call methods onTranslateTextRequest.Builder
to create a request.- Returns:
- Result of the TranslateText operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws InvalidParameterValueException, ConcurrentModificationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, TranslateException Removes a specific tag associated with an Amazon Translate resource. For more information, see Tagging your resources.
- Parameters:
untagResourceRequest
-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws InvalidParameterValueException, ConcurrentModificationException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, TranslateException Removes a specific tag associated with an Amazon Translate resource. For more information, see Tagging your resources.
This is a convenience which creates an instance of the
UntagResourceRequest.Builder
avoiding the need to create one manually viaUntagResourceRequest.builder()
- Parameters:
untagResourceRequest
- AConsumer
that will call methods onUntagResourceRequest.Builder
to create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateParallelData
default 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.
- Parameters:
updateParallelDataRequest
-- Returns:
- Result of the UpdateParallelData operation returned by the service.
- See Also:
-
updateParallelData
default 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 viaUpdateParallelDataRequest.builder()
- Parameters:
updateParallelDataRequest
- AConsumer
that will call methods onUpdateParallelDataRequest.Builder
to create a request.- Returns:
- Result of the UpdateParallelData operation returned by the service.
- See Also:
-
create
Create aTranslateClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aTranslateClient
. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-