public class CreateLiveSnapshotTemplateRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| CreateLiveSnapshotTemplateRequest() | 
| CreateLiveSnapshotTemplateRequest(CreateLiveSnapshotTemplateRequest 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 | getCosAppId()Get Cos 应用 ID。 | 
| String | getCosBucket()Get Cos Bucket名称。
注:CosBucket参数值不能包含-[appid] 部分。 | 
| String | getCosFileName()Get Cos 文件名称。
如不传,实际按默认值
{StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}
生效 | 
| String | getCosPrefix()Get Cos Bucket文件夹前缀。
如不传,实际按默认值
/{Year}-{Month}-{Day}
生效 | 
| String | getCosRegion()Get Cos地区。 | 
| String | getDescription()Get 描述信息。
长度上限:1024字节。
仅支持中文、英文、数字、_、-。 | 
| Long | getHeight()Get 截图高度。默认:0(原始高)。
范围:0-2000 。 | 
| Long | getPornFlag()Get 是否开启鉴黄,0:不开启,1:开启。默认:0。 | 
| Long | getSnapshotInterval()Get 截图间隔,单位s,默认10s。
范围: 2s ~ 300s。 | 
| String | getTemplateName()Get 模板名称。
长度上限:255字节。
仅支持中文、英文、数字、_、-。 | 
| Long | getWidth()Get 截图宽度。默认:0(原始宽)。
范围:0-3000 。 | 
| void | setCosAppId(Long CosAppId)Set Cos 应用 ID。 | 
| void | setCosBucket(String CosBucket)Set Cos Bucket名称。
注:CosBucket参数值不能包含-[appid] 部分。 | 
| void | setCosFileName(String CosFileName)Set Cos 文件名称。
如不传,实际按默认值
{StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}
生效 | 
| void | setCosPrefix(String CosPrefix)Set Cos Bucket文件夹前缀。
如不传,实际按默认值
/{Year}-{Month}-{Day}
生效 | 
| void | setCosRegion(String CosRegion)Set Cos地区。 | 
| void | setDescription(String Description)Set 描述信息。
长度上限:1024字节。
仅支持中文、英文、数字、_、-。 | 
| void | setHeight(Long Height)Set 截图高度。默认:0(原始高)。
范围:0-2000 。 | 
| void | setPornFlag(Long PornFlag)Set 是否开启鉴黄,0:不开启,1:开启。默认:0。 | 
| void | setSnapshotInterval(Long SnapshotInterval)Set 截图间隔,单位s,默认10s。
范围: 2s ~ 300s。 | 
| void | setTemplateName(String TemplateName)Set 模板名称。
长度上限:255字节。
仅支持中文、英文、数字、_、-。 | 
| void | setWidth(Long Width)Set 截图宽度。默认:0(原始宽)。
范围:0-3000 。 | 
| 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 CreateLiveSnapshotTemplateRequest()
public CreateLiveSnapshotTemplateRequest(CreateLiveSnapshotTemplateRequest source)
public String getTemplateName()
public void setTemplateName(String TemplateName)
TemplateName - 模板名称。
长度上限:255字节。
仅支持中文、英文、数字、_、-。public Long getCosAppId()
public void setCosAppId(Long CosAppId)
CosAppId - Cos 应用 ID。public String getCosBucket()
public void setCosBucket(String CosBucket)
CosBucket - Cos Bucket名称。
注:CosBucket参数值不能包含-[appid] 部分。public String getCosRegion()
public void setCosRegion(String CosRegion)
CosRegion - Cos地区。public String getDescription()
public void setDescription(String Description)
Description - 描述信息。
长度上限:1024字节。
仅支持中文、英文、数字、_、-。public Long getSnapshotInterval()
public void setSnapshotInterval(Long SnapshotInterval)
SnapshotInterval - 截图间隔,单位s,默认10s。
范围: 2s ~ 300s。public Long getWidth()
public void setWidth(Long Width)
Width - 截图宽度。默认:0(原始宽)。
范围:0-3000 。public Long getHeight()
public void setHeight(Long Height)
Height - 截图高度。默认:0(原始高)。
范围:0-2000 。public Long getPornFlag()
public void setPornFlag(Long PornFlag)
PornFlag - 是否开启鉴黄,0:不开启,1:开启。默认:0。public String getCosPrefix()
public void setCosPrefix(String CosPrefix)
CosPrefix - Cos Bucket文件夹前缀。
如不传,实际按默认值
/{Year}-{Month}-{Day}
生效public String getCosFileName()
public void setCosFileName(String CosFileName)
CosFileName - Cos 文件名称。
如不传,实际按默认值
{StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}
生效Copyright © 2025. All rights reserved.