public class CreateSessionRequest extends AbstractModel
Constructor and Description |
---|
CreateSessionRequest() |
CreateSessionRequest(CreateSessionRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getClientSession()
Get The client-side session data, which is obtained from the SDK.
|
String |
getRunMode()
Get The on-cloud running mode.
|
String |
getUserId()
Get The user’s unique ID.
|
String |
getUserIp()
Get Public IP of user’s application client, which is used for nearby scheduling.
|
void |
setClientSession(String ClientSession)
Set The client-side session data, which is obtained from the SDK.
|
void |
setRunMode(String RunMode)
Set The on-cloud running mode.
|
void |
setUserId(String UserId)
Set The user’s unique ID.
|
void |
setUserIp(String UserIp)
Set Public IP of user’s application client, which is used for nearby scheduling.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CreateSessionRequest()
public CreateSessionRequest(CreateSessionRequest source)
public String getUserId()
public void setUserId(String UserId)
UserId
- The user’s unique ID. Tencent Cloud does not parse the ID. You need to manage your own user IDs. Based on your needs, you can either define unique IDs for users or use timestamps to generate random IDs. Make sure the same ID is used when a user reconnects to your application.public String getUserIp()
public void setUserIp(String UserIp)
UserIp
- Public IP of user’s application client, which is used for nearby scheduling.public String getClientSession()
public void setClientSession(String ClientSession)
ClientSession
- The client-side session data, which is obtained from the SDK.public String getRunMode()
public void setRunMode(String RunMode)
RunMode
- The on-cloud running mode.
`RunWithoutClient`: Keep the application running on the cloud even when there are no client connections.
Empty string (default): Keep the application running on the cloud only when there are client connections.Copyright © 2023. All rights reserved.