diff --git a/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/AmazonTranslate.java b/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/AmazonTranslate.java index dd3d443348d..571fdf16262 100644 --- a/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/AmazonTranslate.java +++ b/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/AmazonTranslate.java @@ -495,14 +495,11 @@ TagResourceResult tagResource(TagResourceRequest tagResourceRequest) /** *
* 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.
+ * 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
* Translates the input document from the source language to the target
- * language. This synchronous operation supports plain text or HTML for the
- * input document.
- *
* If you set the
* Translates the input document from the source language to the target
- * language. This synchronous operation supports plain text or HTML for the
- * input document.
- *
* If you set the
* Translates the input document from the source language to the target
- * language. This synchronous operation supports plain text or HTML for the
- * input document.
- *
* If you set the
* Translates the input document from the source language to the target
- * language. This synchronous operation supports plain text or HTML for the
- * input document.
- *
* If you set the
* Translates the input document from the source language to the target
- * language. This synchronous operation supports plain text or HTML for the
- * input document.
- *
* If you set the
- * text/html - The input data consists of HTML content. Amazon Translate
- * translates only the text in the HTML element.
+ *
- * text/plain - The input data consists of unformatted text. Amazon
- * Translate translates every character in the content.
+ *
+ *
- * text/html - The input data consists of HTML content. Amazon Translate
- * translates only the text in the HTML element.
+ *
+ *
- * text/plain - The input data consists of unformatted text. Amazon
- * Translate translates every character in the content.
+ *
- * text/html - The input data consists of HTML content. Amazon
- * Translate translates only the text in the HTML element.
+ *
- * text/plain - The input data consists of unformatted text. Amazon
- * Translate translates every character in the content.
+ *
+ *
- * text/html - The input data consists of HTML content. Amazon Translate
- * translates only the text in the HTML element.
+ *
+ *
- * text/plain - The input data consists of unformatted text. Amazon
- * Translate translates every character in the content.
+ *
- * text/html - The input data consists of HTML content. Amazon
- * Translate translates only the text in the HTML element.
+ *
- * text/plain - The input data consists of unformatted text.
- * Amazon Translate translates every character in the content.
+ *
+ *
- * text/html - The input data consists of HTML content. Amazon Translate
- * translates only the text in the HTML element.
+ *
+ *
- * text/plain - The input data consists of unformatted text. Amazon
- * Translate translates every character in the content.
+ *
- * text/html - The input data consists of HTML content. Amazon
- * Translate translates only the text in the HTML element.
+ *
+ *
- * text/plain - The input data consists of unformatted text.
- * Amazon Translate translates every character in the content.
+ *
- * Settings to configure your translation output, including the option to
- * set the formality level of the output text and the option to mask profane
- * words and phrases.
+ * Settings to configure your translation output. You can configure the
+ * following options:
*
+ * Brevity: not supported.
+ *
+ * Formality: sets the formality level of the output text.
+ *
+ * Profanity: masks profane words and phrases in your translation output.
+ *
- * Settings to configure your translation output, including the option to
- * set the formality level of the output text and the option to mask profane
- * words and phrases.
+ * Settings to configure your translation output. You can configure the
+ * following options:
*
+ * Brevity: not supported.
+ *
+ * Formality: sets the formality level of the output text.
+ *
+ * Profanity: masks profane words and phrases in your translation output.
+ *
- * Settings to configure your translation output, including the
- * option to set the formality level of the output text and the
- * option to mask profane words and phrases.
+ * Settings to configure your translation output. You can configure
+ * the following options:
+ *
+ * Brevity: not supported.
+ *
+ * Formality: sets the formality level of the output text.
*
+ * Profanity: masks profane words and phrases in your translation
+ * output.
+ *
- * Settings to configure your translation output, including the option to
- * set the formality level of the output text and the option to mask profane
- * words and phrases.
+ * Settings to configure your translation output. You can configure the
+ * following options:
+ *
+ * Brevity: not supported.
+ *
+ * Formality: sets the formality level of the output text.
+ *
+ * Profanity: masks profane words and phrases in your translation output.
*
- * Settings to configure your translation output, including the
- * option to set the formality level of the output text and the
- * option to mask profane words and phrases.
+ * Settings to configure your translation output. You can
+ * configure the following options:
*
+ * Brevity: not supported.
+ *
+ * Formality: sets the formality level of the output text.
+ *
+ * Profanity: masks profane words and phrases in your translation
+ * output.
+ *
- * Settings to configure your translation output, including the option to
- * set the formality level of the output text and the option to mask profane
- * words and phrases.
+ * Settings to configure your translation output. You can configure the
+ * following options:
+ *
+ * Brevity: not supported.
*
+ * Formality: sets the formality level of the output text.
+ *
+ * Profanity: masks profane words and phrases in your translation output.
+ *
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param settings
- * Settings to configure your translation output, including the
- * option to set the formality level of the output text and the
- * option to mask profane words and phrases.
+ * Settings to configure your translation output. You can
+ * configure the following options:
+ *
+ * Brevity: not supported.
+ *
+ * Formality: sets the formality level of the output text.
+ *
+ * Profanity: masks profane words and phrases in your translation
+ * output.
*
* Translates the input document from the source language to the target
- * language. This synchronous operation supports plain text or HTML for the
- * input document.
- *
* If you set the
+ * To have Amazon Translate determine the source language of your text, you
+ * can specify
+ * If you specify
* Constraints:
- * Settings to configure your translation output, including the option to
- * set the formality level of the output text and the option to mask profane
- * words and phrases.
+ * Settings to configure your translation output. You can configure the
+ * following options:
+ *
+ * Brevity: not supported.
+ *
+ * Formality: sets the formality level of the output text.
+ *
+ * Profanity: masks profane words and phrases in your translation output.
*
- * The language code for the language of the source text. Do not use
- *
+ * To have Amazon Translate determine the source language of your text, you
+ * can specify
+ * If you specify
* Constraints:
- * The language code for the language of the source text. Do not use
- *
+ * To have Amazon Translate determine the source language of your
+ * text, you can specify
+ * If you specify
- * The language code for the language of the source text. Do not use
- *
+ * To have Amazon Translate determine the source language of your text, you
+ * can specify
+ * If you specify
* Constraints:
- * The language code for the language of the source text. Do not
- * use
+ * To have Amazon Translate determine the source language of your
+ * text, you can specify
+ * If you specify
- * The language code for the language of the source text. Do not use
- *
+ * To have Amazon Translate determine the source language of your text, you
+ * can specify
+ * If you specify
* Returns a reference to this object so that method calls can be chained
* together.
*
@@ -402,13 +499,27 @@ public void setSourceLanguageCode(String sourceLanguageCode) {
* Length: 2 - 5
- * The language code for the language of the source text. Do not
- * use
+ * To have Amazon Translate determine the source language of your
+ * text, you can specify
+ * If you specify
- * Settings to configure your translation output, including the option to
- * set the formality level of the output text and the option to mask profane
- * words and phrases.
+ * Settings to configure your translation output. You can configure the
+ * following options:
+ *
+ * Brevity: not supported.
*
+ * Formality: sets the formality level of the output text.
+ *
+ * Profanity: masks profane words and phrases in your translation output.
+ *
- * Settings to configure your translation output, including the
- * option to set the formality level of the output text and the
- * option to mask profane words and phrases.
+ * Settings to configure your translation output. You can configure
+ * the following options:
+ *
+ * Brevity: not supported.
+ *
+ * Formality: sets the formality level of the output text.
+ *
+ * Profanity: masks profane words and phrases in your translation
+ * output.
*
- * Settings to configure your translation output, including the option to
- * set the formality level of the output text and the option to mask profane
- * words and phrases.
+ * Settings to configure your translation output. You can configure the
+ * following options:
*
+ * Brevity: not supported.
+ *
+ * Formality: sets the formality level of the output text.
+ *
+ * Profanity: masks profane words and phrases in your translation output.
+ *
- * Settings to configure your translation output, including the
- * option to set the formality level of the output text and the
- * option to mask profane words and phrases.
+ * Settings to configure your translation output. You can
+ * configure the following options:
+ *
+ * Brevity: not supported.
+ *
+ * Formality: sets the formality level of the output text.
*
+ * Profanity: masks profane words and phrases in your translation
+ * output.
+ *
- * Settings to configure your translation output, including the option to
- * set the formality level of the output text and the option to mask profane
- * words and phrases.
+ * Settings to configure your translation output. You can configure the
+ * following options:
*
+ * Brevity: not supported.
+ *
+ * Formality: sets the formality level of the output text.
+ *
+ * Profanity: masks profane words and phrases in your translation output.
+ *
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param settings
- * Settings to configure your translation output, including the
- * option to set the formality level of the output text and the
- * option to mask profane words and phrases.
+ * Settings to configure your translation output. You can
+ * configure the following options:
+ *
+ * Brevity: not supported.
+ *
+ * Formality: sets the formality level of the output text.
+ *
+ * Profanity: masks profane words and phrases in your translation
+ * output.
*
- * Settings to configure your translation output, including the option to
- * set the formality level of the output text and the option to mask profane
- * words and phrases.
+ * Settings to configure your translation output. You can configure the
+ * following options:
*
+ * Brevity: reduces the length of the translation output for most
+ * translations. Available for
+ * Formality: sets the formality level of the translation output.
+ *
+ * Profanity: masks profane words and phrases in the translation output.
+ *
- * Settings to configure your translation output, including the option to
- * set the formality level of the output text and the option to mask profane
- * words and phrases.
+ * Settings to configure your translation output. You can configure the
+ * following options:
+ *
+ * Brevity: reduces the length of the translation output for most
+ * translations. Available for
+ * Formality: sets the formality level of the translation output.
+ *
+ * Profanity: masks profane words and phrases in the translation output.
+ *
- * Settings to configure your translation output, including the
- * option to set the formality level of the output text and the
- * option to mask profane words and phrases.
+ * Settings to configure your translation output. You can configure
+ * the following options:
+ *
+ * Brevity: reduces the length of the translation output for most
+ * translations. Available for
+ * Formality: sets the formality level of the translation output.
+ *
+ * Profanity: masks profane words and phrases in the translation
+ * output.
+ *
- * Settings to configure your translation output, including the option to
- * set the formality level of the output text and the option to mask profane
- * words and phrases.
+ * Settings to configure your translation output. You can configure the
+ * following options:
+ *
+ * Brevity: reduces the length of the translation output for most
+ * translations. Available for
+ * Formality: sets the formality level of the translation output.
+ *
+ * Profanity: masks profane words and phrases in the translation output.
+ *
- * Settings to configure your translation output, including the
- * option to set the formality level of the output text and the
- * option to mask profane words and phrases.
+ * Settings to configure your translation output. You can
+ * configure the following options:
*
+ * Brevity: reduces the length of the translation output for most
+ * translations. Available for
+ * Formality: sets the formality level of the translation output.
+ *
+ * Profanity: masks profane words and phrases in the translation
+ * output.
+ *
- * Settings to configure your translation output, including the option to
- * set the formality level of the output text and the option to mask profane
- * words and phrases.
+ * Settings to configure your translation output. You can configure the
+ * following options:
+ *
+ * Brevity: reduces the length of the translation output for most
+ * translations. Available for
+ * Formality: sets the formality level of the translation output.
+ *
+ * Profanity: masks profane words and phrases in the translation output.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param appliedSettings
- * Settings to configure your translation output, including the
- * option to set the formality level of the output text and the
- * option to mask profane words and phrases.
+ * Settings to configure your translation output. You can
+ * configure the following options:
+ *
+ * Brevity: reduces the length of the translation output for most
+ * translations. Available for
+ * Formality: sets the formality level of the translation output.
+ *
+ * Profanity: masks profane words and phrases in the translation
+ * output.
*
- * Settings to configure your translation output, including the option to
- * set the formality level of the output text and the option to mask profane
- * words and phrases.
+ * Settings to configure your translation output. You can configure the
+ * following options:
*
+ * Brevity: reduces the length of the translated output for most
+ * translations.
+ *
+ * Formality: sets the formality level of the output text.
+ *
+ * Profanity: masks profane words and phrases in your translation output.
+ *
- * Settings to configure your translation output, including the option to
- * set the formality level of the output text and the option to mask profane
- * words and phrases.
+ * Settings to configure your translation output. You can configure the
+ * following options:
*
+ * Brevity: reduces the length of the translated output for most
+ * translations.
+ *
+ * Formality: sets the formality level of the output text.
+ *
+ * Profanity: masks profane words and phrases in your translation output.
+ *
- * Settings to configure your translation output, including the
- * option to set the formality level of the output text and the
- * option to mask profane words and phrases.
+ * Settings to configure your translation output. You can configure
+ * the following options:
+ *
+ * Brevity: reduces the length of the translated output for most
+ * translations.
+ *
+ * Formality: sets the formality level of the output text.
*
+ * Profanity: masks profane words and phrases in your translation
+ * output.
+ *
- * Settings to configure your translation output, including the option to
- * set the formality level of the output text and the option to mask profane
- * words and phrases.
+ * Settings to configure your translation output. You can configure the
+ * following options:
+ *
+ * Brevity: reduces the length of the translated output for most
+ * translations.
+ *
+ * Formality: sets the formality level of the output text.
+ *
+ * Profanity: masks profane words and phrases in your translation output.
*
- * Settings to configure your translation output, including the
- * option to set the formality level of the output text and the
- * option to mask profane words and phrases.
+ * Settings to configure your translation output. You can
+ * configure the following options:
*
+ * Brevity: reduces the length of the translated output for most
+ * translations.
+ *
+ * Formality: sets the formality level of the output text.
+ *
+ * Profanity: masks profane words and phrases in your translation
+ * output.
+ *
- * Settings to configure your translation output, including the option to
- * set the formality level of the output text and the option to mask profane
- * words and phrases.
+ * Settings to configure your translation output. You can configure the
+ * following options:
+ *
+ * Brevity: reduces the length of the translated output for most
+ * translations.
*
+ * Formality: sets the formality level of the output text.
+ *
+ * Profanity: masks profane words and phrases in your translation output.
+ *
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param settings
- * Settings to configure your translation output, including the
- * option to set the formality level of the output text and the
- * option to mask profane words and phrases.
+ * Settings to configure your translation output. You can
+ * configure the following options:
+ *
+ * Brevity: reduces the length of the translated output for most
+ * translations.
+ *
+ * Formality: sets the formality level of the output text.
+ *
+ * Profanity: masks profane words and phrases in your translation
+ * output.
*
- * Settings to configure your translation output, including the option to set
- * the formality level of the output text and the option to mask profane words
- * and phrases.
+ * Settings to configure your translation output. You can configure the
+ * following options:
*
+ * Brevity: reduces the length of the translation output for most translations.
+ * Available for
+ * Formality: sets the formality level of the translation output.
+ *
+ * Profanity: masks profane words and phrases in the translation output.
+ *
- * You can optionally specify the desired level of formality for
- * translations to supported target languages. The formality setting
- * controls the level of formal language usage (also known as register) in the translation output. You can set the value to
* informal or formal. If you don't specify a value for formality, or if the
@@ -53,8 +70,8 @@ public class TranslationSettings implements Serializable {
/**
*
- * Enable the profanity setting if you want Amazon Translate to mask profane
- * words and phrases in your translation output.
+ * You can enable the profanity setting if you want to mask profane words
+ * and phrases in your translation output.
*
* To mask profane words and phrases, Amazon Translate replaces them with
@@ -82,9 +99,31 @@ public class TranslationSettings implements Serializable {
/**
*
- * You can optionally specify the desired level of formality for
- * translations to supported target languages. The formality setting
- * controls the level of formal language usage (also known as
+ *
+ * If you turn on brevity for a translation request with an unsupported
+ * language pair, the translation proceeds with the brevity setting turned
+ * off.
+ *
+ * For the language pairs that brevity supports, see Using brevity in the Amazon Translate Developer Guide.
+ *
+ * Constraints:
+ * You can specify the desired level of formality for translations to
+ * supported target languages. The formality setting controls the level of
+ * formal language usage (also known as register) in the translation output. You can set the value to
* informal or formal. If you don't specify a value for formality, or if the
@@ -105,14 +144,14 @@ public class TranslationSettings implements Serializable {
* Allowed Values: FORMAL, INFORMAL
*
* @return
- * You can optionally specify the desired level of formality for
- * translations to supported target languages. The formality setting
- * controls the level of formal language usage (also known as
- * register) in the translation output. You can set the value to
- * informal or formal. If you don't specify a value for formality,
- * or if the target language doesn't support formality, the
- * translation will ignore the formality setting.
+ * You can specify the desired level of formality for translations
+ * to supported target languages. The formality setting controls the
+ * level of formal language usage (also known as register) in the translation output. You can set the value
+ * to informal or formal. If you don't specify a value for
+ * formality, or if the target language doesn't support formality,
+ * the translation will ignore the formality setting.
*
* If you specify multiple target languages for the job, translate
@@ -133,9 +172,9 @@ public String getFormality() {
/**
*
- * You can optionally specify the desired level of formality for
- * translations to supported target languages. The formality setting
- * controls the level of formal language usage (also known as register) in the translation output. You can set the value to
* informal or formal. If you don't specify a value for formality, or if the
@@ -156,7 +195,7 @@ public String getFormality() {
* Allowed Values: FORMAL, INFORMAL
*
* @param formality
- * You can optionally specify the desired level of formality for
+ * You can specify the desired level of formality for
* translations to supported target languages. The formality
* setting controls the level of formal language usage (also
* known as
- * You can optionally specify the desired level of formality for
- * translations to supported target languages. The formality setting
- * controls the level of formal language usage (also known as register) in the translation output. You can set the value to
* informal or formal. If you don't specify a value for formality, or if the
@@ -212,7 +251,7 @@ public void setFormality(String formality) {
* Allowed Values: FORMAL, INFORMAL
*
* @param formality
- * You can optionally specify the desired level of formality for
+ * You can specify the desired level of formality for
* translations to supported target languages. The formality
* setting controls the level of formal language usage (also
* known as
- * You can optionally specify the desired level of formality for
- * translations to supported target languages. The formality setting
- * controls the level of formal language usage (also known as register) in the translation output. You can set the value to
* informal or formal. If you don't specify a value for formality, or if the
@@ -268,7 +307,7 @@ public TranslationSettings withFormality(String formality) {
* Allowed Values: FORMAL, INFORMAL
*
* @param formality
- * You can optionally specify the desired level of formality for
+ * You can specify the desired level of formality for
* translations to supported target languages. The formality
* setting controls the level of formal language usage (also
* known as
- * You can optionally specify the desired level of formality for
- * translations to supported target languages. The formality setting
- * controls the level of formal language usage (also known as register) in the translation output. You can set the value to
* informal or formal. If you don't specify a value for formality, or if the
@@ -324,7 +363,7 @@ public void setFormality(Formality formality) {
* Allowed Values: FORMAL, INFORMAL
*
* @param formality
- * You can optionally specify the desired level of formality for
+ * You can specify the desired level of formality for
* translations to supported target languages. The formality
* setting controls the level of formal language usage (also
* known as
- * Enable the profanity setting if you want Amazon Translate to mask profane
- * words and phrases in your translation output.
+ * You can enable the profanity setting if you want to mask profane words
+ * and phrases in your translation output.
*
* To mask profane words and phrases, Amazon Translate replaces them with
@@ -383,8 +422,8 @@ public TranslationSettings withFormality(Formality formality) {
* Allowed Values: MASK
*
* @return
- * Enable the profanity setting if you want Amazon Translate to mask
- * profane words and phrases in your translation output.
+ * You can enable the profanity setting if you want to mask profane
+ * words and phrases in your translation output.
*
* To mask profane words and phrases, Amazon Translate replaces them
@@ -414,8 +453,8 @@ public String getProfanity() {
/**
*
- * Enable the profanity setting if you want Amazon Translate to mask profane
- * words and phrases in your translation output.
+ * You can enable the profanity setting if you want to mask profane words
+ * and phrases in your translation output.
*
* To mask profane words and phrases, Amazon Translate replaces them with
@@ -440,8 +479,8 @@ public String getProfanity() {
* Allowed Values: MASK
*
* @param profanity
- * Enable the profanity setting if you want Amazon Translate to
- * mask profane words and phrases in your translation output.
+ * You can enable the profanity setting if you want to mask
+ * profane words and phrases in your translation output.
*
* To mask profane words and phrases, Amazon Translate replaces
@@ -471,8 +510,8 @@ public void setProfanity(String profanity) {
/**
*
- * Enable the profanity setting if you want Amazon Translate to mask profane
- * words and phrases in your translation output.
+ * You can enable the profanity setting if you want to mask profane words
+ * and phrases in your translation output.
*
* To mask profane words and phrases, Amazon Translate replaces them with
@@ -500,8 +539,8 @@ public void setProfanity(String profanity) {
* Allowed Values: MASK
*
* @param profanity
- * Enable the profanity setting if you want Amazon Translate to
- * mask profane words and phrases in your translation output.
+ * You can enable the profanity setting if you want to mask
+ * profane words and phrases in your translation output.
*
* To mask profane words and phrases, Amazon Translate replaces
@@ -534,8 +573,8 @@ public TranslationSettings withProfanity(String profanity) {
/**
*
- * Enable the profanity setting if you want Amazon Translate to mask profane
- * words and phrases in your translation output.
+ * You can enable the profanity setting if you want to mask profane words
+ * and phrases in your translation output.
*
* To mask profane words and phrases, Amazon Translate replaces them with
@@ -560,8 +599,8 @@ public TranslationSettings withProfanity(String profanity) {
* Allowed Values: MASK
*
* @param profanity
- * Enable the profanity setting if you want Amazon Translate to
- * mask profane words and phrases in your translation output.
+ * You can enable the profanity setting if you want to mask
+ * profane words and phrases in your translation output.
*
* To mask profane words and phrases, Amazon Translate replaces
@@ -591,8 +630,8 @@ public void setProfanity(Profanity profanity) {
/**
*
- * Enable the profanity setting if you want Amazon Translate to mask profane
- * words and phrases in your translation output.
+ * You can enable the profanity setting if you want to mask profane words
+ * and phrases in your translation output.
*
* To mask profane words and phrases, Amazon Translate replaces them with
@@ -620,8 +659,8 @@ public void setProfanity(Profanity profanity) {
* Allowed Values: MASK
*
* @param profanity
- * Enable the profanity setting if you want Amazon Translate to
- * mask profane words and phrases in your translation output.
+ * You can enable the profanity setting if you want to mask
+ * profane words and phrases in your translation output.
*
* To mask profane words and phrases, Amazon Translate replaces
@@ -652,6 +691,228 @@ public TranslationSettings withProfanity(Profanity profanity) {
return this;
}
+ /**
+ *
+ * When you turn on brevity, Amazon Translate reduces the length of the
+ * translation output for most translations (when compared with the same
+ * translation with brevity turned off). By default, brevity is turned off.
+ *
+ * If you turn on brevity for a translation request with an unsupported
+ * language pair, the translation proceeds with the brevity setting turned
+ * off.
+ *
+ * For the language pairs that brevity supports, see Using brevity in the Amazon Translate Developer Guide.
+ *
+ * Constraints:
+ * When you turn on brevity, Amazon Translate reduces the length of
+ * the translation output for most translations (when compared with
+ * the same translation with brevity turned off). By default,
+ * brevity is turned off.
+ *
+ * If you turn on brevity for a translation request with an
+ * unsupported language pair, the translation proceeds with the
+ * brevity setting turned off.
+ *
+ * For the language pairs that brevity supports, see Using brevity in the Amazon Translate Developer Guide.
+ *
+ * When you turn on brevity, Amazon Translate reduces the length of the
+ * translation output for most translations (when compared with the same
+ * translation with brevity turned off). By default, brevity is turned off.
+ *
+ * If you turn on brevity for a translation request with an unsupported
+ * language pair, the translation proceeds with the brevity setting turned
+ * off.
+ *
+ * For the language pairs that brevity supports, see Using brevity in the Amazon Translate Developer Guide.
+ *
+ * Constraints:
+ * When you turn on brevity, Amazon Translate reduces the length
+ * of the translation output for most translations (when compared
+ * with the same translation with brevity turned off). By
+ * default, brevity is turned off.
+ *
+ * If you turn on brevity for a translation request with an
+ * unsupported language pair, the translation proceeds with the
+ * brevity setting turned off.
+ *
+ * For the language pairs that brevity supports, see Using brevity in the Amazon Translate Developer Guide.
+ *
+ * When you turn on brevity, Amazon Translate reduces the length of the
+ * translation output for most translations (when compared with the same
+ * translation with brevity turned off). By default, brevity is turned off.
+ *
+ * If you turn on brevity for a translation request with an unsupported
+ * language pair, the translation proceeds with the brevity setting turned
+ * off.
+ *
+ * For the language pairs that brevity supports, see Using brevity in the Amazon Translate Developer Guide.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * When you turn on brevity, Amazon Translate reduces the length
+ * of the translation output for most translations (when compared
+ * with the same translation with brevity turned off). By
+ * default, brevity is turned off.
+ *
+ * If you turn on brevity for a translation request with an
+ * unsupported language pair, the translation proceeds with the
+ * brevity setting turned off.
+ *
+ * For the language pairs that brevity supports, see Using brevity in the Amazon Translate Developer Guide.
+ *
+ * When you turn on brevity, Amazon Translate reduces the length of the
+ * translation output for most translations (when compared with the same
+ * translation with brevity turned off). By default, brevity is turned off.
+ *
+ * If you turn on brevity for a translation request with an unsupported
+ * language pair, the translation proceeds with the brevity setting turned
+ * off.
+ *
+ * For the language pairs that brevity supports, see Using brevity in the Amazon Translate Developer Guide.
+ *
+ * Constraints:
+ * When you turn on brevity, Amazon Translate reduces the length
+ * of the translation output for most translations (when compared
+ * with the same translation with brevity turned off). By
+ * default, brevity is turned off.
+ *
+ * If you turn on brevity for a translation request with an
+ * unsupported language pair, the translation proceeds with the
+ * brevity setting turned off.
+ *
+ * For the language pairs that brevity supports, see Using brevity in the Amazon Translate Developer Guide.
+ *
+ * When you turn on brevity, Amazon Translate reduces the length of the
+ * translation output for most translations (when compared with the same
+ * translation with brevity turned off). By default, brevity is turned off.
+ *
+ * If you turn on brevity for a translation request with an unsupported
+ * language pair, the translation proceeds with the brevity setting turned
+ * off.
+ *
+ * For the language pairs that brevity supports, see Using brevity in the Amazon Translate Developer Guide.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * Constraints:
+ * When you turn on brevity, Amazon Translate reduces the length
+ * of the translation output for most translations (when compared
+ * with the same translation with brevity turned off). By
+ * default, brevity is turned off.
+ *
+ * If you turn on brevity for a translation request with an
+ * unsupported language pair, the translation proceeds with the
+ * brevity setting turned off.
+ *
+ * For the language pairs that brevity supports, see Using brevity in the Amazon Translate Developer Guide.
+ * Formality parameter, the request will fail if
diff --git a/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/AmazonTranslateAsync.java b/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/AmazonTranslateAsync.java
index 221de78cdc0..5daf28193e3 100644
--- a/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/AmazonTranslateAsync.java
+++ b/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/AmazonTranslateAsync.java
@@ -945,14 +945,11 @@ FutureTranslateDocument 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.
+ * 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).
* Formality parameter, the request will fail if
@@ -988,14 +985,11 @@ FutureTranslateDocument 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.
+ * 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).
* Formality parameter, the request will fail if
diff --git a/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/AmazonTranslateAsyncClient.java b/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/AmazonTranslateAsyncClient.java
index c420eea2ab0..a7d7912cd87 100644
--- a/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/AmazonTranslateAsyncClient.java
+++ b/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/AmazonTranslateAsyncClient.java
@@ -1420,14 +1420,11 @@ public TagResourceResult call() throws Exception {
/**
* 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.
+ * 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).
* Formality parameter, the request will fail if
@@ -1469,14 +1466,11 @@ public TranslateDocumentResult call() throws Exception {
/**
* 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.
+ * 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).
* Formality parameter, the request will fail if
diff --git a/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/AmazonTranslateClient.java b/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/AmazonTranslateClient.java
index ec19aea4f37..b22672433c9 100644
--- a/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/AmazonTranslateClient.java
+++ b/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/AmazonTranslateClient.java
@@ -1168,14 +1168,11 @@ public TagResourceResult tagResource(TagResourceRequest tagResourceRequest)
/**
* 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.
+ * 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).
* Formality parameter, the request will fail if
diff --git a/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/model/Brevity.java b/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/model/Brevity.java
new file mode 100644
index 00000000000..4b32017abb7
--- /dev/null
+++ b/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/model/Brevity.java
@@ -0,0 +1,60 @@
+/*
+ * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the License.
+ * A copy of the License is located at
+ *
+ * http://aws.amazon.com/apache2.0
+ *
+ * or in the "license" file accompanying this file. This file is distributed
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+
+package com.amazonaws.services.translate.model;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Brevity
+ */
+public enum Brevity {
+
+ ON("ON");
+
+ private String value;
+
+ private Brevity(String value) {
+ this.value = value;
+ }
+
+ @Override
+ public String toString() {
+ return value;
+ }
+
+ private static final Map
*
@@ -145,14 +151,20 @@ public Document withContent(java.nio.ByteBuffer content) {
* text/html - The input data consists of HTML content. Amazon
+ * Translate translates only the text in the HTML element.
* text/plain - The input data consists of unformatted text.
+ * Amazon Translate translates every character in the content.
+ * application/vnd.openxmlformats-officedocument.wordprocessingml.document
+ * - The input data consists of a Word document (.docx).
*
*
@@ -168,14 +180,20 @@ public Document withContent(java.nio.ByteBuffer content) {
* text/html - The input data consists of HTML content. Amazon
+ * Translate translates only the text in the HTML element.
+ * text/plain - The input data consists of unformatted text.
+ * Amazon Translate translates every character in the content.
* application/vnd.openxmlformats-officedocument.wordprocessingml.document
+ * - The input data consists of a Word document (.docx).
*
*
@@ -192,14 +210,20 @@ public String getContentType() {
* text/html - The input data consists of HTML content.
+ * Amazon Translate translates only the text in the HTML element.
* text/plain - The input data consists of unformatted
+ * text. Amazon Translate translates every character in the content.
+ * application/vnd.openxmlformats-officedocument.wordprocessingml.document
+ * - The input data consists of a Word document (.docx).
*
*
@@ -215,14 +239,22 @@ public String getContentType() {
* text/html - The input data consists of HTML content. Amazon
+ * Translate translates only the text in the HTML element.
+ * text/plain - The input data consists of unformatted text.
+ * Amazon Translate translates every character in the content.
* application/vnd.openxmlformats-officedocument.wordprocessingml.document
+ * - The input data consists of a Word document (.docx).
*
*
@@ -239,14 +271,20 @@ public void setContentType(String contentType) {
* text/html - The input data consists of HTML
+ * content. Amazon Translate translates only the text in the HTML
+ * element.
* text/plain - The input data consists of
+ * unformatted text. Amazon Translate translates every character
+ * in the content.
+ * application/vnd.openxmlformats-officedocument.wordprocessingml.document
+ * - The input data consists of a Word document (.docx).
*
*
@@ -265,14 +303,22 @@ public void setContentType(String contentType) {
* text/html - The input data consists of HTML content. Amazon
+ * Translate translates only the text in the HTML element.
+ * text/plain - The input data consists of unformatted text.
+ * Amazon Translate translates every character in the content.
* application/vnd.openxmlformats-officedocument.wordprocessingml.document
+ * - The input data consists of a Word document (.docx).
*
*
diff --git a/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/model/StartTextTranslationJobRequest.java b/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/model/StartTextTranslationJobRequest.java
index b7c8f826622..6742fb0a0fc 100644
--- a/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/model/StartTextTranslationJobRequest.java
+++ b/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/model/StartTextTranslationJobRequest.java
@@ -185,10 +185,26 @@ public class StartTextTranslationJobRequest extends AmazonWebServiceRequest impl
/**
* text/html - The input data consists of HTML
+ * content. Amazon Translate translates only the text in the HTML
+ * element.
+ * text/plain - The input data consists of
+ * unformatted text. Amazon Translate translates every character
+ * in the content.
* application/vnd.openxmlformats-officedocument.wordprocessingml.document
+ * - The input data consists of a Word document (.docx).
*
+ *
*/
private TranslationSettings settings;
@@ -1259,16 +1275,49 @@ public StartTextTranslationJobRequest withClientToken(String clientToken) {
/**
*
+ *
*
* @return
+ *
*/
public TranslationSettings getSettings() {
return settings;
@@ -1276,16 +1325,49 @@ public TranslationSettings getSettings() {
/**
*
+ *
*
* @param settings
+ *
*/
public void setSettings(TranslationSettings settings) {
this.settings = settings;
@@ -1293,19 +1375,52 @@ public void setSettings(TranslationSettings settings) {
/**
*
+ *
*
+ *
* @return A reference to this updated object so that method calls can be
* chained together.
*/
diff --git a/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/model/TranslateDocumentRequest.java b/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/model/TranslateDocumentRequest.java
index 106397d5288..64afc1837b2 100644
--- a/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/model/TranslateDocumentRequest.java
+++ b/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/model/TranslateDocumentRequest.java
@@ -22,16 +22,13 @@
/**
* TranslateDocument supports translations from
- * English to any supported language, and from any supported language to
+ * 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).
* TranslateDocument does not support language auto-detection.
- * Formality parameter, the request will fail if the
* target language does not support formality. For a list of target languages
* that support formality, see
- * The language code for the language of the source text. Do not use
- * auto, because TranslateDocument does not
- * support language auto-detection. For a list of supported language codes,
- * see Supported languages.
* auto in the SourceLanguageCode
+ * field. If you specify auto, Amazon Translate will call Amazon Comprehend to determine the source language.
+ * auto, you must send the
+ * TranslateDocument request in a region that supports Amazon
+ * Comprehend. Otherwise, the request returns an error indicating that
+ * autodetect is not supported.
+ *
* Length: 2 - 5
*/
@@ -97,10 +108,26 @@ public class TranslateDocumentRequest extends AmazonWebServiceRequest implements
/**
*
+ *
*/
private TranslationSettings settings;
@@ -335,25 +362,53 @@ public TranslateDocumentRequest withTerminologyNames(
/**
* auto, because TranslateDocument does not
- * support language auto-detection. For a list of supported language codes,
- * see Supported languages.
* auto in the SourceLanguageCode
+ * field. If you specify auto, Amazon Translate will call Amazon Comprehend to determine the source language.
+ * auto, you must send the
+ * TranslateDocument request in a region that supports Amazon
+ * Comprehend. Otherwise, the request returns an error indicating that
+ * autodetect is not supported.
+ *
* Length: 2 - 5
*
* @return auto, because TranslateDocument does
- * not support language auto-detection. For a list of supported
- * language codes, see Supported languages.
* auto in the
+ * SourceLanguageCode field. If you specify
+ * auto, Amazon Translate will call Amazon Comprehend to determine the source language.
+ * auto, you must send the
+ * TranslateDocument request in a region that supports
+ * Amazon Comprehend. Otherwise, the request returns an error
+ * indicating that autodetect is not supported.
+ * auto, because TranslateDocument does not
- * support language auto-detection. For a list of supported language codes,
- * see Supported languages.
* auto in the SourceLanguageCode
+ * field. If you specify auto, Amazon Translate will call Amazon Comprehend to determine the source language.
+ * auto, you must send the
+ * TranslateDocument request in a region that supports Amazon
+ * Comprehend. Otherwise, the request returns an error indicating that
+ * autodetect is not supported.
+ *
* Length: 2 - 5
*
* @param sourceLanguageCode auto, because TranslateDocument
- * does not support language auto-detection. For a list of
- * supported language codes, see Supported languages.
* auto in the
+ * SourceLanguageCode field. If you specify
+ * auto, Amazon Translate will call Amazon Comprehend to determine the source language.
+ * auto, you must send the
+ * TranslateDocument request in a region that
+ * supports Amazon Comprehend. Otherwise, the request returns an
+ * error indicating that autodetect is not supported.
+ * auto, because TranslateDocument does not
- * support language auto-detection. For a list of supported language codes,
- * see Supported languages.
* auto in the SourceLanguageCode
+ * field. If you specify auto, Amazon Translate will call Amazon Comprehend to determine the source language.
+ * auto, you must send the
+ * TranslateDocument request in a region that supports Amazon
+ * Comprehend. Otherwise, the request returns an error indicating that
+ * autodetect is not supported.
+ *
*
* @param sourceLanguageCode auto, because TranslateDocument
- * does not support language auto-detection. For a list of
- * supported language codes, see Supported languages.
* auto in the
+ * SourceLanguageCode field. If you specify
+ * auto, Amazon Translate will call Amazon Comprehend to determine the source language.
+ * auto, you must send the
+ * TranslateDocument request in a region that
+ * supports Amazon Comprehend. Otherwise, the request returns an
+ * error indicating that autodetect is not supported.
+ *
+ *
*
* @return
+ *
*/
public TranslationSettings getSettings() {
return settings;
@@ -508,16 +652,49 @@ public TranslationSettings getSettings() {
/**
*
+ *
*
* @param settings
+ *
*/
public void setSettings(TranslationSettings settings) {
this.settings = settings;
@@ -525,19 +702,52 @@ public void setSettings(TranslationSettings settings) {
/**
*
+ *
*
+ *
* @return A reference to this updated object so that method calls can be
* chained together.
*/
diff --git a/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/model/TranslateDocumentResult.java b/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/model/TranslateDocumentResult.java
index 9024457bcf1..6cd929260f9 100644
--- a/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/model/TranslateDocumentResult.java
+++ b/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/model/TranslateDocumentResult.java
@@ -56,10 +56,27 @@ public class TranslateDocumentResult implements Serializable {
/**
*
+ *
*/
private TranslationSettings appliedSettings;
@@ -314,16 +331,51 @@ public TranslateDocumentResult withAppliedTerminologies(
/**
* TranslateText only.
+ *
+ *
*
* @return TranslateText only.
*
+ *
*/
public TranslationSettings getAppliedSettings() {
return appliedSettings;
@@ -331,16 +383,51 @@ public TranslationSettings getAppliedSettings() {
/**
* TranslateText only.
*
+ *
*
* @param appliedSettings TranslateText only.
*
+ *
*/
public void setAppliedSettings(TranslationSettings appliedSettings) {
this.appliedSettings = appliedSettings;
@@ -348,19 +435,54 @@ public void setAppliedSettings(TranslationSettings appliedSettings) {
/**
* TranslateText only.
+ *
+ *
* TranslateText only.
+ *
+ *
* @return A reference to this updated object so that method calls can be
* chained together.
*/
diff --git a/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/model/TranslateTextRequest.java b/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/model/TranslateTextRequest.java
index c81fc656b2a..67ed3a74d3f 100644
--- a/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/model/TranslateTextRequest.java
+++ b/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/model/TranslateTextRequest.java
@@ -104,10 +104,27 @@ public class TranslateTextRequest extends AmazonWebServiceRequest implements Ser
/**
* TranslateText only.
+ *
+ *
*/
private TranslationSettings settings;
@@ -599,16 +616,51 @@ public TranslateTextRequest withTargetLanguageCode(String targetLanguageCode) {
/**
*
+ *
*
* @return
+ *
*/
public TranslationSettings getSettings() {
return settings;
@@ -616,16 +668,51 @@ public TranslationSettings getSettings() {
/**
*
+ *
*
* @param settings
+ *
*/
public void setSettings(TranslationSettings settings) {
this.settings = settings;
@@ -633,19 +720,54 @@ public void setSettings(TranslationSettings settings) {
/**
*
+ *
*
+ *
* @return A reference to this updated object so that method calls can be
* chained together.
*/
diff --git a/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/model/TranslationSettings.java b/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/model/TranslationSettings.java
index 102f1878bb7..cbbb444b1a5 100644
--- a/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/model/TranslationSettings.java
+++ b/aws-android-sdk-translate/src/main/java/com/amazonaws/services/translate/model/TranslationSettings.java
@@ -19,17 +19,34 @@
/**
*
+ *
*/
public class TranslationSettings implements Serializable {
/**
* TranslateText only.
+ *
+ * Allowed Values: ON
+ */
+ private String brevity;
+
+ /**
+ *
+ * Allowed Values: ON
+ *
+ * @return
+ * Allowed Values: ON
+ *
+ * @param brevity
+ * Allowed Values: ON
+ *
+ * @param brevity
+ * Allowed Values: ON
+ *
+ * @param brevity
+ * Allowed Values: ON
+ *
+ * @param brevity