RepairAction Class

public final class RepairAction
extends ExpandableStringEnum<RepairAction>

Type of repair action (replace, restart, reimage) that will be used for repairing unhealthy virtual machines in the scale set. Default value is replace.

Field Summary

Modifier and Type Field and Description
static final RepairAction REIMAGE

Static value Reimage for RepairAction.

static final RepairAction REPLACE

Static value Replace for RepairAction.

static final RepairAction RESTART

Static value Restart for RepairAction.

Constructor Summary

Constructor Description
RepairAction()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of RepairAction value.

Method Summary

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

Creates or finds a RepairAction from its string representation.

static Collection<RepairAction> values()

Gets known RepairAction values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

REIMAGE

public static final RepairAction REIMAGE

Static value Reimage for RepairAction.

REPLACE

public static final RepairAction REPLACE

Static value Replace for RepairAction.

RESTART

public static final RepairAction RESTART

Static value Restart for RepairAction.

Constructor Details

RepairAction

@Deprecated
public RepairAction()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of RepairAction value.

Method Details

fromString

public static RepairAction fromString(String name)

Creates or finds a RepairAction from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding RepairAction.

values

public static Collection values()

Gets known RepairAction values.

Returns:

known RepairAction values.

Applies to