public class CreateCloudModerationRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
CreateCloudModerationRequest() |
CreateCloudModerationRequest(CreateCloudModerationRequest 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 |
---|---|
ModerationParams |
getModerationParams()
Get Control parameters for cloud moderation.
|
ModerationStorageParams |
getModerationStorageParams()
Get Parameters for uploading cloud moderation files to the cloud storage.
|
Long |
getResourceExpiredHour()
Get Validity period for calling the task ID, which starts upon successful initiation of the task and obtaining the task ID.
|
String |
getRoomId()
Get [RoomId](https://www.tencentcloud.comom/document/product/647/46351?from_cn_redirect=1#roomid) of TRTC, which is the RoomId corresponding to the TRTC room.
|
Long |
getRoomIdType()
Get Type of the TRTC room number.
|
Long |
getSdkAppId()
Get [SdkAppId](https://www.tencentcloud.comom/document/product/647/46351?from_cn_redirect=1#sdkappid) of TRTC, which is the same as the SdkAppId corresponding to the TRTC room.
|
String |
getUserId()
Get Chatbot's UserId, which is used to enter the room and initiate a moderation task.
|
String |
getUserSig()
Get Signature verification corresponding to the chatbot's UserId, namely, the UserId and UserSig serve as the login password for the chatbot to enter the room.
|
void |
setModerationParams(ModerationParams ModerationParams)
Set Control parameters for cloud moderation.
|
void |
setModerationStorageParams(ModerationStorageParams ModerationStorageParams)
Set Parameters for uploading cloud moderation files to the cloud storage.
|
void |
setResourceExpiredHour(Long ResourceExpiredHour)
Set Validity period for calling the task ID, which starts upon successful initiation of the task and obtaining the task ID.
|
void |
setRoomId(String RoomId)
Set [RoomId](https://www.tencentcloud.comom/document/product/647/46351?from_cn_redirect=1#roomid) of TRTC, which is the RoomId corresponding to the TRTC room.
|
void |
setRoomIdType(Long RoomIdType)
Set Type of the TRTC room number.
|
void |
setSdkAppId(Long SdkAppId)
Set [SdkAppId](https://www.tencentcloud.comom/document/product/647/46351?from_cn_redirect=1#sdkappid) of TRTC, which is the same as the SdkAppId corresponding to the TRTC room.
|
void |
setUserId(String UserId)
Set Chatbot's UserId, which is used to enter the room and initiate a moderation task.
|
void |
setUserSig(String UserSig)
Set Signature verification corresponding to the chatbot's UserId, namely, the UserId and UserSig serve as the login password for the chatbot 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, toJsonString
public CreateCloudModerationRequest()
public CreateCloudModerationRequest(CreateCloudModerationRequest source)
public Long getSdkAppId()
public void setSdkAppId(Long SdkAppId)
SdkAppId
- [SdkAppId](https://www.tencentcloud.comom/document/product/647/46351?from_cn_redirect=1#sdkappid) of TRTC, which is the same as the SdkAppId corresponding to the TRTC room.public String getRoomId()
public void setRoomId(String RoomId)
RoomId
- [RoomId](https://www.tencentcloud.comom/document/product/647/46351?from_cn_redirect=1#roomid) of TRTC, which is the RoomId corresponding to the TRTC room.public String getUserId()
public void setUserId(String UserId)
UserId
- Chatbot's UserId, which is used to enter the room and initiate a moderation task. [*Note] This UserId should not be duplicated with the UserIds of the current anchors or audience members in the room. If multiple moderation tasks are initiated in one room, the chatbot's UserId should also be unique; otherwise, the previous moderation task is interrupted. It is recommended to include the room ID as part of the UserId, ensuring that the chatbot's UserId is unique in the room.public String getUserSig()
public void setUserSig(String UserSig)
UserSig
- Signature verification corresponding to the chatbot's UserId, namely, the UserId and UserSig serve as the login password for the chatbot to enter the room. For specific calculation methods, see TRTC solution for calculating UserSig.public ModerationParams getModerationParams()
public void setModerationParams(ModerationParams ModerationParams)
ModerationParams
- Control parameters for cloud moderation.public ModerationStorageParams getModerationStorageParams()
public void setModerationStorageParams(ModerationStorageParams ModerationStorageParams)
ModerationStorageParams
- Parameters for uploading cloud moderation files to the cloud storage.public Long getRoomIdType()
public void setRoomIdType(Long RoomIdType)
RoomIdType
- Type of the TRTC room number. [*Note] It should be the same as the type of the RoomId corresponding to the recording room. 0: string type; 1: 32-bit integer type (default value). Example value: 1.public Long getResourceExpiredHour()
public void setResourceExpiredHour(Long ResourceExpiredHour)
ResourceExpiredHour
- Validity period for calling the task ID, which starts upon successful initiation of the task and obtaining the task ID. After the timeout, APIs such as querying, updating, or stopping cannot be called, but the moderation task is not stopped. The unit of the parameter is hours, with a default value of 24 hours (1 day). The maximum value is 72 hours (3 days), while the minimum value is 6 hours. For example, if this parameter is not specified, the validity period for calling the querying, updating, and stopping slicing APIs is 24 hours upon the successful start of slicing.Copyright © 2025. All rights reserved.