public class LexiconAttributes
extends java.lang.Object
implements java.io.Serializable
Contains metadata describing the lexicon such as the number of lexemes, language code, and so on. For more information, see Managing Lexicons.
Constructor and Description |
---|
LexiconAttributes() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAlphabet()
Phonetic alphabet used in the lexicon.
|
java.lang.String |
getLanguageCode()
Language code that the lexicon applies to.
|
java.util.Date |
getLastModified()
Date lexicon was last modified (a timestamp value).
|
java.lang.Integer |
getLexemesCount()
Number of lexemes in the lexicon.
|
java.lang.String |
getLexiconArn()
Amazon Resource Name (ARN) of the lexicon.
|
java.lang.Integer |
getSize()
Total size of the lexicon, in characters.
|
int |
hashCode() |
void |
setAlphabet(java.lang.String alphabet)
Phonetic alphabet used in the lexicon.
|
void |
setLanguageCode(LanguageCode languageCode)
Language code that the lexicon applies to.
|
void |
setLanguageCode(java.lang.String languageCode)
Language code that the lexicon applies to.
|
void |
setLastModified(java.util.Date lastModified)
Date lexicon was last modified (a timestamp value).
|
void |
setLexemesCount(java.lang.Integer lexemesCount)
Number of lexemes in the lexicon.
|
void |
setLexiconArn(java.lang.String lexiconArn)
Amazon Resource Name (ARN) of the lexicon.
|
void |
setSize(java.lang.Integer size)
Total size of the lexicon, in characters.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
LexiconAttributes |
withAlphabet(java.lang.String alphabet)
Phonetic alphabet used in the lexicon.
|
LexiconAttributes |
withLanguageCode(LanguageCode languageCode)
Language code that the lexicon applies to.
|
LexiconAttributes |
withLanguageCode(java.lang.String languageCode)
Language code that the lexicon applies to.
|
LexiconAttributes |
withLastModified(java.util.Date lastModified)
Date lexicon was last modified (a timestamp value).
|
LexiconAttributes |
withLexemesCount(java.lang.Integer lexemesCount)
Number of lexemes in the lexicon.
|
LexiconAttributes |
withLexiconArn(java.lang.String lexiconArn)
Amazon Resource Name (ARN) of the lexicon.
|
LexiconAttributes |
withSize(java.lang.Integer size)
Total size of the lexicon, in characters.
|
public java.lang.String getAlphabet()
Phonetic alphabet used in the lexicon. Valid values are ipa
and x-sampa
.
Phonetic alphabet used in the lexicon. Valid values are
ipa
and x-sampa
.
public void setAlphabet(java.lang.String alphabet)
Phonetic alphabet used in the lexicon. Valid values are ipa
and x-sampa
.
alphabet
-
Phonetic alphabet used in the lexicon. Valid values are
ipa
and x-sampa
.
public LexiconAttributes withAlphabet(java.lang.String alphabet)
Phonetic alphabet used in the lexicon. Valid values are ipa
and x-sampa
.
Returns a reference to this object so that method calls can be chained together.
alphabet
-
Phonetic alphabet used in the lexicon. Valid values are
ipa
and x-sampa
.
public java.lang.String getLanguageCode()
Language code that the lexicon applies to. A lexicon with a language code such as "en" would be applied to all English languages (en-GB, en-US, en-AUS, en-WLS, and so on.
Constraints:
Allowed Values: arb, cmn-CN, cy-GB, da-DK, de-DE, en-AU, en-GB,
en-GB-WLS, en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, is-IS, it-IT,
ja-JP, hi-IN, ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU,
sv-SE, tr-TR
Language code that the lexicon applies to. A lexicon with a language code such as "en" would be applied to all English languages (en-GB, en-US, en-AUS, en-WLS, and so on.
LanguageCode
public void setLanguageCode(java.lang.String languageCode)
Language code that the lexicon applies to. A lexicon with a language code such as "en" would be applied to all English languages (en-GB, en-US, en-AUS, en-WLS, and so on.
Constraints:
Allowed Values: arb, cmn-CN, cy-GB, da-DK, de-DE, en-AU, en-GB,
en-GB-WLS, en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, is-IS, it-IT,
ja-JP, hi-IN, ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU,
sv-SE, tr-TR
languageCode
- Language code that the lexicon applies to. A lexicon with a language code such as "en" would be applied to all English languages (en-GB, en-US, en-AUS, en-WLS, and so on.
LanguageCode
public LexiconAttributes withLanguageCode(java.lang.String languageCode)
Language code that the lexicon applies to. A lexicon with a language code such as "en" would be applied to all English languages (en-GB, en-US, en-AUS, en-WLS, and so on.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: arb, cmn-CN, cy-GB, da-DK, de-DE, en-AU, en-GB,
en-GB-WLS, en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, is-IS, it-IT,
ja-JP, hi-IN, ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU,
sv-SE, tr-TR
languageCode
- Language code that the lexicon applies to. A lexicon with a language code such as "en" would be applied to all English languages (en-GB, en-US, en-AUS, en-WLS, and so on.
LanguageCode
public void setLanguageCode(LanguageCode languageCode)
Language code that the lexicon applies to. A lexicon with a language code such as "en" would be applied to all English languages (en-GB, en-US, en-AUS, en-WLS, and so on.
Constraints:
Allowed Values: arb, cmn-CN, cy-GB, da-DK, de-DE, en-AU, en-GB,
en-GB-WLS, en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, is-IS, it-IT,
ja-JP, hi-IN, ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU,
sv-SE, tr-TR
languageCode
- Language code that the lexicon applies to. A lexicon with a language code such as "en" would be applied to all English languages (en-GB, en-US, en-AUS, en-WLS, and so on.
LanguageCode
public LexiconAttributes withLanguageCode(LanguageCode languageCode)
Language code that the lexicon applies to. A lexicon with a language code such as "en" would be applied to all English languages (en-GB, en-US, en-AUS, en-WLS, and so on.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: arb, cmn-CN, cy-GB, da-DK, de-DE, en-AU, en-GB,
en-GB-WLS, en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, is-IS, it-IT,
ja-JP, hi-IN, ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU,
sv-SE, tr-TR
languageCode
- Language code that the lexicon applies to. A lexicon with a language code such as "en" would be applied to all English languages (en-GB, en-US, en-AUS, en-WLS, and so on.
LanguageCode
public java.util.Date getLastModified()
Date lexicon was last modified (a timestamp value).
Date lexicon was last modified (a timestamp value).
public void setLastModified(java.util.Date lastModified)
Date lexicon was last modified (a timestamp value).
lastModified
- Date lexicon was last modified (a timestamp value).
public LexiconAttributes withLastModified(java.util.Date lastModified)
Date lexicon was last modified (a timestamp value).
Returns a reference to this object so that method calls can be chained together.
lastModified
- Date lexicon was last modified (a timestamp value).
public java.lang.String getLexiconArn()
Amazon Resource Name (ARN) of the lexicon.
Amazon Resource Name (ARN) of the lexicon.
public void setLexiconArn(java.lang.String lexiconArn)
Amazon Resource Name (ARN) of the lexicon.
lexiconArn
- Amazon Resource Name (ARN) of the lexicon.
public LexiconAttributes withLexiconArn(java.lang.String lexiconArn)
Amazon Resource Name (ARN) of the lexicon.
Returns a reference to this object so that method calls can be chained together.
lexiconArn
- Amazon Resource Name (ARN) of the lexicon.
public java.lang.Integer getLexemesCount()
Number of lexemes in the lexicon.
Number of lexemes in the lexicon.
public void setLexemesCount(java.lang.Integer lexemesCount)
Number of lexemes in the lexicon.
lexemesCount
- Number of lexemes in the lexicon.
public LexiconAttributes withLexemesCount(java.lang.Integer lexemesCount)
Number of lexemes in the lexicon.
Returns a reference to this object so that method calls can be chained together.
lexemesCount
- Number of lexemes in the lexicon.
public java.lang.Integer getSize()
Total size of the lexicon, in characters.
Total size of the lexicon, in characters.
public void setSize(java.lang.Integer size)
Total size of the lexicon, in characters.
size
- Total size of the lexicon, in characters.
public LexiconAttributes withSize(java.lang.Integer size)
Total size of the lexicon, in characters.
Returns a reference to this object so that method calls can be chained together.
size
- Total size of the lexicon, in characters.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.