UpgradeMode Class

public final class UpgradeMode
extends ExpandableStringEnum<UpgradeMode>

The upgrade mode of the cluster when new Service Fabric runtime version is available.

Field Summary

Modifier and Type Field and Description
static final UpgradeMode AUTOMATIC

Static value Automatic for UpgradeMode.

static final UpgradeMode MANUAL

Static value Manual for UpgradeMode.

Constructor Summary

Constructor Description
UpgradeMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of UpgradeMode value.

Method Summary

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

Creates or finds a UpgradeMode from its string representation.

static Collection<UpgradeMode> values()

Gets known UpgradeMode values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

AUTOMATIC

public static final UpgradeMode AUTOMATIC

Static value Automatic for UpgradeMode.

MANUAL

public static final UpgradeMode MANUAL

Static value Manual for UpgradeMode.

Constructor Details

UpgradeMode

@Deprecated
public UpgradeMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of UpgradeMode value.

Method Details

fromString

public static UpgradeMode fromString(String name)

Creates or finds a UpgradeMode from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding UpgradeMode.

values

public static Collection values()

Gets known UpgradeMode values.

Returns:

known UpgradeMode values.

Applies to