@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateVocabularyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
UpdateVocabularyRequest() |
| Modifier and Type | Method and Description |
|---|---|
UpdateVocabularyRequest |
clone() |
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(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.
|
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.
|
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setVocabularyName(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.
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 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.
ConflictException error.public UpdateVocabularyRequest withVocabularyName(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.
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 void setLanguageCode(String languageCode)
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see Supported languages.
languageCode - The language code of the vocabulary entries. For a list of languages and their corresponding language
codes, see Supported
languages.LanguageCodepublic String getLanguageCode()
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see Supported languages.
LanguageCodepublic UpdateVocabularyRequest withLanguageCode(String languageCode)
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see Supported languages.
languageCode - The language code of the vocabulary entries. For a list of languages and their corresponding language
codes, see Supported
languages.LanguageCodepublic UpdateVocabularyRequest withLanguageCode(LanguageCode languageCode)
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see Supported languages.
languageCode - The language code of the vocabulary entries. For a list of languages and their corresponding language
codes, see Supported
languages.LanguageCodepublic List<String> getPhrases()
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.
NOTE: This method appends the values to the existing list (if any). Use
setPhrases(java.util.Collection) or withPhrases(java.util.Collection) if you want to override
the existing values.
phrases - An array of strings containing the vocabulary entries.public UpdateVocabularyRequest withPhrases(Collection<String> phrases)
An array of strings containing the vocabulary entries.
phrases - An array of strings containing the vocabulary entries.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/<AWSDOC-EXAMPLE-BUCKET>/<keyprefix>/<objectkey>
For example:
https://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/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.
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/<AWSDOC-EXAMPLE-BUCKET>/<keyprefix>/<objectkey>
For example:
https://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/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 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/<AWSDOC-EXAMPLE-BUCKET>/<keyprefix>/<objectkey>
For example:
https://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/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.
https://s3.<aws-region>.amazonaws.com/<AWSDOC-EXAMPLE-BUCKET>/<keyprefix>/<objectkey>
For example:
https://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/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/<AWSDOC-EXAMPLE-BUCKET>/<keyprefix>/<objectkey>
For example:
https://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/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.
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/<AWSDOC-EXAMPLE-BUCKET>/<keyprefix>/<objectkey>
For example:
https://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/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()public UpdateVocabularyRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2022. All rights reserved.