public static class UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestStickySessionConfig
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
cookie
The cookie to be configured on the server.
|
Integer |
cookieTimeout
The timeout period of a cookie.
|
Boolean |
stickySessionEnabled
Specifies whether to enable session persistence.
|
String |
stickySessionType
The method that is used to handle a cookie.
|
| 构造器和说明 |
|---|
UpdateServerGroupAttributeRequestStickySessionConfig() |
@NameInMap(value="Cookie") public String cookie
The cookie to be configured on the server.
The cookie must be 1 to 200 characters in length and can contain only ASCII characters and digits. It cannot contain commas (,), semicolons (;), or space characters. It cannot start with a dollar sign ($).
> This parameter takes effect when the **StickySessionEnabled** parameter is set to **true** and the **StickySessionType** parameter is set to **Server**.
@NameInMap(value="CookieTimeout") public Integer cookieTimeout
The timeout period of a cookie. Unit: seconds.
Valid values: **1** to **86400**.
> This parameter takes effect when the **StickySessionEnabled** parameter is set to **true** and the **StickySessionType** parameter is set to **Insert**.
@NameInMap(value="StickySessionEnabled") public Boolean stickySessionEnabled
Specifies whether to enable session persistence. Valid values:
* **true**
* **false** (default)
@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 forwards 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.
> This parameter takes effect when the **StickySessionEnabled** parameter is set to **true** for the server group.
public UpdateServerGroupAttributeRequestStickySessionConfig()
public static UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestStickySessionConfig build(Map<String,?> map) throws Exception
Exceptionpublic UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestStickySessionConfig setCookie(String cookie)
public String getCookie()
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestStickySessionConfig setCookieTimeout(Integer cookieTimeout)
public Integer getCookieTimeout()
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestStickySessionConfig setStickySessionEnabled(Boolean stickySessionEnabled)
public Boolean getStickySessionEnabled()
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestStickySessionConfig setStickySessionType(String stickySessionType)
public String getStickySessionType()
Copyright © 2024. All rights reserved.