Enum SentimentSkillVersion
java.lang.Object
java.lang.Enum<SentimentSkillVersion>
com.azure.search.documents.indexes.models.SentimentSkillVersion
- All Implemented Interfaces:
Serializable
,Comparable<SentimentSkillVersion>
,java.lang.constant.Constable
Represents the version of
SentimentSkill
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic SentimentSkillVersion
fromString
(String value) Gets theSentimentSkillVersion
from the stringvalue
.static SentimentSkillVersion
Gets the latestSentimentSkill
version.toString()
static SentimentSkillVersion
Returns the enum constant of this type with the specified name.static SentimentSkillVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
V1
Version 1 ofSentimentSkill
. -
V3
Version 3 ofSentimentSkill
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getLatest
Gets the latestSentimentSkill
version.- Returns:
- The latest
SentimentSkill
version.
-
fromString
Gets theSentimentSkillVersion
from the stringvalue
.If the
value
doesn't match any version null will be returned.- Parameters:
value
- The value to convert to anSentimentSkillVersion
.- Returns:
- The
SentimentSkillVersion
corresponding to thevalue
, or null if no versions match thevalue
.
-
toString
- Overrides:
toString
in classEnum<SentimentSkillVersion>
-