public class Vocabulary
extends java.lang.Object
implements java.io.Serializable
Contains information about a custom vocabulary.
| Constructor and Description |
|---|
Vocabulary() |
| Modifier and Type | Method and Description |
|---|---|
Vocabulary |
addTagsEntry(java.lang.String key,
java.lang.String value)
The tags used to organize, track, or control access for this resource.
|
Vocabulary |
clearTagsEntries()
Removes all the entries added into Tags.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArn()
The Amazon Resource Name (ARN) of the custom vocabulary.
|
java.lang.String |
getContent()
The content of the custom vocabulary in plain-text format with a table of
values.
|
java.lang.String |
getFailureReason()
The reason why the custom vocabulary was not created.
|
java.lang.String |
getId()
The identifier of the custom vocabulary.
|
java.lang.String |
getLanguageCode()
The language code of the vocabulary entries.
|
java.util.Date |
getLastModifiedTime()
The timestamp when the custom vocabulary was last modified.
|
java.lang.String |
getName()
A unique name of the custom vocabulary.
|
java.lang.String |
getState()
The current state of the custom vocabulary.
|
java.util.Map<java.lang.String,java.lang.String> |
getTags()
The tags used to organize, track, or control access for this resource.
|
int |
hashCode() |
void |
setArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the custom vocabulary.
|
void |
setContent(java.lang.String content)
The content of the custom vocabulary in plain-text format with a table of
values.
|
void |
setFailureReason(java.lang.String failureReason)
The reason why the custom vocabulary was not created.
|
void |
setId(java.lang.String id)
The identifier of the custom vocabulary.
|
void |
setLanguageCode(java.lang.String languageCode)
The language code of the vocabulary entries.
|
void |
setLanguageCode(VocabularyLanguageCode languageCode)
The language code of the vocabulary entries.
|
void |
setLastModifiedTime(java.util.Date lastModifiedTime)
The timestamp when the custom vocabulary was last modified.
|
void |
setName(java.lang.String name)
A unique name of the custom vocabulary.
|
void |
setState(java.lang.String state)
The current state of the custom vocabulary.
|
void |
setState(VocabularyState state)
The current state of the custom vocabulary.
|
void |
setTags(java.util.Map<java.lang.String,java.lang.String> tags)
The tags used to organize, track, or control access for this resource.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Vocabulary |
withArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the custom vocabulary.
|
Vocabulary |
withContent(java.lang.String content)
The content of the custom vocabulary in plain-text format with a table of
values.
|
Vocabulary |
withFailureReason(java.lang.String failureReason)
The reason why the custom vocabulary was not created.
|
Vocabulary |
withId(java.lang.String id)
The identifier of the custom vocabulary.
|
Vocabulary |
withLanguageCode(java.lang.String languageCode)
The language code of the vocabulary entries.
|
Vocabulary |
withLanguageCode(VocabularyLanguageCode languageCode)
The language code of the vocabulary entries.
|
Vocabulary |
withLastModifiedTime(java.util.Date lastModifiedTime)
The timestamp when the custom vocabulary was last modified.
|
Vocabulary |
withName(java.lang.String name)
A unique name of the custom vocabulary.
|
Vocabulary |
withState(java.lang.String state)
The current state of the custom vocabulary.
|
Vocabulary |
withState(VocabularyState state)
The current state of the custom vocabulary.
|
Vocabulary |
withTags(java.util.Map<java.lang.String,java.lang.String> tags)
The tags used to organize, track, or control access for this resource.
|
public java.lang.String getName()
A unique name of the custom vocabulary.
Constraints:
Length: 1 - 140
Pattern: ^[0-9a-zA-Z._-]+
A unique name of the custom vocabulary.
public void setName(java.lang.String name)
A unique name of the custom vocabulary.
Constraints:
Length: 1 - 140
Pattern: ^[0-9a-zA-Z._-]+
name - A unique name of the custom vocabulary.
public Vocabulary withName(java.lang.String name)
A unique name of the custom vocabulary.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 140
Pattern: ^[0-9a-zA-Z._-]+
name - A unique name of the custom vocabulary.
public java.lang.String getId()
The identifier of the custom vocabulary.
Constraints:
Length: 1 - 500
The identifier of the custom vocabulary.
public void setId(java.lang.String id)
The identifier of the custom vocabulary.
Constraints:
Length: 1 - 500
id - The identifier of the custom vocabulary.
public Vocabulary withId(java.lang.String id)
The identifier of the custom vocabulary.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 500
id - The identifier of the custom vocabulary.
public java.lang.String getArn()
The Amazon Resource Name (ARN) of the custom vocabulary.
The Amazon Resource Name (ARN) of the custom vocabulary.
public void setArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the custom vocabulary.
arn - The Amazon Resource Name (ARN) of the custom vocabulary.
public Vocabulary withArn(java.lang.String arn)
The Amazon Resource Name (ARN) of the custom vocabulary.
Returns a reference to this object so that method calls can be chained together.
arn - The Amazon Resource Name (ARN) of the custom vocabulary.
public java.lang.String getLanguageCode()
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?
Constraints:
Allowed Values: ar-AE, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE,
en-IN, en-US, en-WL, es-ES, es-US, fr-CA, fr-FR, hi-IN, it-IT, ja-JP,
ko-KR, pt-BR, pt-PT, zh-CN, en-NZ, en-ZA
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?
VocabularyLanguageCodepublic void setLanguageCode(java.lang.String languageCode)
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?
Constraints:
Allowed Values: ar-AE, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE,
en-IN, en-US, en-WL, es-ES, es-US, fr-CA, fr-FR, hi-IN, it-IT, ja-JP,
ko-KR, pt-BR, pt-PT, zh-CN, en-NZ, en-ZA
languageCode - The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?
VocabularyLanguageCodepublic Vocabulary withLanguageCode(java.lang.String languageCode)
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ar-AE, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE,
en-IN, en-US, en-WL, es-ES, es-US, fr-CA, fr-FR, hi-IN, it-IT, ja-JP,
ko-KR, pt-BR, pt-PT, zh-CN, en-NZ, en-ZA
languageCode - The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?
VocabularyLanguageCodepublic void setLanguageCode(VocabularyLanguageCode languageCode)
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?
Constraints:
Allowed Values: ar-AE, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE,
en-IN, en-US, en-WL, es-ES, es-US, fr-CA, fr-FR, hi-IN, it-IT, ja-JP,
ko-KR, pt-BR, pt-PT, zh-CN, en-NZ, en-ZA
languageCode - The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?
VocabularyLanguageCodepublic Vocabulary withLanguageCode(VocabularyLanguageCode languageCode)
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ar-AE, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE,
en-IN, en-US, en-WL, es-ES, es-US, fr-CA, fr-FR, hi-IN, it-IT, ja-JP,
ko-KR, pt-BR, pt-PT, zh-CN, en-NZ, en-ZA
languageCode - The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?
VocabularyLanguageCodepublic java.lang.String getState()
The current state of the custom vocabulary.
Constraints:
Allowed Values: CREATION_IN_PROGRESS, ACTIVE, CREATION_FAILED,
DELETE_IN_PROGRESS
The current state of the custom vocabulary.
VocabularyStatepublic void setState(java.lang.String state)
The current state of the custom vocabulary.
Constraints:
Allowed Values: CREATION_IN_PROGRESS, ACTIVE, CREATION_FAILED,
DELETE_IN_PROGRESS
state - The current state of the custom vocabulary.
VocabularyStatepublic Vocabulary withState(java.lang.String state)
The current state of the custom vocabulary.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CREATION_IN_PROGRESS, ACTIVE, CREATION_FAILED,
DELETE_IN_PROGRESS
state - The current state of the custom vocabulary.
VocabularyStatepublic void setState(VocabularyState state)
The current state of the custom vocabulary.
Constraints:
Allowed Values: CREATION_IN_PROGRESS, ACTIVE, CREATION_FAILED,
DELETE_IN_PROGRESS
state - The current state of the custom vocabulary.
VocabularyStatepublic Vocabulary withState(VocabularyState state)
The current state of the custom vocabulary.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CREATION_IN_PROGRESS, ACTIVE, CREATION_FAILED,
DELETE_IN_PROGRESS
state - The current state of the custom vocabulary.
VocabularyStatepublic java.util.Date getLastModifiedTime()
The timestamp when the custom vocabulary was last modified.
The timestamp when the custom vocabulary was last modified.
public void setLastModifiedTime(java.util.Date lastModifiedTime)
The timestamp when the custom vocabulary was last modified.
lastModifiedTime - The timestamp when the custom vocabulary was last modified.
public Vocabulary withLastModifiedTime(java.util.Date lastModifiedTime)
The timestamp when the custom vocabulary was last modified.
Returns a reference to this object so that method calls can be chained together.
lastModifiedTime - The timestamp when the custom vocabulary was last modified.
public java.lang.String getFailureReason()
The reason why the custom vocabulary was not created.
The reason why the custom vocabulary was not created.
public void setFailureReason(java.lang.String failureReason)
The reason why the custom vocabulary was not created.
failureReason - The reason why the custom vocabulary was not created.
public Vocabulary withFailureReason(java.lang.String failureReason)
The reason why the custom vocabulary was not created.
Returns a reference to this object so that method calls can be chained together.
failureReason - The reason why the custom vocabulary was not created.
public java.lang.String getContent()
The content of the custom vocabulary in plain-text format with a table of
values. Each row in the table represents a word or a phrase, described
with Phrase, IPA, SoundsLike, and
DisplayAs fields. Separate the fields with TAB characters.
For more information, see Create a custom vocabulary using a table.
Constraints:
Length: 1 - 60000
The content of the custom vocabulary in plain-text format with a
table of values. Each row in the table represents a word or a
phrase, described with Phrase, IPA,
SoundsLike, and DisplayAs fields.
Separate the fields with TAB characters. For more information,
see Create a custom vocabulary using a table.
public void setContent(java.lang.String content)
The content of the custom vocabulary in plain-text format with a table of
values. Each row in the table represents a word or a phrase, described
with Phrase, IPA, SoundsLike, and
DisplayAs fields. Separate the fields with TAB characters.
For more information, see Create a custom vocabulary using a table.
Constraints:
Length: 1 - 60000
content -
The content of the custom vocabulary in plain-text format with
a table of values. Each row in the table represents a word or
a phrase, described with Phrase, IPA, SoundsLike, and DisplayAs fields.
Separate the fields with TAB characters. For more information,
see Create a custom vocabulary using a table.
public Vocabulary withContent(java.lang.String content)
The content of the custom vocabulary in plain-text format with a table of
values. Each row in the table represents a word or a phrase, described
with Phrase, IPA, SoundsLike, and
DisplayAs fields. Separate the fields with TAB characters.
For more information, see Create a custom vocabulary using a table.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 60000
content -
The content of the custom vocabulary in plain-text format with
a table of values. Each row in the table represents a word or
a phrase, described with Phrase, IPA, SoundsLike, and DisplayAs fields.
Separate the fields with TAB characters. For more information,
see Create a custom vocabulary using a table.
public java.util.Map<java.lang.String,java.lang.String> getTags()
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
public void setTags(java.util.Map<java.lang.String,java.lang.String> tags)
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
tags - The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
public Vocabulary withTags(java.util.Map<java.lang.String,java.lang.String> tags)
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
Returns a reference to this object so that method calls can be chained together.
tags - The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
public Vocabulary addTagsEntry(java.lang.String key, java.lang.String value)
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
The method adds a new key-value pair into Tags parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into Tags.value - The corresponding value of the entry to be added into Tags.public Vocabulary clearTagsEntries()
Returns a reference to this object so that method calls can be chained together.
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.Object