Class TimeRange
java.lang.Object
com.azure.core.util.ExpandableStringEnum<TimeRange>
com.azure.resourcemanager.alertsmanagement.models.TimeRange
Defines values for TimeRange.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeRange
fromString
(String name) Creates or finds a TimeRange from its string representation.static Collection<TimeRange>
values()
Gets known TimeRange values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, hashCode, toString, values
-
Field Details
-
ONEH
Static value 1h for TimeRange. -
ONED
Static value 1d for TimeRange. -
SEVEND
Static value 7d for TimeRange. -
THREE_ZEROD
Static value 30d for TimeRange.
-
-
Constructor Details
-
TimeRange
public TimeRange()
-
-
Method Details
-
fromString
Creates or finds a TimeRange from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding TimeRange.
-
values
Gets known TimeRange values.- Returns:
- known TimeRange values.
-