public class AgentParams extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| AgentParams() | 
| AgentParams(AgentParams 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 | 
|---|---|
| Long | getMaxIdleTime()Get The timeout period (seconds) for relaying to stop automatically after all the users whose streams are mixed leave the room. | 
| String | getUserId()Get The [user ID](https://intl.cloud.tencent.com/document/product/647/37714) of the relaying robot in the TRTC room, which cannot be the same as a user ID already in use. | 
| String | getUserSig()Get The signature (similar to a login password) required for the relaying robot to enter the room. | 
| void | setMaxIdleTime(Long MaxIdleTime)Set The timeout period (seconds) for relaying to stop automatically after all the users whose streams are mixed leave the room. | 
| void | setUserId(String UserId)Set The [user ID](https://intl.cloud.tencent.com/document/product/647/37714) of the relaying robot in the TRTC room, which cannot be the same as a user ID already in use. | 
| void | setUserSig(String UserSig)Set The signature (similar to a login password) required for the relaying robot to enter the room. | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic AgentParams()
public AgentParams(AgentParams source)
public String getUserId()
public void setUserId(String UserId)
UserId - The [user ID](https://intl.cloud.tencent.com/document/product/647/37714) of the relaying robot in the TRTC room, which cannot be the same as a user ID already in use. We recommend you include the room ID in this user ID.public String getUserSig()
public void setUserSig(String UserSig)
UserSig - The signature (similar to a login password) required for the relaying robot to enter the room. For information on how to calculate the signature, see [What is UserSig?](https://intl.cloud.tencent.com/document/product/647/38104). |public Long getMaxIdleTime()
public void setMaxIdleTime(Long MaxIdleTime)
MaxIdleTime - The timeout period (seconds) for relaying to stop automatically after all the users whose streams are mixed leave the room. The value cannot be smaller than 5 or larger than 86400 (24 hours). Default value: 30.Copyright © 2025. All rights reserved.