Class PublicNetworkAccess
java.lang.Object
com.azure.core.util.ExpandableStringEnum<PublicNetworkAccess>
com.azure.resourcemanager.redis.models.PublicNetworkAccess
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class PublicNetworkAccess
extends com.azure.core.util.ExpandableStringEnum<PublicNetworkAccess>
Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be
'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is
'Enabled'.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PublicNetworkAccess
Static value Disabled for PublicNetworkAccess.static final PublicNetworkAccess
Static value Enabled for PublicNetworkAccess. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PublicNetworkAccess
fromString
(String name) Creates or finds a PublicNetworkAccess from its string representation.static Collection
<PublicNetworkAccess> values()
Gets known PublicNetworkAccess values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
ENABLED
Static value Enabled for PublicNetworkAccess. -
DISABLED
Static value Disabled for PublicNetworkAccess.
-
-
Constructor Details
-
PublicNetworkAccess
Deprecated.Use thefromString(String)
factory method.Creates a new instance of PublicNetworkAccess value.
-
-
Method Details
-
fromString
Creates or finds a PublicNetworkAccess from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding PublicNetworkAccess.
-
values
Gets known PublicNetworkAccess values.- Returns:
- known PublicNetworkAccess values.
-
fromString(String)
factory method.