Enum CertificateState
- java.lang.Object
-
- java.lang.Enum<CertificateState>
-
- com.microsoft.azure.batch.protocol.models.CertificateState
-
- All Implemented Interfaces:
Serializable
,Comparable<CertificateState>
public enum CertificateState extends Enum<CertificateState>
Defines values for CertificateState.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVE
The Certificate is available for use in Pools.DELETE_FAILED
The user requested that the Certificate be deleted, but there are Pools that still have references to the Certificate, or it is still installed on one or more Nodes.DELETING
The user has requested that the Certificate be deleted, but the delete operation has not yet completed.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CertificateState
fromString(String value)
Parses a serialized value to a CertificateState instance.String
toString()
static CertificateState
valueOf(String name)
Returns the enum constant of this type with the specified name.static CertificateState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTIVE
public static final CertificateState ACTIVE
The Certificate is available for use in Pools.
-
DELETING
public static final CertificateState DELETING
The user has requested that the Certificate be deleted, but the delete operation has not yet completed. You may not reference the Certificate when creating or updating Pools.
-
DELETE_FAILED
public static final CertificateState DELETE_FAILED
The user requested that the Certificate be deleted, but there are Pools that still have references to the Certificate, or it is still installed on one or more Nodes. (The latter can occur if the Certificate has been removed from the Pool, but the Compute Node has not yet restarted. Compute Nodes refresh their Certificates only when they restart.) You may use the cancel Certificate delete operation to cancel the delete, or the delete Certificate operation to retry the delete.
-
-
Method Detail
-
values
public static CertificateState[] 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 (CertificateState c : CertificateState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CertificateState 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 CertificateState fromString(String value)
Parses a serialized value to a CertificateState instance.- Parameters:
value
- the serialized value to parse.- Returns:
- the parsed CertificateState object, or null if unable to parse.
-
toString
public String toString()
- Overrides:
toString
in classEnum<CertificateState>
-
-