SnapshotAccessState Class

public final class SnapshotAccessState
extends ExpandableStringEnum<SnapshotAccessState>

The state of snapshot which determines the access availability of the snapshot.

Field Summary

Modifier and Type Field and Description
static final SnapshotAccessState AVAILABLE

The snapshot can be used for restore, copy to different region, and download to offline.

static final SnapshotAccessState AVAILABLE_WITH_INSTANT_ACCESS

The snapshot can be used for restoring disks with fast performance, copied and downloaded.

static final SnapshotAccessState INSTANT_ACCESS

The snapshot can be used for restoring disks with fast performance but cannot be copied or downloaded.

static final SnapshotAccessState PENDING

The snapshot cannot be used for restore, copy or download to offline.

static final SnapshotAccessState UNKNOWN

Default value.

Constructor Summary

Constructor Description
SnapshotAccessState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SnapshotAccessState value.

Method Summary

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

Creates or finds a SnapshotAccessState from its string representation.

static Collection<SnapshotAccessState> values()

Gets known SnapshotAccessState values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

AVAILABLE

public static final SnapshotAccessState AVAILABLE

The snapshot can be used for restore, copy to different region, and download to offline.

AVAILABLE_WITH_INSTANT_ACCESS

public static final SnapshotAccessState AVAILABLE_WITH_INSTANT_ACCESS

The snapshot can be used for restoring disks with fast performance, copied and downloaded.

INSTANT_ACCESS

public static final SnapshotAccessState INSTANT_ACCESS

The snapshot can be used for restoring disks with fast performance but cannot be copied or downloaded.

PENDING

public static final SnapshotAccessState PENDING

The snapshot cannot be used for restore, copy or download to offline.

UNKNOWN

public static final SnapshotAccessState UNKNOWN

Default value.

Constructor Details

SnapshotAccessState

@Deprecated
public SnapshotAccessState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SnapshotAccessState value.

Method Details

fromString

public static SnapshotAccessState fromString(String name)

Creates or finds a SnapshotAccessState from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding SnapshotAccessState.

values

public static Collection<SnapshotAccessState> values()

Gets known SnapshotAccessState values.

Returns:

known SnapshotAccessState values.

Applies to