public enum EC2AgentTerminationReason extends Enum<EC2AgentTerminationReason>
Enum Constant and Description |
---|
AGENT_DELETED |
EXCESS_CAPACITY |
IDLE_FOR_TOO_LONG |
MAX_TOTAL_USES_EXHAUSTED |
Modifier and Type | Method and Description |
---|---|
static EC2AgentTerminationReason |
fromDescription(String desc) |
String |
getDescription() |
String |
toString() |
static EC2AgentTerminationReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EC2AgentTerminationReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EC2AgentTerminationReason IDLE_FOR_TOO_LONG
public static final EC2AgentTerminationReason MAX_TOTAL_USES_EXHAUSTED
public static final EC2AgentTerminationReason EXCESS_CAPACITY
public static final EC2AgentTerminationReason AGENT_DELETED
public static EC2AgentTerminationReason[] values()
for (EC2AgentTerminationReason c : EC2AgentTerminationReason.values()) System.out.println(c);
public static EC2AgentTerminationReason valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getDescription()
public static EC2AgentTerminationReason fromDescription(String desc)
public String toString()
toString
in class Enum<EC2AgentTerminationReason>
Copyright © 2016–2023. All rights reserved.