public class UpdateVocabularyRequest extends AmazonWebServiceRequest implements java.io.Serializable
Updates an existing vocabulary with new values. The
UpdateVocabulary operation overwrites all of the existing
information with the values that you provide in the request.
| Constructor and Description |
|---|
UpdateVocabularyRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getLanguageCode()
The language code of the vocabulary entries.
|
java.util.List<java.lang.String> |
getPhrases()
An array of strings containing the vocabulary entries.
|
java.lang.String |
getVocabularyFileUri()
The S3 location of the text file that contains the definition of the
custom vocabulary.
|
java.lang.String |
getVocabularyName()
The name of the vocabulary to update.
|
int |
hashCode() |
void |
setLanguageCode(LanguageCode languageCode)
The language code of the vocabulary entries.
|
void |
setLanguageCode(java.lang.String languageCode)
The language code of the vocabulary entries.
|
void |
setPhrases(java.util.Collection<java.lang.String> phrases)
An array of strings containing the vocabulary entries.
|
void |
setVocabularyFileUri(java.lang.String vocabularyFileUri)
The S3 location of the text file that contains the definition of the
custom vocabulary.
|
void |
setVocabularyName(java.lang.String vocabularyName)
The name of the vocabulary to update.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateVocabularyRequest |
withLanguageCode(LanguageCode languageCode)
The language code of the vocabulary entries.
|
UpdateVocabularyRequest |
withLanguageCode(java.lang.String languageCode)
The language code of the vocabulary entries.
|
UpdateVocabularyRequest |
withPhrases(java.util.Collection<java.lang.String> phrases)
An array of strings containing the vocabulary entries.
|
UpdateVocabularyRequest |
withPhrases(java.lang.String... phrases)
An array of strings containing the vocabulary entries.
|
UpdateVocabularyRequest |
withVocabularyFileUri(java.lang.String vocabularyFileUri)
The S3 location of the text file that contains the definition of the
custom vocabulary.
|
UpdateVocabularyRequest |
withVocabularyName(java.lang.String vocabularyName)
The name of the vocabulary to update.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getVocabularyName()
The name of the vocabulary to update. The name is case sensitive. If you
try to update a vocabulary with the same name as a previous vocabulary
you will receive a ConflictException error.
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
The name of the vocabulary to update. The name is case sensitive.
If you try to update a vocabulary with the same name as a
previous vocabulary you will receive a
ConflictException error.
public void setVocabularyName(java.lang.String vocabularyName)
The name of the vocabulary to update. The name is case sensitive. If you
try to update a vocabulary with the same name as a previous vocabulary
you will receive a ConflictException error.
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
vocabularyName -
The name of the vocabulary to update. The name is case
sensitive. If you try to update a vocabulary with the same
name as a previous vocabulary you will receive a
ConflictException error.
public UpdateVocabularyRequest withVocabularyName(java.lang.String vocabularyName)
The name of the vocabulary to update. The name is case sensitive. If you
try to update a vocabulary with the same name as a previous vocabulary
you will receive a ConflictException error.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
vocabularyName -
The name of the vocabulary to update. The name is case
sensitive. If you try to update a vocabulary with the same
name as a previous vocabulary you will receive a
ConflictException error.
public java.lang.String getLanguageCode()
The language code of the vocabulary entries.
Constraints:
Allowed Values: af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE,
en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR,
fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR,
ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
The language code of the vocabulary entries.
LanguageCodepublic void setLanguageCode(java.lang.String languageCode)
The language code of the vocabulary entries.
Constraints:
Allowed Values: af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE,
en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR,
fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR,
ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
languageCode - The language code of the vocabulary entries.
LanguageCodepublic UpdateVocabularyRequest withLanguageCode(java.lang.String languageCode)
The language code of the vocabulary entries.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE,
en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR,
fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR,
ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
languageCode - The language code of the vocabulary entries.
LanguageCodepublic void setLanguageCode(LanguageCode languageCode)
The language code of the vocabulary entries.
Constraints:
Allowed Values: af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE,
en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR,
fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR,
ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
languageCode - The language code of the vocabulary entries.
LanguageCodepublic UpdateVocabularyRequest withLanguageCode(LanguageCode languageCode)
The language code of the vocabulary entries.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE,
en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR,
fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR,
ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
languageCode - The language code of the vocabulary entries.
LanguageCodepublic java.util.List<java.lang.String> getPhrases()
An array of strings containing the vocabulary entries.
An array of strings containing the vocabulary entries.
public void setPhrases(java.util.Collection<java.lang.String> phrases)
An array of strings containing the vocabulary entries.
phrases - An array of strings containing the vocabulary entries.
public UpdateVocabularyRequest withPhrases(java.lang.String... phrases)
An array of strings containing the vocabulary entries.
Returns a reference to this object so that method calls can be chained together.
phrases - An array of strings containing the vocabulary entries.
public UpdateVocabularyRequest withPhrases(java.util.Collection<java.lang.String> phrases)
An array of strings containing the vocabulary entries.
Returns a reference to this object so that method calls can be chained together.
phrases - An array of strings containing the vocabulary entries.
public java.lang.String getVocabularyFileUri()
The S3 location of the text file that contains the definition of the custom vocabulary. The URI must be in the same region as the API endpoint that you are calling. The general form is
For example:
For more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide.
For more information about custom vocabularies, see Custom Vocabularies.
Constraints:
Length: 1 - 2000
Pattern: (s3://|http(s*)://).+
The S3 location of the text file that contains the definition of the custom vocabulary. The URI must be in the same region as the API endpoint that you are calling. The general form is
For example:
For more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide.
For more information about custom vocabularies, see Custom Vocabularies.
public void setVocabularyFileUri(java.lang.String vocabularyFileUri)
The S3 location of the text file that contains the definition of the custom vocabulary. The URI must be in the same region as the API endpoint that you are calling. The general form is
For example:
For more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide.
For more information about custom vocabularies, see Custom Vocabularies.
Constraints:
Length: 1 - 2000
Pattern: (s3://|http(s*)://).+
vocabularyFileUri - The S3 location of the text file that contains the definition of the custom vocabulary. The URI must be in the same region as the API endpoint that you are calling. The general form is
For example:
For more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide.
For more information about custom vocabularies, see Custom Vocabularies.
public UpdateVocabularyRequest withVocabularyFileUri(java.lang.String vocabularyFileUri)
The S3 location of the text file that contains the definition of the custom vocabulary. The URI must be in the same region as the API endpoint that you are calling. The general form is
For example:
For more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide.
For more information about custom vocabularies, see Custom Vocabularies.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2000
Pattern: (s3://|http(s*)://).+
vocabularyFileUri - The S3 location of the text file that contains the definition of the custom vocabulary. The URI must be in the same region as the API endpoint that you are calling. The general form is
For example:
For more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide.
For more information about custom vocabularies, see Custom Vocabularies.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.