你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
NetworkAccessPolicy Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. compute. models. NetworkAccessPolicy
- com.
- com.
public final class NetworkAccessPolicy
extends ExpandableStringEnum<NetworkAccessPolicy>
Policy for accessing the disk via network.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Network |
ALLOW_ALL
Static value Allow |
static final
Network |
ALLOW_PRIVATE
Static value Allow |
static final
Network |
DENY_ALL
Static value Deny |
Constructor Summary
Constructor | Description |
---|---|
NetworkAccessPolicy() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Network |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Network |
fromString(String name)
Creates or finds a Network |
static
Collection<Network |
values()
Gets known Network |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
ALLOW_ALL
public static final NetworkAccessPolicy ALLOW_ALL
Static value AllowAll for NetworkAccessPolicy.
ALLOW_PRIVATE
public static final NetworkAccessPolicy ALLOW_PRIVATE
Static value AllowPrivate for NetworkAccessPolicy.
DENY_ALL
public static final NetworkAccessPolicy DENY_ALL
Static value DenyAll for NetworkAccessPolicy.
Constructor Details
NetworkAccessPolicy
@Deprecated
public NetworkAccessPolicy()
Deprecated
Creates a new instance of NetworkAccessPolicy value.
Method Details
fromString
public static NetworkAccessPolicy fromString(String name)
Creates or finds a NetworkAccessPolicy from its string representation.
Parameters:
Returns:
values
public static Collection
Gets known NetworkAccessPolicy values.
Returns: