SessionAffinity Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. appplatform. models. SessionAffinity
- com.
- com.
public final class SessionAffinity
extends ExpandableStringEnum<SessionAffinity>
Type of the affinity, set this to Cookie to enable session affinity.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Session |
COOKIE
Static value Cookie for Session |
static final
Session |
NONE
Static value None for Session |
Constructor Summary
Constructor | Description |
---|---|
SessionAffinity() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Session |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Session |
fromString(String name)
Creates or finds a Session |
static
Collection<Session |
values()
Gets known Session |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
COOKIE
public static final SessionAffinity COOKIE
Static value Cookie for SessionAffinity.
NONE
public static final SessionAffinity NONE
Static value None for SessionAffinity.
Constructor Details
SessionAffinity
@Deprecated
public SessionAffinity()
Deprecated
Creates a new instance of SessionAffinity value.
Method Details
fromString
public static SessionAffinity fromString(String name)
Creates or finds a SessionAffinity from its string representation.
Parameters:
Returns:
values
public static Collection
Gets known SessionAffinity values.
Returns:
Applies to
Azure SDK for Java