public class UpdateVocabularyRequest extends AmazonWebServiceRequest implements 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(Object obj) |
String |
getLanguageCode()
The language code of the vocabulary entries.
|
List<String> |
getPhrases()
An array of strings containing the vocabulary entries.
|
String |
getVocabularyFileUri()
The S3 location of the text file that contains the definition of the
custom vocabulary.
|
String |
getVocabularyName()
The name of the vocabulary to update.
|
int |
hashCode() |
void |
setLanguageCode(LanguageCode languageCode)
The language code of the vocabulary entries.
|
void |
setLanguageCode(String languageCode)
The language code of the vocabulary entries.
|
void |
setPhrases(Collection<String> phrases)
An array of strings containing the vocabulary entries.
|
void |
setVocabularyFileUri(String vocabularyFileUri)
The S3 location of the text file that contains the definition of the
custom vocabulary.
|
void |
setVocabularyName(String vocabularyName)
The name of the vocabulary to update.
|
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(String languageCode)
The language code of the vocabulary entries.
|
UpdateVocabularyRequest |
withPhrases(Collection<String> phrases)
An array of strings containing the vocabulary entries.
|
UpdateVocabularyRequest |
withPhrases(String... phrases)
An array of strings containing the vocabulary entries.
|
UpdateVocabularyRequest |
withVocabularyFileUri(String vocabularyFileUri)
The S3 location of the text file that contains the definition of the
custom vocabulary.
|
UpdateVocabularyRequest |
withVocabularyName(String vocabularyName)
The name of the vocabulary to update.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getVocabularyName()
The name of the vocabulary to update. The name is case-sensitive.
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
The name of the vocabulary to update. The name is case-sensitive.
public void setVocabularyName(String vocabularyName)
The name of the vocabulary to update. The name is case-sensitive.
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
vocabularyName - The name of the vocabulary to update. The name is case-sensitive.
public UpdateVocabularyRequest withVocabularyName(String vocabularyName)
The name of the vocabulary to update. The name is case-sensitive.
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.
public String getLanguageCode()
The language code of the vocabulary entries.
Constraints:
Allowed Values: en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR,
fr-FR, it-IT, ko-KR
The language code of the vocabulary entries.
LanguageCodepublic void setLanguageCode(String languageCode)
The language code of the vocabulary entries.
Constraints:
Allowed Values: en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR,
fr-FR, it-IT, ko-KR
languageCode - The language code of the vocabulary entries.
LanguageCodepublic UpdateVocabularyRequest withLanguageCode(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: en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR,
fr-FR, it-IT, ko-KR
languageCode - The language code of the vocabulary entries.
LanguageCodepublic void setLanguageCode(LanguageCode languageCode)
The language code of the vocabulary entries.
Constraints:
Allowed Values: en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR,
fr-FR, it-IT, ko-KR
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: en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR,
fr-FR, it-IT, ko-KR
languageCode - The language code of the vocabulary entries.
LanguageCodepublic List<String> getPhrases()
An array of strings containing the vocabulary entries.
An array of strings containing the vocabulary entries.
public void setPhrases(Collection<String> phrases)
An array of strings containing the vocabulary entries.
phrases - An array of strings containing the vocabulary entries.
public UpdateVocabularyRequest withPhrases(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(Collection<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 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
https://s3-<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
For example:
https://s3-us-east-1.amazonaws.com/examplebucket/vocab.txt
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
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
https://s3-<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
For example:
https://s3-us-east-1.amazonaws.com/examplebucket/vocab.txt
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(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
https://s3-<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
For example:
https://s3-us-east-1.amazonaws.com/examplebucket/vocab.txt
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
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
https://s3-<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
For example:
https://s3-us-east-1.amazonaws.com/examplebucket/vocab.txt
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(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
https://s3-<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
For example:
https://s3-us-east-1.amazonaws.com/examplebucket/vocab.txt
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
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
https://s3-<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
For example:
https://s3-us-east-1.amazonaws.com/examplebucket/vocab.txt
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 String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.