@Generated(value="software.amazon.awssdk:codegen") public interface TranslateAsyncClient extends SdkClient
builder()
method.
Provides translation between English and one of six languages, or between one of the six languages and English.
| Modifier and Type | Field and Description |
|---|---|
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<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.
|
serviceNameclosestatic final String SERVICE_NAME
static TranslateAsyncClient create()
TranslateAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static TranslateAsyncClientBuilder builder()
TranslateAsyncClient.default CompletableFuture<TranslateTextResponse> translateText(TranslateTextRequest translateTextRequest)
Translates input text from the source language to the target language. You can translate between English (en) and one of the following languages, or between one of the following languages and English.
Arabic (ar)
Chinese (Simplified) (zh)
French (fr)
German (de)
Portuguese (pt)
Spanish (es)
To have Amazon Translate determine the source language of your text, you can specify auto in the
SourceLanguageCode field. If you specify auto, Amazon Translate will call Amazon
Comprehend to determine the source language.
translateTextRequest - Text field. Try again with a shorter text.default CompletableFuture<TranslateTextResponse> translateText(Consumer<TranslateTextRequest.Builder> translateTextRequest)
Translates input text from the source language to the target language. You can translate between English (en) and one of the following languages, or between one of the following languages and English.
Arabic (ar)
Chinese (Simplified) (zh)
French (fr)
German (de)
Portuguese (pt)
Spanish (es)
To have Amazon Translate determine the source language of your text, you can specify auto in the
SourceLanguageCode field. If you specify auto, Amazon Translate will call Amazon
Comprehend to determine the source language.
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.Text field. Try again with a shorter text.Copyright © 2018. All rights reserved.