ContainerGroupRestartPolicy Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. containerinstance. models. ContainerGroupRestartPolicy
- com.
- com.
public final class ContainerGroupRestartPolicy
extends ExpandableStringEnum<ContainerGroupRestartPolicy>
Restart policy for all containers within the container group. - `Always` Always restart - `OnFailure` Restart on failure - `Never` Never restart.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Container |
ALWAYS
Static value Always for Container |
static final
Container |
NEVER
Static value Never for Container |
static final
Container |
ON_FAILURE
Static value On |
Constructor Summary
Constructor | Description |
---|---|
ContainerGroupRestartPolicy() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Container |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Container |
fromString(String name)
Creates or finds a Container |
static
Collection<Container |
values()
Gets known Container |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
ALWAYS
public static final ContainerGroupRestartPolicy ALWAYS
Static value Always for ContainerGroupRestartPolicy.
NEVER
public static final ContainerGroupRestartPolicy NEVER
Static value Never for ContainerGroupRestartPolicy.
ON_FAILURE
public static final ContainerGroupRestartPolicy ON_FAILURE
Static value OnFailure for ContainerGroupRestartPolicy.
Constructor Details
ContainerGroupRestartPolicy
@Deprecated
public ContainerGroupRestartPolicy()
Deprecated
Creates a new instance of ContainerGroupRestartPolicy value.
Method Details
fromString
public static ContainerGroupRestartPolicy fromString(String name)
Creates or finds a ContainerGroupRestartPolicy from its string representation.
Parameters:
Returns:
values
public static Collection
Gets known ContainerGroupRestartPolicy values.
Returns:
Applies to
Azure SDK for Java