Enum AggregationType
- java.lang.Object
-
- java.lang.Enum<AggregationType>
-
- com.azure.resourcemanager.monitor.models.AggregationType
-
- All Implemented Interfaces:
Serializable,Comparable<AggregationType>
public enum AggregationType extends Enum<AggregationType>
Defines values for AggregationType.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AggregationTypefromString(String value)Parses a serialized value to a AggregationType instance.StringtoString()static AggregationTypevalueOf(String name)Returns the enum constant of this type with the specified name.static AggregationType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final AggregationType NONE
Enum value None.
-
AVERAGE
public static final AggregationType AVERAGE
Enum value Average.
-
COUNT
public static final AggregationType COUNT
Enum value Count.
-
MINIMUM
public static final AggregationType MINIMUM
Enum value Minimum.
-
MAXIMUM
public static final AggregationType MAXIMUM
Enum value Maximum.
-
TOTAL
public static final AggregationType TOTAL
Enum value Total.
-
-
Method Detail
-
values
public static AggregationType[] 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 (AggregationType c : AggregationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AggregationType 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
-
fromString
public static AggregationType fromString(String value)
Parses a serialized value to a AggregationType instance.- Parameters:
value- the serialized value to parse.- Returns:
- the parsed AggregationType object, or null if unable to parse.
-
toString
public String toString()
- Overrides:
toStringin classEnum<AggregationType>
-
-