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{

    /**
    * Source of media material for sticker segment, which can be:
  • ID of VOD media files
  • Download URL of other media files
  • Note: when a download URL of other media files is used as the material source and access control (such as hotlink protection) is enabled, the URL needs to carry access control parameters (such as hotlink protection signature). */ @SerializedName("SourceMedia") @Expose private String SourceMedia; /** * Sticker duration in seconds. */ @SerializedName("Duration") @Expose private Float Duration; /** * Start time of sticker on track in seconds. */ @SerializedName("StartTime") @Expose private Float StartTime; /** * Origin position. Valid values:
  • Center: the origin of coordinates is the center position, such as the center of canvas.
  • Default value: Center. */ @SerializedName("CoordinateOrigin") @Expose private String CoordinateOrigin; /** * The horizontal position of the origin of the sticker relative to the origin of the canvas. % and px formats are supported:
  • If the string ends in %, the `XPos` of the sticker will be at the position of the specified percentage of the canvas width; for example, `10%` means that `XPos` is 10% of the canvas width.
  • If the string ends in px, the `XPos` of the sticker will be in px; for example, `100px` means that `XPos` is 100 px.
  • Default value: 0 px. */ @SerializedName("XPos") @Expose private String XPos; /** * The vertical position of the origin of the sticker relative to the origin of the canvas. % and px formats are supported:
  • If the string ends in %, the `YPos` of the sticker will be at the position of the specified percentage of the canvas height; for example, `10%` means that `YPos` is 10% of the canvas height.
  • If the string ends in px, the `YPos` of the sticker will be in px; for example, `100px` means that `YPos` is 100 px.
  • Default value: 0 px. */ @SerializedName("YPos") @Expose private String YPos; /** * Sticker width. % and px formats are supported:
  • If the string ends in %, the `Width` of the sticker will be the specified percentage of the canvas width; for example, `10%` means that `Width` is 10% of the canvas width.
  • If the string ends in px, the `Width` of the sticker will be in px; for example, `100px` means that `Width` is 100 px.
  • If both `Width` and `Height` are empty, then they will be the `Width` and `Height` of the sticker material, respectively.
  • If `Width` is empty (0), but `Height` is not empty, `Width` will be proportionally scaled.
  • If `Width` is not empty, but `Height` is empty, `Height` will be proportionally scaled.
  • */ @SerializedName("Width") @Expose private String Width; /** * Sticker height. % and px formats are supported:
  • If the string ends in %, the `Height` of the sticker will be the specified percentage of the canvas height; for example, `10%` means that `Height` is 10% of the canvas height.
  • If the string ends in px, the `Height` of the sticker will be in px; for example, `100px` means that `Height` is 100 px.
  • If both `Width` and `Height` are empty, then they will be the `Width` and `Height` of the sticker material, respectively.
  • If `Width` is empty, but `Height` is not empty, `Width` will be proportionally scaled.
  • If `Width` is not empty, but `Height` is empty, `Height` will be proportionally scaled.
  • */ @SerializedName("Height") @Expose private String Height; /** * Operation on sticker such as image rotation. Note: this field may return null, indicating that no valid values can be obtained. */ @SerializedName("ImageOperations") @Expose private ImageTransform [] ImageOperations; /** * Get Source of media material for sticker segment, which can be:
  • ID of VOD media files
  • Download URL of other media files
  • Note: when a download URL of other media files is used as the material source and access control (such as hotlink protection) is enabled, the URL needs to carry access control parameters (such as hotlink protection signature). * @return SourceMedia Source of media material for sticker segment, which can be:
  • ID of VOD media files
  • Download URL of other media files
  • Note: when a download URL of other media files is used as the material source and access control (such as hotlink protection) is enabled, the URL needs to carry access control parameters (such as hotlink protection signature). */ public String getSourceMedia() { return this.SourceMedia; } /** * Set Source of media material for sticker segment, which can be:
  • ID of VOD media files
  • Download URL of other media files
  • Note: when a download URL of other media files is used as the material source and access control (such as hotlink protection) is enabled, the URL needs to carry access control parameters (such as hotlink protection signature). * @param SourceMedia Source of media material for sticker segment, which can be:
  • ID of VOD media files
  • Download URL of other media files
  • Note: when a download URL of other media files is used as the material source and access control (such as hotlink protection) is enabled, the URL needs to carry access control parameters (such as hotlink protection signature). */ public void setSourceMedia(String SourceMedia) { this.SourceMedia = SourceMedia; } /** * Get Sticker duration in seconds. * @return Duration Sticker duration in seconds. */ public Float getDuration() { return this.Duration; } /** * Set Sticker duration in seconds. * @param Duration Sticker duration in seconds. */ public void setDuration(Float Duration) { this.Duration = Duration; } /** * Get Start time of sticker on track in seconds. * @return StartTime Start time of sticker on track in seconds. */ public Float getStartTime() { return this.StartTime; } /** * Set Start time of sticker on track in seconds. * @param StartTime Start time of sticker on track in seconds. */ public void setStartTime(Float StartTime) { this.StartTime = StartTime; } /** * Get Origin position. Valid values:
  • Center: the origin of coordinates is the center position, such as the center of canvas.
  • Default value: Center. * @return CoordinateOrigin Origin position. Valid values:
  • Center: the origin of coordinates is the center position, such as the center of canvas.
  • Default value: Center. */ public String getCoordinateOrigin() { return this.CoordinateOrigin; } /** * Set Origin position. Valid values:
  • Center: the origin of coordinates is the center position, such as the center of canvas.
  • Default value: Center. * @param CoordinateOrigin Origin position. Valid values:
  • Center: the origin of coordinates is the center position, such as the center of canvas.
  • Default value: Center. */ public void setCoordinateOrigin(String CoordinateOrigin) { this.CoordinateOrigin = CoordinateOrigin; } /** * Get The horizontal position of the origin of the sticker relative to the origin of the canvas. % and px formats are supported:
  • If the string ends in %, the `XPos` of the sticker will be at the position of the specified percentage of the canvas width; for example, `10%` means that `XPos` is 10% of the canvas width.
  • If the string ends in px, the `XPos` of the sticker will be in px; for example, `100px` means that `XPos` is 100 px.
  • Default value: 0 px. * @return XPos The horizontal position of the origin of the sticker relative to the origin of the canvas. % and px formats are supported:
  • If the string ends in %, the `XPos` of the sticker will be at the position of the specified percentage of the canvas width; for example, `10%` means that `XPos` is 10% of the canvas width.
  • If the string ends in px, the `XPos` of the sticker will be in px; for example, `100px` means that `XPos` is 100 px.
  • Default value: 0 px. */ public String getXPos() { return this.XPos; } /** * Set The horizontal position of the origin of the sticker relative to the origin of the canvas. % and px formats are supported:
  • If the string ends in %, the `XPos` of the sticker will be at the position of the specified percentage of the canvas width; for example, `10%` means that `XPos` is 10% of the canvas width.
  • If the string ends in px, the `XPos` of the sticker will be in px; for example, `100px` means that `XPos` is 100 px.
  • Default value: 0 px. * @param XPos The horizontal position of the origin of the sticker relative to the origin of the canvas. % and px formats are supported:
  • If the string ends in %, the `XPos` of the sticker will be at the position of the specified percentage of the canvas width; for example, `10%` means that `XPos` is 10% of the canvas width.
  • If the string ends in px, the `XPos` of the sticker will be in px; for example, `100px` means that `XPos` is 100 px.
  • Default value: 0 px. */ public void setXPos(String XPos) { this.XPos = XPos; } /** * Get The vertical position of the origin of the sticker relative to the origin of the canvas. % and px formats are supported:
  • If the string ends in %, the `YPos` of the sticker will be at the position of the specified percentage of the canvas height; for example, `10%` means that `YPos` is 10% of the canvas height.
  • If the string ends in px, the `YPos` of the sticker will be in px; for example, `100px` means that `YPos` is 100 px.
  • Default value: 0 px. * @return YPos The vertical position of the origin of the sticker relative to the origin of the canvas. % and px formats are supported:
  • If the string ends in %, the `YPos` of the sticker will be at the position of the specified percentage of the canvas height; for example, `10%` means that `YPos` is 10% of the canvas height.
  • If the string ends in px, the `YPos` of the sticker will be in px; for example, `100px` means that `YPos` is 100 px.
  • Default value: 0 px. */ public String getYPos() { return this.YPos; } /** * Set The vertical position of the origin of the sticker relative to the origin of the canvas. % and px formats are supported:
  • If the string ends in %, the `YPos` of the sticker will be at the position of the specified percentage of the canvas height; for example, `10%` means that `YPos` is 10% of the canvas height.
  • If the string ends in px, the `YPos` of the sticker will be in px; for example, `100px` means that `YPos` is 100 px.
  • Default value: 0 px. * @param YPos The vertical position of the origin of the sticker relative to the origin of the canvas. % and px formats are supported:
  • If the string ends in %, the `YPos` of the sticker will be at the position of the specified percentage of the canvas height; for example, `10%` means that `YPos` is 10% of the canvas height.
  • If the string ends in px, the `YPos` of the sticker will be in px; for example, `100px` means that `YPos` is 100 px.
  • Default value: 0 px. */ public void setYPos(String YPos) { this.YPos = YPos; } /** * Get Sticker width. % and px formats are supported:
  • If the string ends in %, the `Width` of the sticker will be the specified percentage of the canvas width; for example, `10%` means that `Width` is 10% of the canvas width.
  • If the string ends in px, the `Width` of the sticker will be in px; for example, `100px` means that `Width` is 100 px.
  • If both `Width` and `Height` are empty, then they will be the `Width` and `Height` of the sticker material, respectively.
  • If `Width` is empty (0), but `Height` is not empty, `Width` will be proportionally scaled.
  • If `Width` is not empty, but `Height` is empty, `Height` will be proportionally scaled.
  • * @return Width Sticker width. % and px formats are supported:
  • If the string ends in %, the `Width` of the sticker will be the specified percentage of the canvas width; for example, `10%` means that `Width` is 10% of the canvas width.
  • If the string ends in px, the `Width` of the sticker will be in px; for example, `100px` means that `Width` is 100 px.
  • If both `Width` and `Height` are empty, then they will be the `Width` and `Height` of the sticker material, respectively.
  • If `Width` is empty (0), but `Height` is not empty, `Width` will be proportionally scaled.
  • If `Width` is not empty, but `Height` is empty, `Height` will be proportionally scaled.
  • */ public String getWidth() { return this.Width; } /** * Set Sticker width. % and px formats are supported:
  • If the string ends in %, the `Width` of the sticker will be the specified percentage of the canvas width; for example, `10%` means that `Width` is 10% of the canvas width.
  • If the string ends in px, the `Width` of the sticker will be in px; for example, `100px` means that `Width` is 100 px.
  • If both `Width` and `Height` are empty, then they will be the `Width` and `Height` of the sticker material, respectively.
  • If `Width` is empty (0), but `Height` is not empty, `Width` will be proportionally scaled.
  • If `Width` is not empty, but `Height` is empty, `Height` will be proportionally scaled.
  • * @param Width Sticker width. % and px formats are supported:
  • If the string ends in %, the `Width` of the sticker will be the specified percentage of the canvas width; for example, `10%` means that `Width` is 10% of the canvas width.
  • If the string ends in px, the `Width` of the sticker will be in px; for example, `100px` means that `Width` is 100 px.
  • If both `Width` and `Height` are empty, then they will be the `Width` and `Height` of the sticker material, respectively.
  • If `Width` is empty (0), but `Height` is not empty, `Width` will be proportionally scaled.
  • If `Width` is not empty, but `Height` is empty, `Height` will be proportionally scaled.
  • */ public void setWidth(String Width) { this.Width = Width; } /** * Get Sticker height. % and px formats are supported:
  • If the string ends in %, the `Height` of the sticker will be the specified percentage of the canvas height; for example, `10%` means that `Height` is 10% of the canvas height.
  • If the string ends in px, the `Height` of the sticker will be in px; for example, `100px` means that `Height` is 100 px.
  • If both `Width` and `Height` are empty, then they will be the `Width` and `Height` of the sticker material, respectively.
  • If `Width` is empty, but `Height` is not empty, `Width` will be proportionally scaled.
  • If `Width` is not empty, but `Height` is empty, `Height` will be proportionally scaled.
  • * @return Height Sticker height. % and px formats are supported:
  • If the string ends in %, the `Height` of the sticker will be the specified percentage of the canvas height; for example, `10%` means that `Height` is 10% of the canvas height.
  • If the string ends in px, the `Height` of the sticker will be in px; for example, `100px` means that `Height` is 100 px.
  • If both `Width` and `Height` are empty, then they will be the `Width` and `Height` of the sticker material, respectively.
  • If `Width` is empty, but `Height` is not empty, `Width` will be proportionally scaled.
  • If `Width` is not empty, but `Height` is empty, `Height` will be proportionally scaled.
  • */ public String getHeight() { return this.Height; } /** * Set Sticker height. % and px formats are supported:
  • If the string ends in %, the `Height` of the sticker will be the specified percentage of the canvas height; for example, `10%` means that `Height` is 10% of the canvas height.
  • If the string ends in px, the `Height` of the sticker will be in px; for example, `100px` means that `Height` is 100 px.
  • If both `Width` and `Height` are empty, then they will be the `Width` and `Height` of the sticker material, respectively.
  • If `Width` is empty, but `Height` is not empty, `Width` will be proportionally scaled.
  • If `Width` is not empty, but `Height` is empty, `Height` will be proportionally scaled.
  • * @param Height Sticker height. % and px formats are supported:
  • If the string ends in %, the `Height` of the sticker will be the specified percentage of the canvas height; for example, `10%` means that `Height` is 10% of the canvas height.
  • If the string ends in px, the `Height` of the sticker will be in px; for example, `100px` means that `Height` is 100 px.
  • If both `Width` and `Height` are empty, then they will be the `Width` and `Height` of the sticker material, respectively.
  • If `Width` is empty, but `Height` is not empty, `Width` will be proportionally scaled.
  • If `Width` is not empty, but `Height` is empty, `Height` will be proportionally scaled.
  • */ public void setHeight(String Height) { this.Height = Height; } /** * Get Operation on sticker such as image rotation. Note: this field may return null, indicating that no valid values can be obtained. * @return ImageOperations Operation on sticker such as image rotation. Note: this field may return null, indicating that no valid values can be obtained. */ public ImageTransform [] getImageOperations() { return this.ImageOperations; } /** * Set Operation on sticker such as image rotation. Note: this field may return null, indicating that no valid values can be obtained. * @param ImageOperations Operation on sticker such as image rotation. Note: this field may return null, indicating that no valid values can be obtained. */ 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 - 2025 Weber Informatics LLC | Privacy Policy