@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface TranslateAsyncClient extends AwsClient
builder()
method.
Provides translation of the input content from the source language to the target language.
| 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 TranslateAsyncClientBuilder |
builder()
Create a builder that can be used to configure and create a
TranslateAsyncClient. |
static TranslateAsyncClient |
create()
Create a
TranslateAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CompletableFuture<CreateParallelDataResponse> |
createParallelData(Consumer<CreateParallelDataRequest.Builder> createParallelDataRequest)
Creates a parallel data resource in Amazon Translate by importing an input file from Amazon S3.
|
default CompletableFuture<CreateParallelDataResponse> |
createParallelData(CreateParallelDataRequest createParallelDataRequest)
Creates a parallel data resource in Amazon Translate by importing an input file from Amazon S3.
|
default CompletableFuture<DeleteParallelDataResponse> |
deleteParallelData(Consumer<DeleteParallelDataRequest.Builder> deleteParallelDataRequest)
Deletes a parallel data resource in Amazon Translate.
|
default CompletableFuture<DeleteParallelDataResponse> |
deleteParallelData(DeleteParallelDataRequest deleteParallelDataRequest)
Deletes a parallel data resource in Amazon Translate.
|
default CompletableFuture<DeleteTerminologyResponse> |
deleteTerminology(Consumer<DeleteTerminologyRequest.Builder> deleteTerminologyRequest)
A synchronous action that deletes a custom terminology.
|
default CompletableFuture<DeleteTerminologyResponse> |
deleteTerminology(DeleteTerminologyRequest deleteTerminologyRequest)
A synchronous action that deletes a custom terminology.
|
default CompletableFuture<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 CompletableFuture<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 CompletableFuture<GetParallelDataResponse> |
getParallelData(Consumer<GetParallelDataRequest.Builder> getParallelDataRequest)
Provides information about a parallel data resource.
|
default CompletableFuture<GetParallelDataResponse> |
getParallelData(GetParallelDataRequest getParallelDataRequest)
Provides information about a parallel data resource.
|
default CompletableFuture<GetTerminologyResponse> |
getTerminology(Consumer<GetTerminologyRequest.Builder> getTerminologyRequest)
Retrieves a custom terminology.
|
default CompletableFuture<GetTerminologyResponse> |
getTerminology(GetTerminologyRequest getTerminologyRequest)
Retrieves a custom terminology.
|
default CompletableFuture<ImportTerminologyResponse> |
importTerminology(Consumer<ImportTerminologyRequest.Builder> importTerminologyRequest)
Creates or updates a custom terminology, depending on whether one already exists for the given terminology name.
|
default CompletableFuture<ImportTerminologyResponse> |
importTerminology(ImportTerminologyRequest importTerminologyRequest)
Creates or updates a custom terminology, depending on whether one already exists for the given terminology name.
|
default CompletableFuture<ListLanguagesResponse> |
listLanguages(Consumer<ListLanguagesRequest.Builder> listLanguagesRequest)
Provides a list of languages (RFC-5646 codes and names) that Amazon Translate supports.
|
default CompletableFuture<ListLanguagesResponse> |
listLanguages(ListLanguagesRequest listLanguagesRequest)
Provides a list of languages (RFC-5646 codes and names) that Amazon Translate supports.
|
default ListLanguagesPublisher |
listLanguagesPaginator(Consumer<ListLanguagesRequest.Builder> listLanguagesRequest)
Provides a list of languages (RFC-5646 codes and names) that Amazon Translate supports.
|
default ListLanguagesPublisher |
listLanguagesPaginator(ListLanguagesRequest listLanguagesRequest)
Provides a list of languages (RFC-5646 codes and names) that Amazon Translate supports.
|
default CompletableFuture<ListParallelDataResponse> |
listParallelData(Consumer<ListParallelDataRequest.Builder> listParallelDataRequest)
Provides a list of your parallel data resources in Amazon Translate.
|
default CompletableFuture<ListParallelDataResponse> |
listParallelData(ListParallelDataRequest listParallelDataRequest)
Provides a list of your parallel data resources in Amazon Translate.
|
default ListParallelDataPublisher |
listParallelDataPaginator(Consumer<ListParallelDataRequest.Builder> listParallelDataRequest)
Provides a list of your parallel data resources in Amazon Translate.
|
default ListParallelDataPublisher |
listParallelDataPaginator(ListParallelDataRequest listParallelDataRequest)
Provides a list of your parallel data resources in Amazon Translate.
|
default CompletableFuture<ListTagsForResourceResponse> |
listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Lists all tags associated with a given Amazon Translate resource.
|
default CompletableFuture<ListTagsForResourceResponse> |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Lists all tags associated with a given Amazon Translate resource.
|
default CompletableFuture<ListTerminologiesResponse> |
listTerminologies()
Provides a list of custom terminologies associated with your account.
|
default CompletableFuture<ListTerminologiesResponse> |
listTerminologies(Consumer<ListTerminologiesRequest.Builder> listTerminologiesRequest)
Provides a list of custom terminologies associated with your account.
|
default CompletableFuture<ListTerminologiesResponse> |
listTerminologies(ListTerminologiesRequest listTerminologiesRequest)
Provides a list of custom terminologies associated with your account.
|
default ListTerminologiesPublisher |
listTerminologiesPaginator()
Provides a list of custom terminologies associated with your account.
|
default ListTerminologiesPublisher |
listTerminologiesPaginator(Consumer<ListTerminologiesRequest.Builder> listTerminologiesRequest)
Provides a list of custom terminologies associated with your account.
|
default ListTerminologiesPublisher |
listTerminologiesPaginator(ListTerminologiesRequest listTerminologiesRequest)
Provides a list of custom terminologies associated with your account.
|
default CompletableFuture<ListTextTranslationJobsResponse> |
listTextTranslationJobs(Consumer<ListTextTranslationJobsRequest.Builder> listTextTranslationJobsRequest)
Gets a list of the batch translation jobs that you have submitted.
|
default CompletableFuture<ListTextTranslationJobsResponse> |
listTextTranslationJobs(ListTextTranslationJobsRequest listTextTranslationJobsRequest)
Gets a list of the batch translation jobs that you have submitted.
|
default ListTextTranslationJobsPublisher |
listTextTranslationJobsPaginator(Consumer<ListTextTranslationJobsRequest.Builder> listTextTranslationJobsRequest)
Gets a list of the batch translation jobs that you have submitted.
|
default ListTextTranslationJobsPublisher |
listTextTranslationJobsPaginator(ListTextTranslationJobsRequest listTextTranslationJobsRequest)
Gets a list of the batch translation jobs that you have submitted.
|
default TranslateServiceClientConfiguration |
serviceClientConfiguration() |
default CompletableFuture<StartTextTranslationJobResponse> |
startTextTranslationJob(Consumer<StartTextTranslationJobRequest.Builder> startTextTranslationJobRequest)
Starts an asynchronous batch translation job.
|
default CompletableFuture<StartTextTranslationJobResponse> |
startTextTranslationJob(StartTextTranslationJobRequest startTextTranslationJobRequest)
Starts an asynchronous batch translation job.
|
default CompletableFuture<StopTextTranslationJobResponse> |
stopTextTranslationJob(Consumer<StopTextTranslationJobRequest.Builder> stopTextTranslationJobRequest)
Stops an asynchronous batch translation job that is in progress.
|
default CompletableFuture<StopTextTranslationJobResponse> |
stopTextTranslationJob(StopTextTranslationJobRequest stopTextTranslationJobRequest)
Stops an asynchronous batch translation job that is in progress.
|
default CompletableFuture<TagResourceResponse> |
tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Associates a specific tag with a resource.
|
default CompletableFuture<TagResourceResponse> |
tagResource(TagResourceRequest tagResourceRequest)
Associates a specific tag with a resource.
|
default CompletableFuture<TranslateDocumentResponse> |
translateDocument(Consumer<TranslateDocumentRequest.Builder> translateDocumentRequest)
Translates the input document from the source language to the target language.
|
default CompletableFuture<TranslateDocumentResponse> |
translateDocument(TranslateDocumentRequest translateDocumentRequest)
Translates the input document from the source language to the target language.
|
default CompletableFuture<TranslateTextResponse> |
translateText(Consumer<TranslateTextRequest.Builder> translateTextRequest)
Translates input text from the source language to the target language.
|
default CompletableFuture<TranslateTextResponse> |
translateText(TranslateTextRequest translateTextRequest)
Translates input text from the source language to the target language.
|
default CompletableFuture<UntagResourceResponse> |
untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Removes a specific tag associated with an Amazon Translate resource.
|
default CompletableFuture<UntagResourceResponse> |
untagResource(UntagResourceRequest untagResourceRequest)
Removes a specific tag associated with an Amazon Translate resource.
|
default CompletableFuture<UpdateParallelDataResponse> |
updateParallelData(Consumer<UpdateParallelDataRequest.Builder> updateParallelDataRequest)
Updates a previously created parallel data resource by importing a new input file from Amazon S3.
|
default CompletableFuture<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.default CompletableFuture<CreateParallelDataResponse> createParallelData(CreateParallelDataRequest createParallelDataRequest)
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 - default CompletableFuture<CreateParallelDataResponse> createParallelData(Consumer<CreateParallelDataRequest.Builder> createParallelDataRequest)
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.default CompletableFuture<DeleteParallelDataResponse> deleteParallelData(DeleteParallelDataRequest deleteParallelDataRequest)
Deletes a parallel data resource in Amazon Translate.
deleteParallelDataRequest - default CompletableFuture<DeleteParallelDataResponse> deleteParallelData(Consumer<DeleteParallelDataRequest.Builder> deleteParallelDataRequest)
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.default CompletableFuture<DeleteTerminologyResponse> deleteTerminology(DeleteTerminologyRequest deleteTerminologyRequest)
A synchronous action that deletes a custom terminology.
deleteTerminologyRequest - default CompletableFuture<DeleteTerminologyResponse> deleteTerminology(Consumer<DeleteTerminologyRequest.Builder> deleteTerminologyRequest)
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.default CompletableFuture<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.
describeTextTranslationJobRequest - default CompletableFuture<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.
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.default CompletableFuture<GetParallelDataResponse> getParallelData(GetParallelDataRequest getParallelDataRequest)
Provides information about a parallel data resource.
getParallelDataRequest - default CompletableFuture<GetParallelDataResponse> getParallelData(Consumer<GetParallelDataRequest.Builder> getParallelDataRequest)
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.default CompletableFuture<GetTerminologyResponse> getTerminology(GetTerminologyRequest getTerminologyRequest)
Retrieves a custom terminology.
getTerminologyRequest - default CompletableFuture<GetTerminologyResponse> getTerminology(Consumer<GetTerminologyRequest.Builder> getTerminologyRequest)
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.default CompletableFuture<ImportTerminologyResponse> importTerminology(ImportTerminologyRequest importTerminologyRequest)
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.
importTerminologyRequest - default CompletableFuture<ImportTerminologyResponse> importTerminology(Consumer<ImportTerminologyRequest.Builder> importTerminologyRequest)
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 via ImportTerminologyRequest.builder()
importTerminologyRequest - A Consumer that will call methods on
ImportTerminologyRequest.Builder to create a
request.default CompletableFuture<ListLanguagesResponse> listLanguages(ListLanguagesRequest listLanguagesRequest)
Provides a list of languages (RFC-5646 codes and names) that Amazon Translate supports.
listLanguagesRequest - default CompletableFuture<ListLanguagesResponse> listLanguages(Consumer<ListLanguagesRequest.Builder> listLanguagesRequest)
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 via ListLanguagesRequest.builder()
listLanguagesRequest - A Consumer that will call methods on
ListLanguagesRequest.Builder to create a request.default ListLanguagesPublisher listLanguagesPaginator(ListLanguagesRequest listLanguagesRequest)
Provides a list of languages (RFC-5646 codes and names) that Amazon Translate supports.
This is a variant of listLanguages(software.amazon.awssdk.services.translate.model.ListLanguagesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.translate.paginators.ListLanguagesPublisher publisher = client.listLanguagesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.translate.paginators.ListLanguagesPublisher publisher = client.listLanguagesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.translate.model.ListLanguagesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.translate.model.ListLanguagesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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.
listLanguagesRequest - default ListLanguagesPublisher listLanguagesPaginator(Consumer<ListLanguagesRequest.Builder> listLanguagesRequest)
Provides a list of languages (RFC-5646 codes and names) that Amazon Translate supports.
This is a variant of listLanguages(software.amazon.awssdk.services.translate.model.ListLanguagesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.translate.paginators.ListLanguagesPublisher publisher = client.listLanguagesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.translate.paginators.ListLanguagesPublisher publisher = client.listLanguagesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.translate.model.ListLanguagesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.translate.model.ListLanguagesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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 via ListLanguagesRequest.builder()
listLanguagesRequest - A Consumer that will call methods on
ListLanguagesRequest.Builder to create a request.default CompletableFuture<ListParallelDataResponse> listParallelData(ListParallelDataRequest listParallelDataRequest)
Provides a list of your parallel data resources in Amazon Translate.
listParallelDataRequest - default CompletableFuture<ListParallelDataResponse> listParallelData(Consumer<ListParallelDataRequest.Builder> listParallelDataRequest)
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.default ListParallelDataPublisher listParallelDataPaginator(ListParallelDataRequest listParallelDataRequest)
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 publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.translate.paginators.ListParallelDataPublisher publisher = client.listParallelDataPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.translate.paginators.ListParallelDataPublisher publisher = client.listParallelDataPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.translate.model.ListParallelDataResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.translate.model.ListParallelDataResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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 - default ListParallelDataPublisher listParallelDataPaginator(Consumer<ListParallelDataRequest.Builder> listParallelDataRequest)
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 publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.translate.paginators.ListParallelDataPublisher publisher = client.listParallelDataPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.translate.paginators.ListParallelDataPublisher publisher = client.listParallelDataPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.translate.model.ListParallelDataResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.translate.model.ListParallelDataResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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.default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Lists all tags associated with a given Amazon Translate resource. For more information, see Tagging your resources.
listTagsForResourceRequest - default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
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 via ListTagsForResourceRequest.builder()
listTagsForResourceRequest - A Consumer that will call methods on
ListTagsForResourceRequest.Builder to create a
request.default CompletableFuture<ListTerminologiesResponse> listTerminologies(ListTerminologiesRequest listTerminologiesRequest)
Provides a list of custom terminologies associated with your account.
listTerminologiesRequest - default CompletableFuture<ListTerminologiesResponse> listTerminologies(Consumer<ListTerminologiesRequest.Builder> listTerminologiesRequest)
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.default CompletableFuture<ListTerminologiesResponse> listTerminologies()
Provides a list of custom terminologies associated with your account.
default ListTerminologiesPublisher listTerminologiesPaginator()
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 publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.translate.paginators.ListTerminologiesPublisher publisher = client.listTerminologiesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.translate.paginators.ListTerminologiesPublisher publisher = client.listTerminologiesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.translate.model.ListTerminologiesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.translate.model.ListTerminologiesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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.
default ListTerminologiesPublisher listTerminologiesPaginator(ListTerminologiesRequest listTerminologiesRequest)
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 publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.translate.paginators.ListTerminologiesPublisher publisher = client.listTerminologiesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.translate.paginators.ListTerminologiesPublisher publisher = client.listTerminologiesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.translate.model.ListTerminologiesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.translate.model.ListTerminologiesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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 - default ListTerminologiesPublisher listTerminologiesPaginator(Consumer<ListTerminologiesRequest.Builder> listTerminologiesRequest)
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 publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.translate.paginators.ListTerminologiesPublisher publisher = client.listTerminologiesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.translate.paginators.ListTerminologiesPublisher publisher = client.listTerminologiesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.translate.model.ListTerminologiesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.translate.model.ListTerminologiesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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.default CompletableFuture<ListTextTranslationJobsResponse> listTextTranslationJobs(ListTextTranslationJobsRequest listTextTranslationJobsRequest)
Gets a list of the batch translation jobs that you have submitted.
listTextTranslationJobsRequest - default CompletableFuture<ListTextTranslationJobsResponse> listTextTranslationJobs(Consumer<ListTextTranslationJobsRequest.Builder> listTextTranslationJobsRequest)
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.default ListTextTranslationJobsPublisher listTextTranslationJobsPaginator(ListTextTranslationJobsRequest listTextTranslationJobsRequest)
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 publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.translate.paginators.ListTextTranslationJobsPublisher publisher = client.listTextTranslationJobsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.translate.paginators.ListTextTranslationJobsPublisher publisher = client.listTextTranslationJobsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.translate.model.ListTextTranslationJobsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.translate.model.ListTextTranslationJobsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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 - default ListTextTranslationJobsPublisher listTextTranslationJobsPaginator(Consumer<ListTextTranslationJobsRequest.Builder> listTextTranslationJobsRequest)
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 publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.translate.paginators.ListTextTranslationJobsPublisher publisher = client.listTextTranslationJobsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.translate.paginators.ListTextTranslationJobsPublisher publisher = client.listTextTranslationJobsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.translate.model.ListTextTranslationJobsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.translate.model.ListTextTranslationJobsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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.default CompletableFuture<StartTextTranslationJobResponse> startTextTranslationJob(StartTextTranslationJobRequest startTextTranslationJobRequest)
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.
startTextTranslationJobRequest - default CompletableFuture<StartTextTranslationJobResponse> startTextTranslationJob(Consumer<StartTextTranslationJobRequest.Builder> startTextTranslationJobRequest)
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 via StartTextTranslationJobRequest.builder()
startTextTranslationJobRequest - A Consumer that will call methods on
StartTextTranslationJobRequest.Builder to create a
request.default CompletableFuture<StopTextTranslationJobResponse> stopTextTranslationJob(StopTextTranslationJobRequest stopTextTranslationJobRequest)
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 - default CompletableFuture<StopTextTranslationJobResponse> stopTextTranslationJob(Consumer<StopTextTranslationJobRequest.Builder> stopTextTranslationJobRequest)
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.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)
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.
tagResourceRequest - default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
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 via TagResourceRequest.builder()
tagResourceRequest - A Consumer that will call methods on
TagResourceRequest.Builder to create a request.default CompletableFuture<TranslateDocumentResponse> translateDocument(TranslateDocumentRequest translateDocumentRequest)
Translates the input document from the source language to the target language. This synchronous operation
supports plain text or HTML for 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).
TranslateDocument does not support language auto-detection.
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.
translateDocumentRequest - default CompletableFuture<TranslateDocumentResponse> translateDocument(Consumer<TranslateDocumentRequest.Builder> translateDocumentRequest)
Translates the input document from the source language to the target language. This synchronous operation
supports plain text or HTML for 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).
TranslateDocument does not support language auto-detection.
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 via TranslateDocumentRequest.builder()
translateDocumentRequest - A Consumer that will call methods on
TranslateDocumentRequest.Builder to create a
request.default CompletableFuture<TranslateTextResponse> translateText(TranslateTextRequest translateTextRequest)
Translates input text from the source language to the target language. For a list of available languages and language codes, see Supported languages.
translateTextRequest - default CompletableFuture<TranslateTextResponse> translateText(Consumer<TranslateTextRequest.Builder> translateTextRequest)
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 via TranslateTextRequest.builder()
translateTextRequest - A Consumer that will call methods on
TranslateTextRequest.Builder to create a request.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)
Removes a specific tag associated with an Amazon Translate resource. For more information, see Tagging your resources.
untagResourceRequest - default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
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 via UntagResourceRequest.builder()
untagResourceRequest - A Consumer that will call methods on
UntagResourceRequest.Builder to create a request.default CompletableFuture<UpdateParallelDataResponse> updateParallelData(UpdateParallelDataRequest updateParallelDataRequest)
Updates a previously created parallel data resource by importing a new input file from Amazon S3.
updateParallelDataRequest - default CompletableFuture<UpdateParallelDataResponse> updateParallelData(Consumer<UpdateParallelDataRequest.Builder> updateParallelDataRequest)
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.default TranslateServiceClientConfiguration serviceClientConfiguration()
serviceClientConfiguration in interface AwsClientserviceClientConfiguration in interface SdkClientstatic TranslateAsyncClient create()
TranslateAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static TranslateAsyncClientBuilder builder()
TranslateAsyncClient.Copyright © 2023. All rights reserved.