Class CreateAnimatedGraphicsTemplateRequest


  • public class CreateAnimatedGraphicsTemplateRequest
    extends AbstractModel
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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 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 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.
    • Constructor Detail

      • CreateAnimatedGraphicsTemplateRequest

        public CreateAnimatedGraphicsTemplateRequest()
      • CreateAnimatedGraphicsTemplateRequest

        public 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.
    • Method Detail

      • getFps

        public Long getFps()
        Get 帧率,取值范围:[1, 30],单位:Hz。
        Returns:
        Fps 帧率,取值范围:[1, 30],单位:Hz。
      • setFps

        public void setFps​(Long Fps)
        Set 帧率,取值范围:[1, 30],单位:Hz。
        Parameters:
        Fps - 帧率,取值范围:[1, 30],单位:Hz。
      • getWidth

        public Long getWidth()
        Get 动图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。
      • 当 Width、Height 均为 0,则分辨率同源;
      • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
      • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
      • 当 Width、Height 均非 0,则分辨率按用户指定。
      • 默认值:0。
Returns:
Width 动图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。
    Parameters:
    Width - 动图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。