Class AgeUnit

java.lang.Object
com.azure.core.util.ExpandableStringEnum<AgeUnit>
com.azure.ai.textanalytics.models.AgeUnit

public final class AgeUnit extends com.azure.core.util.ExpandableStringEnum<AgeUnit>
Defines values for AgeUnit.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static AgeUnit
    Creates or finds a AgeUnit from its string representation.

    Methods inherited from class com.azure.core.util.ExpandableStringEnum

    equals, fromString, hashCode, toString, values

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • UNSPECIFIED

      public static final AgeUnit UNSPECIFIED
      Static value Unspecified for AgeUnit.
    • YEAR

      public static final AgeUnit YEAR
      Static value Year for AgeUnit.
    • MONTH

      public static final AgeUnit MONTH
      Static value Month for AgeUnit.
    • WEEK

      public static final AgeUnit WEEK
      Static value Week for AgeUnit.
    • DAY

      public static final AgeUnit DAY
      Static value Day for AgeUnit.
  • Constructor Details

    • AgeUnit

      public AgeUnit()
  • Method Details

    • fromString

      public static AgeUnit fromString(String name)
      Creates or finds a AgeUnit from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding AgeUnit.