Class AgeUnit
java.lang.Object
com.azure.core.util.ExpandableStringEnum<AgeUnit>
com.azure.ai.textanalytics.models.AgeUnit
Defines values for AgeUnit.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final AgeUnit
Static value Day for AgeUnit.static final AgeUnit
Static value Month for AgeUnit.static final AgeUnit
Static value Unspecified for AgeUnit.static final AgeUnit
Static value Week for AgeUnit.static final AgeUnit
Static value Year for AgeUnit. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AgeUnit
fromString
(String name) Creates or finds a AgeUnit from its string representation.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, hashCode, toString, values
-
Field Details
-
UNSPECIFIED
Static value Unspecified for AgeUnit. -
YEAR
Static value Year for AgeUnit. -
MONTH
Static value Month for AgeUnit. -
WEEK
Static value Week for AgeUnit. -
DAY
Static value Day for AgeUnit.
-
-
Constructor Details
-
AgeUnit
public AgeUnit()
-
-
Method Details
-
fromString
Creates or finds a AgeUnit from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding AgeUnit.
-