SnapshotAccessState Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. compute. models. SnapshotAccessState
- com.
- com.
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
Snapshot |
AVAILABLE
The snapshot can be used for restore, copy to different region, and download to offline. |
|
static final
Snapshot |
AVAILABLE_WITH_INSTANT_ACCESS
The snapshot can be used for restoring disks with fast performance, copied and downloaded. |
|
static final
Snapshot |
INSTANT_ACCESS
The snapshot can be used for restoring disks with fast performance but cannot be copied or downloaded. |
|
static final
Snapshot |
PENDING
The snapshot cannot be used for restore, copy or download to offline. |
|
static final
Snapshot |
UNKNOWN
Default value. |
Constructor Summary
| Constructor | Description |
|---|---|
| SnapshotAccessState() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Snapshot |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Snapshot |
fromString(String name)
Creates or finds a Snapshot |
|
static
Collection<Snapshot |
values()
Gets known Snapshot |
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
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:
Returns:
values
public static Collection<SnapshotAccessState> values()
Gets known SnapshotAccessState values.
Returns: