public enum DockerContainerRestartPolicyName extends Enum<DockerContainerRestartPolicyName>
Enum Constant and Description |
---|
ALWAYS |
NO |
ON_FAILURE |
UNLESS_STOPPED |
Modifier and Type | Method and Description |
---|---|
static DockerContainerRestartPolicyName |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DockerContainerRestartPolicyName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DockerContainerRestartPolicyName NO
public static final DockerContainerRestartPolicyName UNLESS_STOPPED
public static final DockerContainerRestartPolicyName ALWAYS
public static final DockerContainerRestartPolicyName ON_FAILURE
public static DockerContainerRestartPolicyName[] values()
for (DockerContainerRestartPolicyName c : DockerContainerRestartPolicyName.values()) System.out.println(c);
public static DockerContainerRestartPolicyName 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 nullCopyright © 2016–2020. All rights reserved.