public class CreateAnimatedGraphicsTemplateRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| CreateAnimatedGraphicsTemplateRequest() | 
| CreateAnimatedGraphicsTemplateRequest(CreateAnimatedGraphicsTemplateRequest 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 | getComment()Get 模板描述信息,长度限制:256 个字符。 | 
| String | getFormat()Get 动图格式,取值为 gif 和 webp。默认为 gif。 | 
| Long | getFps()Get 帧率,取值范围:[1, 30],单位:Hz。 | 
| Long | getHeight()Get 动图高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。
当 Width、Height 均为 0,则分辨率同源;
当 Width 为 0,Height 非 0,则 Width 按比例缩放;
当 Width 非 0,Height 为 0,则 Height 按比例缩放;
当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。 | 
| String | getName()Get 转动图模板名称,长度限制:64 个字符。 | 
| Float | getQuality()Get 图片质量,取值范围:[1, 100],默认值为 75。 | 
| String | getResolutionAdaptive()Get 分辨率自适应,可选值:
open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
默认值:open。 | 
| Long | getSubAppId()Get 点播[应用](/document/product/266/14574) ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。 | 
| Long | getWidth()Get 动图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。
当 Width、Height 均为 0,则分辨率同源;
当 Width 为 0,Height 非 0,则 Width 按比例缩放;
当 Width 非 0,Height 为 0,则 Height 按比例缩放;
当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。 | 
| void | setComment(String Comment)Set 模板描述信息,长度限制:256 个字符。 | 
| void | setFormat(String Format)Set 动图格式,取值为 gif 和 webp。默认为 gif。 | 
| void | setFps(Long Fps)Set 帧率,取值范围:[1, 30],单位:Hz。 | 
| void | setHeight(Long Height)Set 动图高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。
当 Width、Height 均为 0,则分辨率同源;
当 Width 为 0,Height 非 0,则 Width 按比例缩放;
当 Width 非 0,Height 为 0,则 Height 按比例缩放;
当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。 | 
| void | setName(String Name)Set 转动图模板名称,长度限制:64 个字符。 | 
| void | setQuality(Float Quality)Set 图片质量,取值范围:[1, 100],默认值为 75。 | 
| void | setResolutionAdaptive(String ResolutionAdaptive)Set 分辨率自适应,可选值:
open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
默认值:open。 | 
| void | setSubAppId(Long SubAppId)Set 点播[应用](/document/product/266/14574) ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。 | 
| void | setWidth(Long Width)Set 动图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。
当 Width、Height 均为 0,则分辨率同源;
当 Width 为 0,Height 非 0,则 Width 按比例缩放;
当 Width 非 0,Height 为 0,则 Height 按比例缩放;
当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。 | 
| 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 CreateAnimatedGraphicsTemplateRequest()
public CreateAnimatedGraphicsTemplateRequest(CreateAnimatedGraphicsTemplateRequest source)
public Long getFps()
public void setFps(Long Fps)
Fps - 帧率,取值范围:[1, 30],单位:Hz。public Long getSubAppId()
public void setSubAppId(Long SubAppId)
SubAppId - 点播[应用](/document/product/266/14574) ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。public Long getWidth()
public void setWidth(Long Width)
Width - 动图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。
public Long getHeight()
public void setHeight(Long Height)
Height - 动图高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。
public String getResolutionAdaptive()
public void setResolutionAdaptive(String ResolutionAdaptive)
ResolutionAdaptive - 分辨率自适应,可选值:
public String getFormat()
public void setFormat(String Format)
Format - 动图格式,取值为 gif 和 webp。默认为 gif。public Float getQuality()
public void setQuality(Float Quality)
Quality - 图片质量,取值范围:[1, 100],默认值为 75。public String getName()
public void setName(String Name)
Name - 转动图模板名称,长度限制:64 个字符。public String getComment()
public void setComment(String Comment)
Comment - 模板描述信息,长度限制:256 个字符。Copyright © 2025. All rights reserved.