All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencentcloudapi.vod.v20180717.models.StickerTrackItem Maven / Gradle / Ivy

/*
 * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tencentcloudapi.vod.v20180717.models;

import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class StickerTrackItem extends AbstractModel{

    /**
    * 贴图片段的媒体素材来源,可以是:
  • 点播的媒体文件 ID;
  • 其他媒体文件的下载 URL。
  • 注意:当使用其他媒体文件的下载 URL 作为素材来源,且开启了访问控制(如防盗链)时,需要在 URL 携带访问控制参数(如防盗链签名)。 */ @SerializedName("SourceMedia") @Expose private String SourceMedia; /** * 贴图的持续时间,单位为秒。 */ @SerializedName("Duration") @Expose private Float Duration; /** * 贴图在轨道上的起始时间,单位为秒。 */ @SerializedName("StartTime") @Expose private Float StartTime; /** * 原点位置,取值有:
  • Center:坐标原点为中心位置,如画布中心。
  • 默认值:Center。 */ @SerializedName("CoordinateOrigin") @Expose private String CoordinateOrigin; /** * 贴图原点距离画布原点的水平位置。支持 %、px 两种格式:
  • 当字符串以 % 结尾,表示贴图 XPos 为画布宽度指定百分比的位置,如 10% 表示 XPos 为画布宽度的 10%。
  • 当字符串以 px 结尾,表示贴图 XPos 单位为像素,如 100px 表示 XPos 为 100 像素。
  • 默认值:0px。 */ @SerializedName("XPos") @Expose private String XPos; /** * 贴图原点距离画布原点的垂直位置。支持 %、px 两种格式:
  • 当字符串以 % 结尾,表示贴图 YPos 为画布高度指定百分比的位置,如 10% 表示 YPos 为画布高度的 10%。
  • 当字符串以 px 结尾,表示贴图 YPos 单位为像素,如 100px 表示 YPos 为 100 像素。
  • 默认值:0px。 */ @SerializedName("YPos") @Expose private String YPos; /** * 贴图的宽度。支持 %、px 两种格式:
  • 当字符串以 % 结尾,表示贴图 Width 为画布宽度的百分比大小,如 10% 表示 Width 为画布宽度的 10%。
  • 当字符串以 px 结尾,表示贴图 Width 单位为像素,如 100px 表示 Width 为 100 像素。
  • 当 Width、Height 均为空,则 Width 和 Height 取贴图素材本身的 Width、Height。
  • 当 Width 为空0,Height 非空,则 Width 按比例缩放
  • 当 Width 非空,Height 为空,则 Height 按比例缩放。
  • */ @SerializedName("Width") @Expose private String Width; /** * 贴图的高度。支持 %、px 两种格式:
  • 当字符串以 % 结尾,表示贴图 Height 为画布高度的百分比大小,如 10% 表示 Height 为画布高度的 10%。
  • 当字符串以 px 结尾,表示贴图 Height 单位为像素,如 100px 表示 Hieght 为 100 像素。
  • 当 Width、Height 均为空,则 Width 和 Height 取贴图素材本身的 Width、Height。
  • 当 Width 为空,Height 非空,则 Width 按比例缩放
  • 当 Width 非空,Height 为空,则 Height 按比例缩放。
  • */ @SerializedName("Height") @Expose private String Height; /** * 对贴图进行的操作,如图像旋转等。 */ @SerializedName("ImageOperations") @Expose private ImageTransform [] ImageOperations; /** * Get 贴图片段的媒体素材来源,可以是:
  • 点播的媒体文件 ID;
  • 其他媒体文件的下载 URL。
  • 注意:当使用其他媒体文件的下载 URL 作为素材来源,且开启了访问控制(如防盗链)时,需要在 URL 携带访问控制参数(如防盗链签名)。 * @return SourceMedia 贴图片段的媒体素材来源,可以是:
  • 点播的媒体文件 ID;
  • 其他媒体文件的下载 URL。
  • 注意:当使用其他媒体文件的下载 URL 作为素材来源,且开启了访问控制(如防盗链)时,需要在 URL 携带访问控制参数(如防盗链签名)。 */ public String getSourceMedia() { return this.SourceMedia; } /** * Set 贴图片段的媒体素材来源,可以是:
  • 点播的媒体文件 ID;
  • 其他媒体文件的下载 URL。
  • 注意:当使用其他媒体文件的下载 URL 作为素材来源,且开启了访问控制(如防盗链)时,需要在 URL 携带访问控制参数(如防盗链签名)。 * @param SourceMedia 贴图片段的媒体素材来源,可以是:
  • 点播的媒体文件 ID;
  • 其他媒体文件的下载 URL。
  • 注意:当使用其他媒体文件的下载 URL 作为素材来源,且开启了访问控制(如防盗链)时,需要在 URL 携带访问控制参数(如防盗链签名)。 */ public void setSourceMedia(String SourceMedia) { this.SourceMedia = SourceMedia; } /** * Get 贴图的持续时间,单位为秒。 * @return Duration 贴图的持续时间,单位为秒。 */ public Float getDuration() { return this.Duration; } /** * Set 贴图的持续时间,单位为秒。 * @param Duration 贴图的持续时间,单位为秒。 */ public void setDuration(Float Duration) { this.Duration = Duration; } /** * Get 贴图在轨道上的起始时间,单位为秒。 * @return StartTime 贴图在轨道上的起始时间,单位为秒。 */ public Float getStartTime() { return this.StartTime; } /** * Set 贴图在轨道上的起始时间,单位为秒。 * @param StartTime 贴图在轨道上的起始时间,单位为秒。 */ public void setStartTime(Float StartTime) { this.StartTime = StartTime; } /** * Get 原点位置,取值有:
  • Center:坐标原点为中心位置,如画布中心。
  • 默认值:Center。 * @return CoordinateOrigin 原点位置,取值有:
  • Center:坐标原点为中心位置,如画布中心。
  • 默认值:Center。 */ public String getCoordinateOrigin() { return this.CoordinateOrigin; } /** * Set 原点位置,取值有:
  • Center:坐标原点为中心位置,如画布中心。
  • 默认值:Center。 * @param CoordinateOrigin 原点位置,取值有:
  • Center:坐标原点为中心位置,如画布中心。
  • 默认值:Center。 */ public void setCoordinateOrigin(String CoordinateOrigin) { this.CoordinateOrigin = CoordinateOrigin; } /** * Get 贴图原点距离画布原点的水平位置。支持 %、px 两种格式:
  • 当字符串以 % 结尾,表示贴图 XPos 为画布宽度指定百分比的位置,如 10% 表示 XPos 为画布宽度的 10%。
  • 当字符串以 px 结尾,表示贴图 XPos 单位为像素,如 100px 表示 XPos 为 100 像素。
  • 默认值:0px。 * @return XPos 贴图原点距离画布原点的水平位置。支持 %、px 两种格式:
  • 当字符串以 % 结尾,表示贴图 XPos 为画布宽度指定百分比的位置,如 10% 表示 XPos 为画布宽度的 10%。
  • 当字符串以 px 结尾,表示贴图 XPos 单位为像素,如 100px 表示 XPos 为 100 像素。
  • 默认值:0px。 */ public String getXPos() { return this.XPos; } /** * Set 贴图原点距离画布原点的水平位置。支持 %、px 两种格式:
  • 当字符串以 % 结尾,表示贴图 XPos 为画布宽度指定百分比的位置,如 10% 表示 XPos 为画布宽度的 10%。
  • 当字符串以 px 结尾,表示贴图 XPos 单位为像素,如 100px 表示 XPos 为 100 像素。
  • 默认值:0px。 * @param XPos 贴图原点距离画布原点的水平位置。支持 %、px 两种格式:
  • 当字符串以 % 结尾,表示贴图 XPos 为画布宽度指定百分比的位置,如 10% 表示 XPos 为画布宽度的 10%。
  • 当字符串以 px 结尾,表示贴图 XPos 单位为像素,如 100px 表示 XPos 为 100 像素。
  • 默认值:0px。 */ public void setXPos(String XPos) { this.XPos = XPos; } /** * Get 贴图原点距离画布原点的垂直位置。支持 %、px 两种格式:
  • 当字符串以 % 结尾,表示贴图 YPos 为画布高度指定百分比的位置,如 10% 表示 YPos 为画布高度的 10%。
  • 当字符串以 px 结尾,表示贴图 YPos 单位为像素,如 100px 表示 YPos 为 100 像素。
  • 默认值:0px。 * @return YPos 贴图原点距离画布原点的垂直位置。支持 %、px 两种格式:
  • 当字符串以 % 结尾,表示贴图 YPos 为画布高度指定百分比的位置,如 10% 表示 YPos 为画布高度的 10%。
  • 当字符串以 px 结尾,表示贴图 YPos 单位为像素,如 100px 表示 YPos 为 100 像素。
  • 默认值:0px。 */ public String getYPos() { return this.YPos; } /** * Set 贴图原点距离画布原点的垂直位置。支持 %、px 两种格式:
  • 当字符串以 % 结尾,表示贴图 YPos 为画布高度指定百分比的位置,如 10% 表示 YPos 为画布高度的 10%。
  • 当字符串以 px 结尾,表示贴图 YPos 单位为像素,如 100px 表示 YPos 为 100 像素。
  • 默认值:0px。 * @param YPos 贴图原点距离画布原点的垂直位置。支持 %、px 两种格式:
  • 当字符串以 % 结尾,表示贴图 YPos 为画布高度指定百分比的位置,如 10% 表示 YPos 为画布高度的 10%。
  • 当字符串以 px 结尾,表示贴图 YPos 单位为像素,如 100px 表示 YPos 为 100 像素。
  • 默认值:0px。 */ public void setYPos(String YPos) { this.YPos = YPos; } /** * Get 贴图的宽度。支持 %、px 两种格式:
  • 当字符串以 % 结尾,表示贴图 Width 为画布宽度的百分比大小,如 10% 表示 Width 为画布宽度的 10%。
  • 当字符串以 px 结尾,表示贴图 Width 单位为像素,如 100px 表示 Width 为 100 像素。
  • 当 Width、Height 均为空,则 Width 和 Height 取贴图素材本身的 Width、Height。
  • 当 Width 为空0,Height 非空,则 Width 按比例缩放
  • 当 Width 非空,Height 为空,则 Height 按比例缩放。
  • * @return Width 贴图的宽度。支持 %、px 两种格式:
  • 当字符串以 % 结尾,表示贴图 Width 为画布宽度的百分比大小,如 10% 表示 Width 为画布宽度的 10%。
  • 当字符串以 px 结尾,表示贴图 Width 单位为像素,如 100px 表示 Width 为 100 像素。
  • 当 Width、Height 均为空,则 Width 和 Height 取贴图素材本身的 Width、Height。
  • 当 Width 为空0,Height 非空,则 Width 按比例缩放
  • 当 Width 非空,Height 为空,则 Height 按比例缩放。
  • */ public String getWidth() { return this.Width; } /** * Set 贴图的宽度。支持 %、px 两种格式:
  • 当字符串以 % 结尾,表示贴图 Width 为画布宽度的百分比大小,如 10% 表示 Width 为画布宽度的 10%。
  • 当字符串以 px 结尾,表示贴图 Width 单位为像素,如 100px 表示 Width 为 100 像素。
  • 当 Width、Height 均为空,则 Width 和 Height 取贴图素材本身的 Width、Height。
  • 当 Width 为空0,Height 非空,则 Width 按比例缩放
  • 当 Width 非空,Height 为空,则 Height 按比例缩放。
  • * @param Width 贴图的宽度。支持 %、px 两种格式:
  • 当字符串以 % 结尾,表示贴图 Width 为画布宽度的百分比大小,如 10% 表示 Width 为画布宽度的 10%。
  • 当字符串以 px 结尾,表示贴图 Width 单位为像素,如 100px 表示 Width 为 100 像素。
  • 当 Width、Height 均为空,则 Width 和 Height 取贴图素材本身的 Width、Height。
  • 当 Width 为空0,Height 非空,则 Width 按比例缩放
  • 当 Width 非空,Height 为空,则 Height 按比例缩放。
  • */ public void setWidth(String Width) { this.Width = Width; } /** * Get 贴图的高度。支持 %、px 两种格式:
  • 当字符串以 % 结尾,表示贴图 Height 为画布高度的百分比大小,如 10% 表示 Height 为画布高度的 10%。
  • 当字符串以 px 结尾,表示贴图 Height 单位为像素,如 100px 表示 Hieght 为 100 像素。
  • 当 Width、Height 均为空,则 Width 和 Height 取贴图素材本身的 Width、Height。
  • 当 Width 为空,Height 非空,则 Width 按比例缩放
  • 当 Width 非空,Height 为空,则 Height 按比例缩放。
  • * @return Height 贴图的高度。支持 %、px 两种格式:
  • 当字符串以 % 结尾,表示贴图 Height 为画布高度的百分比大小,如 10% 表示 Height 为画布高度的 10%。
  • 当字符串以 px 结尾,表示贴图 Height 单位为像素,如 100px 表示 Hieght 为 100 像素。
  • 当 Width、Height 均为空,则 Width 和 Height 取贴图素材本身的 Width、Height。
  • 当 Width 为空,Height 非空,则 Width 按比例缩放
  • 当 Width 非空,Height 为空,则 Height 按比例缩放。
  • */ public String getHeight() { return this.Height; } /** * Set 贴图的高度。支持 %、px 两种格式:
  • 当字符串以 % 结尾,表示贴图 Height 为画布高度的百分比大小,如 10% 表示 Height 为画布高度的 10%。
  • 当字符串以 px 结尾,表示贴图 Height 单位为像素,如 100px 表示 Hieght 为 100 像素。
  • 当 Width、Height 均为空,则 Width 和 Height 取贴图素材本身的 Width、Height。
  • 当 Width 为空,Height 非空,则 Width 按比例缩放
  • 当 Width 非空,Height 为空,则 Height 按比例缩放。
  • * @param Height 贴图的高度。支持 %、px 两种格式:
  • 当字符串以 % 结尾,表示贴图 Height 为画布高度的百分比大小,如 10% 表示 Height 为画布高度的 10%。
  • 当字符串以 px 结尾,表示贴图 Height 单位为像素,如 100px 表示 Hieght 为 100 像素。
  • 当 Width、Height 均为空,则 Width 和 Height 取贴图素材本身的 Width、Height。
  • 当 Width 为空,Height 非空,则 Width 按比例缩放
  • 当 Width 非空,Height 为空,则 Height 按比例缩放。
  • */ public void setHeight(String Height) { this.Height = Height; } /** * Get 对贴图进行的操作,如图像旋转等。 * @return ImageOperations 对贴图进行的操作,如图像旋转等。 */ public ImageTransform [] getImageOperations() { return this.ImageOperations; } /** * Set 对贴图进行的操作,如图像旋转等。 * @param ImageOperations 对贴图进行的操作,如图像旋转等。 */ public void setImageOperations(ImageTransform [] ImageOperations) { this.ImageOperations = ImageOperations; } public StickerTrackItem() { } /** * 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. */ public StickerTrackItem(StickerTrackItem source) { if (source.SourceMedia != null) { this.SourceMedia = new String(source.SourceMedia); } if (source.Duration != null) { this.Duration = new Float(source.Duration); } if (source.StartTime != null) { this.StartTime = new Float(source.StartTime); } if (source.CoordinateOrigin != null) { this.CoordinateOrigin = new String(source.CoordinateOrigin); } if (source.XPos != null) { this.XPos = new String(source.XPos); } if (source.YPos != null) { this.YPos = new String(source.YPos); } if (source.Width != null) { this.Width = new String(source.Width); } if (source.Height != null) { this.Height = new String(source.Height); } if (source.ImageOperations != null) { this.ImageOperations = new ImageTransform[source.ImageOperations.length]; for (int i = 0; i < source.ImageOperations.length; i++) { this.ImageOperations[i] = new ImageTransform(source.ImageOperations[i]); } } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "SourceMedia", this.SourceMedia); this.setParamSimple(map, prefix + "Duration", this.Duration); this.setParamSimple(map, prefix + "StartTime", this.StartTime); this.setParamSimple(map, prefix + "CoordinateOrigin", this.CoordinateOrigin); this.setParamSimple(map, prefix + "XPos", this.XPos); this.setParamSimple(map, prefix + "YPos", this.YPos); this.setParamSimple(map, prefix + "Width", this.Width); this.setParamSimple(map, prefix + "Height", this.Height); this.setParamArrayObj(map, prefix + "ImageOperations.", this.ImageOperations); } }




    © 2015 - 2024 Weber Informatics LLC | Privacy Policy