Class SnapshotAccessState
java.lang.Object
com.azure.core.util.ExpandableStringEnum<SnapshotAccessState>
com.azure.resourcemanager.compute.models.SnapshotAccessState
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class SnapshotAccessState
extends com.azure.core.util.ExpandableStringEnum<SnapshotAccessState>
The state of snapshot which determines the access availability of the snapshot.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SnapshotAccessStateThe snapshot can be used for restore, copy to different region, and download to offline.static final SnapshotAccessStateThe snapshot can be used for restoring disks with fast performance, copied and downloaded.static final SnapshotAccessStateThe snapshot can be used for restoring disks with fast performance but cannot be copied or downloaded.static final SnapshotAccessStateThe snapshot cannot be used for restore, copy or download to offline.static final SnapshotAccessStateDefault value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SnapshotAccessStatefromString(String name) Creates or finds a SnapshotAccessState from its string representation.static Collection<SnapshotAccessState> values()Gets known SnapshotAccessState values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
UNKNOWN
Default value. -
PENDING
The snapshot cannot be used for restore, copy or download to offline. -
AVAILABLE
The snapshot can be used for restore, copy to different region, and download to offline. -
INSTANT_ACCESS
The snapshot can be used for restoring disks with fast performance but cannot be copied or downloaded. -
AVAILABLE_WITH_INSTANT_ACCESS
The snapshot can be used for restoring disks with fast performance, copied and downloaded.
-
-
Constructor Details
-
SnapshotAccessState
Deprecated.Use thefromString(String)factory method.Creates a new instance of SnapshotAccessState value.
-
-
Method Details
-
fromString
Creates or finds a SnapshotAccessState from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding SnapshotAccessState.
-
values
Gets known SnapshotAccessState values.- Returns:
- known SnapshotAccessState values.
-
fromString(String)factory method.