ContainerGroupRestartPolicy Class

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 ContainerGroupRestartPolicy ALWAYS

Static value Always for ContainerGroupRestartPolicy.

static final ContainerGroupRestartPolicy NEVER

Static value Never for ContainerGroupRestartPolicy.

static final ContainerGroupRestartPolicy ON_FAILURE

Static value OnFailure for ContainerGroupRestartPolicy.

Constructor Summary

Constructor Description
ContainerGroupRestartPolicy()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ContainerGroupRestartPolicy value.

Method Summary

Modifier and Type Method and Description
static ContainerGroupRestartPolicy fromString(String name)

Creates or finds a ContainerGroupRestartPolicy from its string representation.

static Collection<ContainerGroupRestartPolicy> values()

Gets known ContainerGroupRestartPolicy values.

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

Use the fromString(String name) factory method.

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:

name - a name to look for.

Returns:

the corresponding ContainerGroupRestartPolicy.

values

public static Collection values()

Gets known ContainerGroupRestartPolicy values.

Returns:

known ContainerGroupRestartPolicy values.

Applies to