Enum SubscriptionState
- java.lang.Object
-
- java.lang.Enum<SubscriptionState>
-
- com.azure.resourcemanager.resources.models.SubscriptionState
-
- All Implemented Interfaces:
Serializable,Comparable<SubscriptionState>
public enum SubscriptionState extends Enum<SubscriptionState>
Defines values for SubscriptionState.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubscriptionStatefromString(String value)Parses a serialized value to a SubscriptionState instance.StringtoString()static SubscriptionStatevalueOf(String name)Returns the enum constant of this type with the specified name.static SubscriptionState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENABLED
public static final SubscriptionState ENABLED
Enum value Enabled.
-
WARNED
public static final SubscriptionState WARNED
Enum value Warned.
-
PAST_DUE
public static final SubscriptionState PAST_DUE
Enum value PastDue.
-
DISABLED
public static final SubscriptionState DISABLED
Enum value Disabled.
-
DELETED
public static final SubscriptionState DELETED
Enum value Deleted.
-
-
Method Detail
-
values
public static SubscriptionState[] 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 (SubscriptionState c : SubscriptionState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SubscriptionState 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 SubscriptionState fromString(String value)
Parses a serialized value to a SubscriptionState instance.- Parameters:
value- the serialized value to parse.- Returns:
- the parsed SubscriptionState object, or null if unable to parse.
-
toString
public String toString()
- Overrides:
toStringin classEnum<SubscriptionState>
-
-