Class Affinity
java.lang.Object
com.azure.core.util.ExpandableStringEnum<Affinity>
com.azure.resourcemanager.appcontainers.models.Affinity
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
Sticky Session Affinity.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Affinity
fromString
(String name) Creates or finds a Affinity from its string representation.static Collection
<Affinity> values()
Gets known Affinity values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
STICKY
Static value sticky for Affinity. -
NONE
Static value none for Affinity.
-
-
Constructor Details
-
Affinity
Deprecated.Use thefromString(String)
factory method.Creates a new instance of Affinity value.
-
-
Method Details
-
fromString
Creates or finds a Affinity from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding Affinity.
-
values
Gets known Affinity values.- Returns:
- known Affinity values.
-
fromString(String)
factory method.