Enum SentimentSkillVersion
- java.lang.Object
-
- java.lang.Enum<SentimentSkillVersion>
-
- com.azure.search.documents.indexes.models.SentimentSkillVersion
-
- All Implemented Interfaces:
Serializable
,Comparable<SentimentSkillVersion>
public enum SentimentSkillVersion extends Enum<SentimentSkillVersion>
Represents the version ofSentimentSkill
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description V1
Version 1 ofSentimentSkill
.V3
Version 3 ofSentimentSkill
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SentimentSkillVersion
fromString(String value)
Gets theSentimentSkillVersion
from the stringvalue
.static SentimentSkillVersion
getLatest()
Gets the latestSentimentSkill
version.String
toString()
static SentimentSkillVersion
valueOf(String name)
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 Detail
-
V1
public static final SentimentSkillVersion V1
Version 1 ofSentimentSkill
.
-
V3
public static final SentimentSkillVersion V3
Version 3 ofSentimentSkill
.
-
-
Method Detail
-
values
public static SentimentSkillVersion[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SentimentSkillVersion c : SentimentSkillVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SentimentSkillVersion valueOf(String name)
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
public static SentimentSkillVersion getLatest()
Gets the latestSentimentSkill
version.- Returns:
- The latest
SentimentSkill
version.
-
fromString
public static SentimentSkillVersion fromString(String value)
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
public String toString()
- Overrides:
toString
in classEnum<SentimentSkillVersion>
-
-