Package dev.le_app.mcss_api_java
Enum Class LastBackupState
- All Implemented Interfaces:
Serializable,Comparable<LastBackupState>,Constable
The state of the last backup.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe backup has been cancelledThe backup has finished successfullyThe backup has failedThe backup is runningThe backup has never run -
Method Summary
Modifier and TypeMethodDescriptionstatic LastBackupStatefindByVal(int abbr) Gets the last backup state from the value.intgetValue()Gets associated value for the last backup state - Used for API requests.static LastBackupStateReturns the enum constant of this class with the specified name.static LastBackupState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEVER_RUN
The backup has never run -
IN_PROGRESS
The backup is running -
COMPLETED
The backup has finished successfully -
FAILED
The backup has failed -
CANCELLED
The backup has been cancelled
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()Gets associated value for the last backup state - Used for API requests.- Returns:
- The last backup state as INT.
-
findByVal
Gets the last backup state from the value.- Parameters:
abbr- The value to get the last backup state from.- Returns:
- The last backup state.
-