public class SampleSnapshotTemplate extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
SampleSnapshotTemplate()  | 
SampleSnapshotTemplate(SampleSnapshotTemplate 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. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getComment()
Get Template description. 
 | 
String | 
getCreateTime()
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). 
 | 
Long | 
getDefinition()
Get Unique ID of a sampled screenshot template. 
 | 
String | 
getFillType()
Get Fill type. 
 | 
String | 
getFormat()
Get Image format. 
 | 
Long | 
getHeight()
Get Maximum value of the height (or short side) of a screenshot in px. 
 | 
String | 
getName()
Get Name of a sampled screenshot template. 
 | 
String | 
getResolutionAdaptive()
Get Resolution adaption. 
 | 
Long | 
getSampleInterval()
Get Sampling interval. 
 | 
String | 
getSampleType()
Get Sampled screenshot type. 
 | 
String | 
getType()
Get Template type. 
 | 
String | 
getUpdateTime()
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). 
 | 
Long | 
getWidth()
Get Maximum value of the width (or long side) of a screenshot in px. 
 | 
void | 
setComment(String Comment)
Set Template description. 
 | 
void | 
setCreateTime(String 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). 
 | 
void | 
setDefinition(Long Definition)
Set Unique ID of a sampled screenshot template. 
 | 
void | 
setFillType(String FillType)
Set Fill type. 
 | 
void | 
setFormat(String Format)
Set Image format. 
 | 
void | 
setHeight(Long Height)
Set Maximum value of the height (or short side) of a screenshot in px. 
 | 
void | 
setName(String Name)
Set Name of a sampled screenshot template. 
 | 
void | 
setResolutionAdaptive(String ResolutionAdaptive)
Set Resolution adaption. 
 | 
void | 
setSampleInterval(Long SampleInterval)
Set Sampling interval. 
 | 
void | 
setSampleType(String SampleType)
Set Sampled screenshot type. 
 | 
void | 
setType(String Type)
Set Template type. 
 | 
void | 
setUpdateTime(String 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). 
 | 
void | 
setWidth(Long Width)
Set Maximum value of the width (or long side) of a screenshot in px. 
 | 
void | 
toMap(HashMap<String,String> map,
     String prefix)
Internal implementation, normal users should not use it. 
 | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic SampleSnapshotTemplate()
public SampleSnapshotTemplate(SampleSnapshotTemplate source)
public Long getDefinition()
public void setDefinition(Long Definition)
Definition - Unique ID of a sampled screenshot template.public String getType()
public void setType(String Type)
Type - Template type. Valid values:
public String getName()
public void setName(String Name)
Name - Name of a sampled screenshot template.public String getComment()
public void setComment(String Comment)
Comment - Template description.public Long getWidth()
public void setWidth(Long Width)
Width - Maximum value of the width (or long side) of a screenshot in px. Value range: 0 and [128, 4,096].
public Long getHeight()
public void setHeight(Long Height)
Height - Maximum value of the height (or short side) of a screenshot in px. Value range: 0 and [128, 4,096].
public String getResolutionAdaptive()
public void setResolutionAdaptive(String ResolutionAdaptive)
ResolutionAdaptive - Resolution adaption. Valid values:
public String getFormat()
public void setFormat(String Format)
Format - Image format.public String getSampleType()
public void setSampleType(String SampleType)
SampleType - Sampled screenshot type.public Long getSampleInterval()
public void setSampleInterval(Long SampleInterval)
SampleInterval - Sampling interval.public String getCreateTime()
public void setCreateTime(String CreateTime)
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 getUpdateTime()
public void setUpdateTime(String UpdateTime)
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 getFillType()
public void setFillType(String FillType)
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:
Copyright © 2025. All rights reserved.