Enum AzResourceBase.FormalStatus
- java.lang.Object
-
- java.lang.Enum<AzResourceBase.FormalStatus>
-
- com.microsoft.azure.toolkit.lib.common.model.AzResourceBase.FormalStatus
-
- All Implemented Interfaces:
Serializable,Comparable<AzResourceBase.FormalStatus>
- Enclosing interface:
- AzResourceBase
public static enum AzResourceBase.FormalStatus extends Enum<AzResourceBase.FormalStatus>
-
-
Field Summary
Fields Modifier and Type Field Description private static HashSet<String>deletedStatusprivate static HashSet<String>failedStatusprivate static HashSet<String>readingStatusprivate static HashSet<String>runningStatusprivate static HashSet<String>stoppedStatusprivate static HashSet<String>writingStatus
-
Constructor Summary
Constructors Modifier Constructor Description privateFormalStatus()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AzResourceBase.FormalStatusdummyFormalize(String status)booleanisConnected()booleanisCreating()booleanisDeleted()booleanisFailed()booleanisReading()booleanisRunning()booleanisStopped()booleanisUnknown()booleanisWaiting()booleanisWritable()booleanisWriting()static AzResourceBase.FormalStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static AzResourceBase.FormalStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RUNNING
public static final AzResourceBase.FormalStatus RUNNING
-
STOPPED
public static final AzResourceBase.FormalStatus STOPPED
-
FAILED
public static final AzResourceBase.FormalStatus FAILED
-
DELETED
public static final AzResourceBase.FormalStatus DELETED
-
UNKNOWN
public static final AzResourceBase.FormalStatus UNKNOWN
-
WRITING
public static final AzResourceBase.FormalStatus WRITING
-
READING
public static final AzResourceBase.FormalStatus READING
-
CREATING
public static final AzResourceBase.FormalStatus CREATING
-
-
Method Detail
-
values
public static AzResourceBase.FormalStatus[] 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 (AzResourceBase.FormalStatus c : AzResourceBase.FormalStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AzResourceBase.FormalStatus 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
-
dummyFormalize
public static AzResourceBase.FormalStatus dummyFormalize(String status)
-
isRunning
public boolean isRunning()
-
isStopped
public boolean isStopped()
-
isFailed
public boolean isFailed()
-
isDeleted
public boolean isDeleted()
-
isCreating
public boolean isCreating()
-
isWriting
public boolean isWriting()
-
isReading
public boolean isReading()
-
isWaiting
public boolean isWaiting()
-
isUnknown
public boolean isUnknown()
-
isWritable
public boolean isWritable()
-
isConnected
public boolean isConnected()
-
-