com.tencentcloudapi.mps.v20190612.models.ImageSpriteTemplate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* 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 ImageSpriteTemplate extends AbstractModel{
/**
* Unique ID of an image sprite 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 image sprite generating template.
*/
@SerializedName("Name")
@Expose
private String Name;
/**
* Subimage width of an image sprite.
*/
@SerializedName("Width")
@Expose
private Long Width;
/**
* Subimage height of an image sprite.
*/
@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;
/**
* Sampling type.
*/
@SerializedName("SampleType")
@Expose
private String SampleType;
/**
* Sampling interval.
*/
@SerializedName("SampleInterval")
@Expose
private Long SampleInterval;
/**
* Subimage row count of an image sprite.
*/
@SerializedName("RowCount")
@Expose
private Long RowCount;
/**
* Subimage column count of an image sprite.
*/
@SerializedName("ColumnCount")
@Expose
private Long ColumnCount;
/**
* 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;
/**
* Fill type. "Fill" refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. The following fill types are supported:
stretch: Stretch. The screenshot will be stretched frame by frame to match the aspect ratio of the source video, which may make the screenshot "shorter" or "longer";
black: Fill with black. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with black color blocks.
Default value: black.
*/
@SerializedName("FillType")
@Expose
private String FillType;
/**
* Template description.
*/
@SerializedName("Comment")
@Expose
private String Comment;
/**
* Get Unique ID of an image sprite generating template.
* @return Definition Unique ID of an image sprite generating template.
*/
public Long getDefinition() {
return this.Definition;
}
/**
* Set Unique ID of an image sprite generating template.
* @param Definition Unique ID of an image sprite 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 image sprite generating template.
* @return Name Name of an image sprite generating template.
*/
public String getName() {
return this.Name;
}
/**
* Set Name of an image sprite generating template.
* @param Name Name of an image sprite generating template.
*/
public void setName(String Name) {
this.Name = Name;
}
/**
* Get Subimage width of an image sprite.
* @return Width Subimage width of an image sprite.
*/
public Long getWidth() {
return this.Width;
}
/**
* Set Subimage width of an image sprite.
* @param Width Subimage width of an image sprite.
*/
public void setWidth(Long Width) {
this.Width = Width;
}
/**
* Get Subimage height of an image sprite.
* @return Height Subimage height of an image sprite.
*/
public Long getHeight() {
return this.Height;
}
/**
* Set Subimage height of an image sprite.
* @param Height Subimage height of an image sprite.
*/
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 Sampling type.
* @return SampleType Sampling type.
*/
public String getSampleType() {
return this.SampleType;
}
/**
* Set Sampling type.
* @param SampleType Sampling type.
*/
public void setSampleType(String SampleType) {
this.SampleType = SampleType;
}
/**
* Get Sampling interval.
* @return SampleInterval Sampling interval.
*/
public Long getSampleInterval() {
return this.SampleInterval;
}
/**
* Set Sampling interval.
* @param SampleInterval Sampling interval.
*/
public void setSampleInterval(Long SampleInterval) {
this.SampleInterval = SampleInterval;
}
/**
* Get Subimage row count of an image sprite.
* @return RowCount Subimage row count of an image sprite.
*/
public Long getRowCount() {
return this.RowCount;
}
/**
* Set Subimage row count of an image sprite.
* @param RowCount Subimage row count of an image sprite.
*/
public void setRowCount(Long RowCount) {
this.RowCount = RowCount;
}
/**
* Get Subimage column count of an image sprite.
* @return ColumnCount Subimage column count of an image sprite.
*/
public Long getColumnCount() {
return this.ColumnCount;
}
/**
* Set Subimage column count of an image sprite.
* @param ColumnCount Subimage column count of an image sprite.
*/
public void setColumnCount(Long ColumnCount) {
this.ColumnCount = ColumnCount;
}
/**
* 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;
}
/**
* Get Fill type. "Fill" refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. The following fill types are supported:
stretch: Stretch. The screenshot will be stretched frame by frame to match the aspect ratio of the source video, which may make the screenshot "shorter" or "longer";
black: Fill with black. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with black color blocks.
Default value: black.
* @return FillType Fill type. "Fill" refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. The following fill types are supported:
stretch: Stretch. The screenshot will be stretched frame by frame to match the aspect ratio of the source video, which may make the screenshot "shorter" or "longer";
black: Fill with black. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with black color blocks.
Default value: black.
*/
public String getFillType() {
return this.FillType;
}
/**
* Set Fill type. "Fill" refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. The following fill types are supported:
stretch: Stretch. The screenshot will be stretched frame by frame to match the aspect ratio of the source video, which may make the screenshot "shorter" or "longer";
black: Fill with black. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with black color blocks.
Default value: black.
* @param FillType Fill type. "Fill" refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. The following fill types are supported:
stretch: Stretch. The screenshot will be stretched frame by frame to match the aspect ratio of the source video, which may make the screenshot "shorter" or "longer";
black: Fill with black. This option retains the aspect ratio of the source video for the screenshot and fills the unmatched area with black color blocks.
Default value: black.
*/
public void setFillType(String FillType) {
this.FillType = FillType;
}
/**
* Get Template description.
* @return Comment Template description.
*/
public String getComment() {
return this.Comment;
}
/**
* Set Template description.
* @param Comment Template description.
*/
public void setComment(String Comment) {
this.Comment = Comment;
}
public ImageSpriteTemplate() {
}
/**
* 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 ImageSpriteTemplate(ImageSpriteTemplate 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.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.SampleType != null) {
this.SampleType = new String(source.SampleType);
}
if (source.SampleInterval != null) {
this.SampleInterval = new Long(source.SampleInterval);
}
if (source.RowCount != null) {
this.RowCount = new Long(source.RowCount);
}
if (source.ColumnCount != null) {
this.ColumnCount = new Long(source.ColumnCount);
}
if (source.CreateTime != null) {
this.CreateTime = new String(source.CreateTime);
}
if (source.UpdateTime != null) {
this.UpdateTime = new String(source.UpdateTime);
}
if (source.FillType != null) {
this.FillType = new String(source.FillType);
}
if (source.Comment != null) {
this.Comment = new String(source.Comment);
}
}
/**
* 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 + "Width", this.Width);
this.setParamSimple(map, prefix + "Height", this.Height);
this.setParamSimple(map, prefix + "ResolutionAdaptive", this.ResolutionAdaptive);
this.setParamSimple(map, prefix + "SampleType", this.SampleType);
this.setParamSimple(map, prefix + "SampleInterval", this.SampleInterval);
this.setParamSimple(map, prefix + "RowCount", this.RowCount);
this.setParamSimple(map, prefix + "ColumnCount", this.ColumnCount);
this.setParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.setParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
this.setParamSimple(map, prefix + "FillType", this.FillType);
this.setParamSimple(map, prefix + "Comment", this.Comment);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy