@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateVocabularyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
CreateVocabularyRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateVocabularyRequest |
clone() |
boolean |
equals(Object obj) |
String |
getLanguageCode()
The language code of the vocabulary entries.
|
List<String> |
getPhrases()
An array of strings that contains the vocabulary entries.
|
List<Tag> |
getTags()
Adds one or more tags, each in the form of a key:value pair, to a new Amazon Transcribe vocabulary at the time
you create this new vocabulary.
|
String |
getVocabularyFileUri()
The S3 location of the text file that contains the definition of the custom vocabulary.
|
String |
getVocabularyName()
The name of the vocabulary.
|
int |
hashCode() |
void |
setLanguageCode(String languageCode)
The language code of the vocabulary entries.
|
void |
setPhrases(Collection<String> phrases)
An array of strings that contains the vocabulary entries.
|
void |
setTags(Collection<Tag> tags)
Adds one or more tags, each in the form of a key:value pair, to a new Amazon Transcribe vocabulary at the time
you create this new vocabulary.
|
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.
|
String |
toString()
Returns a string representation of this object.
|
CreateVocabularyRequest |
withLanguageCode(LanguageCode languageCode)
The language code of the vocabulary entries.
|
CreateVocabularyRequest |
withLanguageCode(String languageCode)
The language code of the vocabulary entries.
|
CreateVocabularyRequest |
withPhrases(Collection<String> phrases)
An array of strings that contains the vocabulary entries.
|
CreateVocabularyRequest |
withPhrases(String... phrases)
An array of strings that contains the vocabulary entries.
|
CreateVocabularyRequest |
withTags(Collection<Tag> tags)
Adds one or more tags, each in the form of a key:value pair, to a new Amazon Transcribe vocabulary at the time
you create this new vocabulary.
|
CreateVocabularyRequest |
withTags(Tag... tags)
Adds one or more tags, each in the form of a key:value pair, to a new Amazon Transcribe vocabulary at the time
you create this new vocabulary.
|
CreateVocabularyRequest |
withVocabularyFileUri(String vocabularyFileUri)
The S3 location of the text file that contains the definition of the custom vocabulary.
|
CreateVocabularyRequest |
withVocabularyName(String vocabularyName)
The name of the vocabulary.
|
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. The name must be unique within an Amazon Web Services account. The name is case
sensitive. If you try to create a vocabulary with the same name as a previous vocabulary you will receive a
ConflictException error.
vocabularyName - The name of the vocabulary. The name must be unique within an Amazon Web Services account. The name is
case sensitive. If you try to create a vocabulary with the same name as a previous vocabulary you will
receive a ConflictException error.public String getVocabularyName()
The name of the vocabulary. The name must be unique within an Amazon Web Services account. The name is case
sensitive. If you try to create a vocabulary with the same name as a previous vocabulary you will receive a
ConflictException error.
ConflictException error.public CreateVocabularyRequest withVocabularyName(String vocabularyName)
The name of the vocabulary. The name must be unique within an Amazon Web Services account. The name is case
sensitive. If you try to create a vocabulary with the same name as a previous vocabulary you will receive a
ConflictException error.
vocabularyName - The name of the vocabulary. The name must be unique within an Amazon Web Services account. The name is
case sensitive. If you try to create 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 table-language-matrix.
languageCode - The language code of the vocabulary entries. For a list of languages and their corresponding language
codes, see table-language-matrix.LanguageCodepublic String getLanguageCode()
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see table-language-matrix.
LanguageCodepublic CreateVocabularyRequest withLanguageCode(String languageCode)
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see table-language-matrix.
languageCode - The language code of the vocabulary entries. For a list of languages and their corresponding language
codes, see table-language-matrix.LanguageCodepublic CreateVocabularyRequest withLanguageCode(LanguageCode languageCode)
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see table-language-matrix.
languageCode - The language code of the vocabulary entries. For a list of languages and their corresponding language
codes, see table-language-matrix.LanguageCodepublic List<String> getPhrases()
An array of strings that contains the vocabulary entries.
public void setPhrases(Collection<String> phrases)
An array of strings that contains the vocabulary entries.
phrases - An array of strings that contains the vocabulary entries.public CreateVocabularyRequest withPhrases(String... phrases)
An array of strings that contains 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 that contains the vocabulary entries.public CreateVocabularyRequest withPhrases(Collection<String> phrases)
An array of strings that contains the vocabulary entries.
phrases - An array of strings that contains 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.<Amazon Web Services-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.<Amazon Web Services-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.<Amazon Web Services-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.<Amazon Web Services-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 CreateVocabularyRequest 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.<Amazon Web Services-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.<Amazon Web Services-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 List<Tag> getTags()
Adds one or more tags, each in the form of a key:value pair, to a new Amazon Transcribe vocabulary at the time you create this new vocabulary.
public void setTags(Collection<Tag> tags)
Adds one or more tags, each in the form of a key:value pair, to a new Amazon Transcribe vocabulary at the time you create this new vocabulary.
tags - Adds one or more tags, each in the form of a key:value pair, to a new Amazon Transcribe vocabulary at the
time you create this new vocabulary.public CreateVocabularyRequest withTags(Tag... tags)
Adds one or more tags, each in the form of a key:value pair, to a new Amazon Transcribe vocabulary at the time you create this new vocabulary.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the
existing values.
tags - Adds one or more tags, each in the form of a key:value pair, to a new Amazon Transcribe vocabulary at the
time you create this new vocabulary.public CreateVocabularyRequest withTags(Collection<Tag> tags)
Adds one or more tags, each in the form of a key:value pair, to a new Amazon Transcribe vocabulary at the time you create this new vocabulary.
tags - Adds one or more tags, each in the form of a key:value pair, to a new Amazon Transcribe vocabulary at the
time you create this new vocabulary.public String toString()
toString in class ObjectObject.toString()public CreateVocabularyRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2022. All rights reserved.