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

com.tencentcloudapi.mps.v20190612.models.AnimatedGraphicsTemplate Maven / Gradle / Ivy

There is a newer version: 3.0.1034
Show newest version
/*
 * 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.mps.v20190612.models;

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

public class AnimatedGraphicsTemplate extends AbstractModel{

    /**
    * Unique ID of an animated image generating template.
    */
    @SerializedName("Definition")
    @Expose
    private Long Definition;

    /**
    * Template type. Valid values:
  • Preset: Preset template;
  • Custom: Custom template.
  • */ @SerializedName("Type") @Expose private String Type; /** * Name of an animated image generating template. */ @SerializedName("Name") @Expose private String Name; /** * Description of an animated image generating template. */ @SerializedName("Comment") @Expose private String Comment; /** * Maximum value of the width (or long side) of an animated image in px. Value range: 0 and [128, 4,096].
  • If both `Width` and `Height` are 0, the resolution will be the same as that of the source video;
  • If `Width` is 0, but `Height` is not 0, `Width` will be proportionally scaled;
  • If `Width` is not 0, but `Height` is 0, `Height` will be proportionally scaled;
  • If both `Width` and `Height` are not 0, the custom resolution will be used.
  • Default value: 0. */ @SerializedName("Width") @Expose private Long Width; /** * Maximum value of the height (or short side) of an animated image in px. Value range: 0 and [128, 4,096].
  • If both `Width` and `Height` are 0, the resolution will be the same as that of the source video;
  • If `Width` is 0, but `Height` is not 0, `Width` will be proportionally scaled;
  • If `Width` is not 0, but `Height` is 0, `Height` will be proportionally scaled;
  • If both `Width` and `Height` are not 0, the custom resolution will be used.
  • Default value: 0. */ @SerializedName("Height") @Expose private Long Height; /** * Resolution adaption. Valid values:
  • open: Enabled. In this case, `Width` represents the long side of a video, while `Height` the short side;
  • close: Disabled. In this case, `Width` represents the width of a video, while `Height` the height.
  • Default value: open. */ @SerializedName("ResolutionAdaptive") @Expose private String ResolutionAdaptive; /** * Animated image format. */ @SerializedName("Format") @Expose private String Format; /** * Frame rate. */ @SerializedName("Fps") @Expose private Long Fps; /** * Image quality. */ @SerializedName("Quality") @Expose private Float Quality; /** * Creation time of a template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F). */ @SerializedName("CreateTime") @Expose private String CreateTime; /** * Last modified time of a template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F). */ @SerializedName("UpdateTime") @Expose private String UpdateTime; /** * Get Unique ID of an animated image generating template. * @return Definition Unique ID of an animated image generating template. */ public Long getDefinition() { return this.Definition; } /** * Set Unique ID of an animated image generating template. * @param Definition Unique ID of an animated image generating template. */ public void setDefinition(Long Definition) { this.Definition = Definition; } /** * Get Template type. Valid values:
  • Preset: Preset template;
  • Custom: Custom template.
  • * @return Type Template type. Valid values:
  • Preset: Preset template;
  • Custom: Custom template.
  • */ public String getType() { return this.Type; } /** * Set Template type. Valid values:
  • Preset: Preset template;
  • Custom: Custom template.
  • * @param Type Template type. Valid values:
  • Preset: Preset template;
  • Custom: Custom template.
  • */ public void setType(String Type) { this.Type = Type; } /** * Get Name of an animated image generating template. * @return Name Name of an animated image generating template. */ public String getName() { return this.Name; } /** * Set Name of an animated image generating template. * @param Name Name of an animated image generating template. */ public void setName(String Name) { this.Name = Name; } /** * Get Description of an animated image generating template. * @return Comment Description of an animated image generating template. */ public String getComment() { return this.Comment; } /** * Set Description of an animated image generating template. * @param Comment Description of an animated image generating template. */ public void setComment(String Comment) { this.Comment = Comment; } /** * Get Maximum value of the width (or long side) of an animated image in px. Value range: 0 and [128, 4,096].
  • If both `Width` and `Height` are 0, the resolution will be the same as that of the source video;
  • If `Width` is 0, but `Height` is not 0, `Width` will be proportionally scaled;
  • If `Width` is not 0, but `Height` is 0, `Height` will be proportionally scaled;
  • If both `Width` and `Height` are not 0, the custom resolution will be used.
  • Default value: 0. * @return Width Maximum value of the width (or long side) of an animated image in px. Value range: 0 and [128, 4,096].
  • If both `Width` and `Height` are 0, the resolution will be the same as that of the source video;
  • If `Width` is 0, but `Height` is not 0, `Width` will be proportionally scaled;
  • If `Width` is not 0, but `Height` is 0, `Height` will be proportionally scaled;
  • If both `Width` and `Height` are not 0, the custom resolution will be used.
  • Default value: 0. */ public Long getWidth() { return this.Width; } /** * Set Maximum value of the width (or long side) of an animated image in px. Value range: 0 and [128, 4,096].
  • If both `Width` and `Height` are 0, the resolution will be the same as that of the source video;
  • If `Width` is 0, but `Height` is not 0, `Width` will be proportionally scaled;
  • If `Width` is not 0, but `Height` is 0, `Height` will be proportionally scaled;
  • If both `Width` and `Height` are not 0, the custom resolution will be used.
  • Default value: 0. * @param Width Maximum value of the width (or long side) of an animated image in px. Value range: 0 and [128, 4,096].
  • If both `Width` and `Height` are 0, the resolution will be the same as that of the source video;
  • If `Width` is 0, but `Height` is not 0, `Width` will be proportionally scaled;
  • If `Width` is not 0, but `Height` is 0, `Height` will be proportionally scaled;
  • If both `Width` and `Height` are not 0, the custom resolution will be used.
  • Default value: 0. */ public void setWidth(Long Width) { this.Width = Width; } /** * Get Maximum value of the height (or short side) of an animated image in px. Value range: 0 and [128, 4,096].
  • If both `Width` and `Height` are 0, the resolution will be the same as that of the source video;
  • If `Width` is 0, but `Height` is not 0, `Width` will be proportionally scaled;
  • If `Width` is not 0, but `Height` is 0, `Height` will be proportionally scaled;
  • If both `Width` and `Height` are not 0, the custom resolution will be used.
  • Default value: 0. * @return Height Maximum value of the height (or short side) of an animated image in px. Value range: 0 and [128, 4,096].
  • If both `Width` and `Height` are 0, the resolution will be the same as that of the source video;
  • If `Width` is 0, but `Height` is not 0, `Width` will be proportionally scaled;
  • If `Width` is not 0, but `Height` is 0, `Height` will be proportionally scaled;
  • If both `Width` and `Height` are not 0, the custom resolution will be used.
  • Default value: 0. */ public Long getHeight() { return this.Height; } /** * Set Maximum value of the height (or short side) of an animated image in px. Value range: 0 and [128, 4,096].
  • If both `Width` and `Height` are 0, the resolution will be the same as that of the source video;
  • If `Width` is 0, but `Height` is not 0, `Width` will be proportionally scaled;
  • If `Width` is not 0, but `Height` is 0, `Height` will be proportionally scaled;
  • If both `Width` and `Height` are not 0, the custom resolution will be used.
  • Default value: 0. * @param Height Maximum value of the height (or short side) of an animated image in px. Value range: 0 and [128, 4,096].
  • If both `Width` and `Height` are 0, the resolution will be the same as that of the source video;
  • If `Width` is 0, but `Height` is not 0, `Width` will be proportionally scaled;
  • If `Width` is not 0, but `Height` is 0, `Height` will be proportionally scaled;
  • If both `Width` and `Height` are not 0, the custom resolution will be used.
  • Default value: 0. */ public void setHeight(Long Height) { this.Height = Height; } /** * Get Resolution adaption. Valid values:
  • open: Enabled. In this case, `Width` represents the long side of a video, while `Height` the short side;
  • close: Disabled. In this case, `Width` represents the width of a video, while `Height` the height.
  • Default value: open. * @return ResolutionAdaptive Resolution adaption. Valid values:
  • open: Enabled. In this case, `Width` represents the long side of a video, while `Height` the short side;
  • close: Disabled. In this case, `Width` represents the width of a video, while `Height` the height.
  • Default value: open. */ public String getResolutionAdaptive() { return this.ResolutionAdaptive; } /** * Set Resolution adaption. Valid values:
  • open: Enabled. In this case, `Width` represents the long side of a video, while `Height` the short side;
  • close: Disabled. In this case, `Width` represents the width of a video, while `Height` the height.
  • Default value: open. * @param ResolutionAdaptive Resolution adaption. Valid values:
  • open: Enabled. In this case, `Width` represents the long side of a video, while `Height` the short side;
  • close: Disabled. In this case, `Width` represents the width of a video, while `Height` the height.
  • Default value: open. */ public void setResolutionAdaptive(String ResolutionAdaptive) { this.ResolutionAdaptive = ResolutionAdaptive; } /** * Get Animated image format. * @return Format Animated image format. */ public String getFormat() { return this.Format; } /** * Set Animated image format. * @param Format Animated image format. */ public void setFormat(String Format) { this.Format = Format; } /** * Get Frame rate. * @return Fps Frame rate. */ public Long getFps() { return this.Fps; } /** * Set Frame rate. * @param Fps Frame rate. */ public void setFps(Long Fps) { this.Fps = Fps; } /** * Get Image quality. * @return Quality Image quality. */ public Float getQuality() { return this.Quality; } /** * Set Image quality. * @param Quality Image quality. */ public void setQuality(Float Quality) { this.Quality = Quality; } /** * Get Creation time of a template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F). * @return CreateTime Creation time of a template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F). */ public String getCreateTime() { return this.CreateTime; } /** * Set Creation time of a template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F). * @param CreateTime Creation time of a template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F). */ public void setCreateTime(String CreateTime) { this.CreateTime = CreateTime; } /** * Get Last modified time of a template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F). * @return UpdateTime Last modified time of a template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F). */ public String getUpdateTime() { return this.UpdateTime; } /** * Set Last modified time of a template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F). * @param UpdateTime Last modified time of a template in [ISO date format](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F). */ public void setUpdateTime(String UpdateTime) { this.UpdateTime = UpdateTime; } public AnimatedGraphicsTemplate() { } /** * 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 AnimatedGraphicsTemplate(AnimatedGraphicsTemplate source) { if (source.Definition != null) { this.Definition = new Long(source.Definition); } if (source.Type != null) { this.Type = new String(source.Type); } if (source.Name != null) { this.Name = new String(source.Name); } if (source.Comment != null) { this.Comment = new String(source.Comment); } if (source.Width != null) { this.Width = new Long(source.Width); } if (source.Height != null) { this.Height = new Long(source.Height); } if (source.ResolutionAdaptive != null) { this.ResolutionAdaptive = new String(source.ResolutionAdaptive); } if (source.Format != null) { this.Format = new String(source.Format); } if (source.Fps != null) { this.Fps = new Long(source.Fps); } if (source.Quality != null) { this.Quality = new Float(source.Quality); } if (source.CreateTime != null) { this.CreateTime = new String(source.CreateTime); } if (source.UpdateTime != null) { this.UpdateTime = new String(source.UpdateTime); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "Definition", this.Definition); this.setParamSimple(map, prefix + "Type", this.Type); this.setParamSimple(map, prefix + "Name", this.Name); this.setParamSimple(map, prefix + "Comment", this.Comment); this.setParamSimple(map, prefix + "Width", this.Width); this.setParamSimple(map, prefix + "Height", this.Height); this.setParamSimple(map, prefix + "ResolutionAdaptive", this.ResolutionAdaptive); this.setParamSimple(map, prefix + "Format", this.Format); this.setParamSimple(map, prefix + "Fps", this.Fps); this.setParamSimple(map, prefix + "Quality", this.Quality); this.setParamSimple(map, prefix + "CreateTime", this.CreateTime); this.setParamSimple(map, prefix + "UpdateTime", this.UpdateTime); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy