Package jetbrains.buildServer.clouds
Enum CloudConstants.AgentRemovePolicyValue
- java.lang.Object
-
- java.lang.Enum<CloudConstants.AgentRemovePolicyValue>
-
- jetbrains.buildServer.clouds.CloudConstants.AgentRemovePolicyValue
-
- All Implemented Interfaces:
Serializable
,Comparable<CloudConstants.AgentRemovePolicyValue>
- Enclosing interface:
- CloudConstants
public static enum CloudConstants.AgentRemovePolicyValue extends Enum<CloudConstants.AgentRemovePolicyValue>
Possible values forCloudConstants.AGENT_REMOVE_POLICY
- Since:
- 7.1
-
-
Enum Constant Summary
Enum Constants Enum Constant Description RemoveAgent
Default policy forCloudConstants.AGENT_REMOVE_POLICY
, agent instance will be removed after related cloud instance is stopped and agent is disconnected.Unauthorize
Agent instance will be unauthorized and not removed after related cloud instance is stopped and agent is disconnected.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getValue()
static CloudConstants.AgentRemovePolicyValue
valueOf(String name)
Returns the enum constant of this type with the specified name.static CloudConstants.AgentRemovePolicyValue[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RemoveAgent
public static final CloudConstants.AgentRemovePolicyValue RemoveAgent
Default policy forCloudConstants.AGENT_REMOVE_POLICY
, agent instance will be removed after related cloud instance is stopped and agent is disconnected.- Since:
- 7.1
-
Unauthorize
public static final CloudConstants.AgentRemovePolicyValue Unauthorize
Agent instance will be unauthorized and not removed after related cloud instance is stopped and agent is disconnected. This will let the agent record be reused when new cloud instance is restarted again- Since:
- 7.1
-
-
Method Detail
-
values
public static CloudConstants.AgentRemovePolicyValue[] 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 (CloudConstants.AgentRemovePolicyValue c : CloudConstants.AgentRemovePolicyValue.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CloudConstants.AgentRemovePolicyValue 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
-
getValue
@NotNull public String getValue()
-
-