Share via


DiskMode Class

public final class DiskMode
extends ExpandableStringEnum<DiskMode>

Defines the different types of disk modes.

Field Summary

Modifier and Type Field and Description
static final DiskMode INDEPENDENT_NONPERSISTENT

Static value independent_nonpersistent for DiskMode.

static final DiskMode INDEPENDENT_PERSISTENT

Static value independent_persistent for DiskMode.

static final DiskMode PERSISTENT

Static value persistent for DiskMode.

Constructor Summary

Constructor Description
DiskMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DiskMode value.

Method Summary

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

Creates or finds a DiskMode from its string representation.

static Collection<DiskMode> values()

Gets known DiskMode values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

INDEPENDENT_NONPERSISTENT

public static final DiskMode INDEPENDENT_NONPERSISTENT

Static value independent_nonpersistent for DiskMode.

INDEPENDENT_PERSISTENT

public static final DiskMode INDEPENDENT_PERSISTENT

Static value independent_persistent for DiskMode.

PERSISTENT

public static final DiskMode PERSISTENT

Static value persistent for DiskMode.

Constructor Details

DiskMode

@Deprecated
public DiskMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DiskMode value.

Method Details

fromString

public static DiskMode fromString(String name)

Creates or finds a DiskMode from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding DiskMode.

values

public static Collection<DiskMode> values()

Gets known DiskMode values.

Returns:

known DiskMode values.

Applies to