public static class CreateServerGroupRequest.CreateServerGroupRequestStickySessionConfig
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.
|
| 构造器和说明 |
|---|
CreateServerGroupRequestStickySessionConfig() |
@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**.
Default value: **1000**.
> This parameter takes effect only 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)
> This parameter takes effect when the **ServerGroupType** parameter is set to **Instance** or **Ip**.
@NameInMap(value="StickySessionType") public String stickySessionType
The method that is used to handle a cookie. Valid values:
* **Insert** (default): inserts a cookie.
ALB inserts a session cookie (SERVERID) into the first HTTP or HTTPS response that is sent to a client. Subsequent requests to ALB carry this cookie, and ALB determines the destination servers of the requests based on the cookies.
* **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**.
public CreateServerGroupRequestStickySessionConfig()
public static CreateServerGroupRequest.CreateServerGroupRequestStickySessionConfig build(Map<String,?> map) throws Exception
Exceptionpublic CreateServerGroupRequest.CreateServerGroupRequestStickySessionConfig setCookie(String cookie)
public String getCookie()
public CreateServerGroupRequest.CreateServerGroupRequestStickySessionConfig setCookieTimeout(Integer cookieTimeout)
public Integer getCookieTimeout()
public CreateServerGroupRequest.CreateServerGroupRequestStickySessionConfig setStickySessionEnabled(Boolean stickySessionEnabled)
public Boolean getStickySessionEnabled()
public CreateServerGroupRequest.CreateServerGroupRequestStickySessionConfig setStickySessionType(String stickySessionType)
public String getStickySessionType()
Copyright © 2024. All rights reserved.