Dela via


NetworkAccessPolicy Class

public final class NetworkAccessPolicy
extends ExpandableStringEnum<NetworkAccessPolicy>

Policy for accessing the disk via network.

Field Summary

Modifier and Type Field and Description
static final NetworkAccessPolicy ALLOW_ALL

Static value AllowAll for NetworkAccessPolicy.

static final NetworkAccessPolicy ALLOW_PRIVATE

Static value AllowPrivate for NetworkAccessPolicy.

static final NetworkAccessPolicy DENY_ALL

Static value DenyAll for NetworkAccessPolicy.

Constructor Summary

Constructor Description
NetworkAccessPolicy()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of NetworkAccessPolicy value.

Method Summary

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

Creates or finds a NetworkAccessPolicy from its string representation.

static Collection<NetworkAccessPolicy> values()

Gets known NetworkAccessPolicy values.

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

Use the fromString(String name) factory method.

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:

name - a name to look for.

Returns:

the corresponding NetworkAccessPolicy.

values

public static Collection values()

Gets known NetworkAccessPolicy values.

Returns:

known NetworkAccessPolicy values.

Applies to