java.lang.Object
com.azure.core.util.ExpandableStringEnum<TimeRange>
com.azure.resourcemanager.alertsmanagement.models.TimeRange

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

    • ONEH

      public static final TimeRange ONEH
      Static value 1h for TimeRange.
    • ONED

      public static final TimeRange ONED
      Static value 1d for TimeRange.
    • SEVEND

      public static final TimeRange SEVEND
      Static value 7d for TimeRange.
    • THREE_ZEROD

      public static final TimeRange THREE_ZEROD
      Static value 30d for TimeRange.
  • Constructor Details

    • TimeRange

      public TimeRange()
  • Method Details

    • fromString

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

      public static Collection<TimeRange> values()
      Gets known TimeRange values.
      Returns:
      known TimeRange values.