public static class ListServerGroupsResponseBody.ListServerGroupsResponseBodyServerGroupsStickySessionConfig
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
cookie
The cookie that is configured on the server.
|
Integer |
cookieTimeout
The timeout period of a cookie.
|
Boolean |
stickySessionEnabled
Indicates whether session persistence is enabled.
|
String |
stickySessionType
The method that is used to handle a cookie.
|
| 构造器和说明 |
|---|
ListServerGroupsResponseBodyServerGroupsStickySessionConfig() |
@NameInMap(value="Cookie") public String cookie
The cookie that is configured on the server.
@NameInMap(value="CookieTimeout") public Integer cookieTimeout
The timeout period of a cookie. Unit: seconds. Valid values: **1** to **86400**.
> This parameter takes effect only when **StickySessionEnabled** is set to **true** and **StickySessionType** is set to **Insert**.
@NameInMap(value="StickySessionEnabled") public Boolean stickySessionEnabled
Indicates whether session persistence is enabled. Valid values:
* **true**
* **false**
@NameInMap(value="StickySessionType") public String stickySessionType
The method that is used to handle a cookie. Valid values:
* **Insert**: inserts a cookie. ALB inserts a cookie (SERVERID) into the first HTTP or HTTPS response packet that is sent to a client. The next request from the client contains this cookie and the listener distributes this request to the recorded backend server.
* **Server**: rewrites a cookie. When ALB detects a user-defined cookie, it overwrites the original cookie with the user-defined cookie. Subsequent requests to ALB carry this user-defined cookie, and ALB determines the destination servers of the requests based on the cookies.
public ListServerGroupsResponseBodyServerGroupsStickySessionConfig()
public static ListServerGroupsResponseBody.ListServerGroupsResponseBodyServerGroupsStickySessionConfig build(Map<String,?> map) throws Exception
Exceptionpublic ListServerGroupsResponseBody.ListServerGroupsResponseBodyServerGroupsStickySessionConfig setCookie(String cookie)
public String getCookie()
public ListServerGroupsResponseBody.ListServerGroupsResponseBodyServerGroupsStickySessionConfig setCookieTimeout(Integer cookieTimeout)
public Integer getCookieTimeout()
public ListServerGroupsResponseBody.ListServerGroupsResponseBodyServerGroupsStickySessionConfig setStickySessionEnabled(Boolean stickySessionEnabled)
public Boolean getStickySessionEnabled()
public ListServerGroupsResponseBody.ListServerGroupsResponseBodyServerGroupsStickySessionConfig setStickySessionType(String stickySessionType)
public String getStickySessionType()
Copyright © 2024. All rights reserved.