SessionAffinityConfiguration Class
- java.
lang. Object - com.
azure. ai. agents. models. SessionAffinityConfiguration
- com.
Implements
public final class SessionAffinityConfiguration
implements JsonSerializable<SessionAffinityConfiguration>
Request settings that control Model Router session affinity.
Constructor Summary
| Constructor | Description |
|---|---|
| SessionAffinityConfiguration() |
Creates an instance of Session |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Session |
fromJson(JsonReader jsonReader)
Reads an instance of Session |
|
Session |
getMode()
Get the mode property: Controls whether Model Router applies session affinity to this request. |
| String |
getSessionId()
Get the session |
|
Session |
setMode(SessionAffinityRequestMode mode)
Set the mode property: Controls whether Model Router applies session affinity to this request. |
|
Session |
setSessionId(String sessionId)
Set the session |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
SessionAffinityConfiguration
public SessionAffinityConfiguration()
Creates an instance of SessionAffinityConfiguration class.
Method Details
fromJson
public static SessionAffinityConfiguration fromJson(JsonReader jsonReader)
Reads an instance of SessionAffinityConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
getMode
public SessionAffinityRequestMode getMode()
Get the mode property: Controls whether Model Router applies session affinity to this request.
Returns:
getSessionId
public String getSessionId()
Get the sessionId property: An opaque, application-owned conversation identifier. Use the same value for related requests. The value is not returned in the response and must not contain secrets or personally identifiable information.
Returns:
setMode
public SessionAffinityConfiguration setMode(SessionAffinityRequestMode mode)
Set the mode property: Controls whether Model Router applies session affinity to this request.
Parameters:
Returns:
setSessionId
public SessionAffinityConfiguration setSessionId(String sessionId)
Set the sessionId property: An opaque, application-owned conversation identifier. Use the same value for related requests. The value is not returned in the response and must not contain secrets or personally identifiable information.
Parameters:
Returns: