Package com.amazon.jenkins.ec2fleet
Enum Class EC2AgentTerminationReason
- All Implemented Interfaces:
Serializable
,Comparable<EC2AgentTerminationReason>
,Constable
Enum to represent the reason for termination of an EC2 instance by the plugin.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic EC2AgentTerminationReason
fromDescription
(String desc) toString()
static EC2AgentTerminationReason
Returns the enum constant of this class with the specified name.static EC2AgentTerminationReason[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IDLE_FOR_TOO_LONG
-
MAX_TOTAL_USES_EXHAUSTED
-
EXCESS_CAPACITY
-
AGENT_DELETED
-
-
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
-
getDescription
-
fromDescription
-
toString
- Overrides:
toString
in classEnum<EC2AgentTerminationReason>
-