com.tencentcloudapi.vod.v20180717.models.MediaSampleSnapshotItem 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.vod.v20180717.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class MediaSampleSnapshotItem extends AbstractModel {
/**
* Sampled screenshot specification ID. For more information, please see [Sampled Screencapturing Parameter Template](https://intl.cloud.tencent.com/document/product/266/33480?from_cn_redirect=1#.E9.87.87.E6.A0.B7.E6.88.AA.E5.9B.BE.E6.A8.A1.E6.9D.BF).
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("Definition")
@Expose
private Long Definition;
/**
* Sample type. Valid values:
Percent: samples at a specified percentage interval.
Time: samples at a specified time interval.
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("SampleType")
@Expose
private String SampleType;
/**
* Sampling interval
If `SampleType` is `Percent`, this value means taking a screenshot at an interval of the specified percentage.
If `SampleType` is `Time`, this value means taking a screenshot at an interval of the specified time (in seconds). The first screenshot is always the first video frame.
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("Interval")
@Expose
private Long Interval;
/**
* List of URLs of generated screenshots.
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("ImageUrlSet")
@Expose
private String [] ImageUrlSet;
/**
* List of watermarking template IDs if the screenshots are watermarked.
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("WaterMarkDefinition")
@Expose
private Long [] WaterMarkDefinition;
/**
* Get Sampled screenshot specification ID. For more information, please see [Sampled Screencapturing Parameter Template](https://intl.cloud.tencent.com/document/product/266/33480?from_cn_redirect=1#.E9.87.87.E6.A0.B7.E6.88.AA.E5.9B.BE.E6.A8.A1.E6.9D.BF).
Note: this field may return null, indicating that no valid values can be obtained.
* @return Definition Sampled screenshot specification ID. For more information, please see [Sampled Screencapturing Parameter Template](https://intl.cloud.tencent.com/document/product/266/33480?from_cn_redirect=1#.E9.87.87.E6.A0.B7.E6.88.AA.E5.9B.BE.E6.A8.A1.E6.9D.BF).
Note: this field may return null, indicating that no valid values can be obtained.
*/
public Long getDefinition() {
return this.Definition;
}
/**
* Set Sampled screenshot specification ID. For more information, please see [Sampled Screencapturing Parameter Template](https://intl.cloud.tencent.com/document/product/266/33480?from_cn_redirect=1#.E9.87.87.E6.A0.B7.E6.88.AA.E5.9B.BE.E6.A8.A1.E6.9D.BF).
Note: this field may return null, indicating that no valid values can be obtained.
* @param Definition Sampled screenshot specification ID. For more information, please see [Sampled Screencapturing Parameter Template](https://intl.cloud.tencent.com/document/product/266/33480?from_cn_redirect=1#.E9.87.87.E6.A0.B7.E6.88.AA.E5.9B.BE.E6.A8.A1.E6.9D.BF).
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setDefinition(Long Definition) {
this.Definition = Definition;
}
/**
* Get Sample type. Valid values:
Percent: samples at a specified percentage interval.
Time: samples at a specified time interval.
Note: this field may return null, indicating that no valid values can be obtained.
* @return SampleType Sample type. Valid values:
Percent: samples at a specified percentage interval.
Time: samples at a specified time interval.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public String getSampleType() {
return this.SampleType;
}
/**
* Set Sample type. Valid values:
Percent: samples at a specified percentage interval.
Time: samples at a specified time interval.
Note: this field may return null, indicating that no valid values can be obtained.
* @param SampleType Sample type. Valid values:
Percent: samples at a specified percentage interval.
Time: samples at a specified time interval.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setSampleType(String SampleType) {
this.SampleType = SampleType;
}
/**
* Get Sampling interval
If `SampleType` is `Percent`, this value means taking a screenshot at an interval of the specified percentage.
If `SampleType` is `Time`, this value means taking a screenshot at an interval of the specified time (in seconds). The first screenshot is always the first video frame.
Note: this field may return null, indicating that no valid values can be obtained.
* @return Interval Sampling interval
If `SampleType` is `Percent`, this value means taking a screenshot at an interval of the specified percentage.
If `SampleType` is `Time`, this value means taking a screenshot at an interval of the specified time (in seconds). The first screenshot is always the first video frame.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public Long getInterval() {
return this.Interval;
}
/**
* Set Sampling interval
If `SampleType` is `Percent`, this value means taking a screenshot at an interval of the specified percentage.
If `SampleType` is `Time`, this value means taking a screenshot at an interval of the specified time (in seconds). The first screenshot is always the first video frame.
Note: this field may return null, indicating that no valid values can be obtained.
* @param Interval Sampling interval
If `SampleType` is `Percent`, this value means taking a screenshot at an interval of the specified percentage.
If `SampleType` is `Time`, this value means taking a screenshot at an interval of the specified time (in seconds). The first screenshot is always the first video frame.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setInterval(Long Interval) {
this.Interval = Interval;
}
/**
* Get List of URLs of generated screenshots.
Note: this field may return null, indicating that no valid values can be obtained.
* @return ImageUrlSet List of URLs of generated screenshots.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public String [] getImageUrlSet() {
return this.ImageUrlSet;
}
/**
* Set List of URLs of generated screenshots.
Note: this field may return null, indicating that no valid values can be obtained.
* @param ImageUrlSet List of URLs of generated screenshots.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setImageUrlSet(String [] ImageUrlSet) {
this.ImageUrlSet = ImageUrlSet;
}
/**
* Get List of watermarking template IDs if the screenshots are watermarked.
Note: this field may return null, indicating that no valid values can be obtained.
* @return WaterMarkDefinition List of watermarking template IDs if the screenshots are watermarked.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public Long [] getWaterMarkDefinition() {
return this.WaterMarkDefinition;
}
/**
* Set List of watermarking template IDs if the screenshots are watermarked.
Note: this field may return null, indicating that no valid values can be obtained.
* @param WaterMarkDefinition List of watermarking template IDs if the screenshots are watermarked.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setWaterMarkDefinition(Long [] WaterMarkDefinition) {
this.WaterMarkDefinition = WaterMarkDefinition;
}
public MediaSampleSnapshotItem() {
}
/**
* 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 MediaSampleSnapshotItem(MediaSampleSnapshotItem source) {
if (source.Definition != null) {
this.Definition = new Long(source.Definition);
}
if (source.SampleType != null) {
this.SampleType = new String(source.SampleType);
}
if (source.Interval != null) {
this.Interval = new Long(source.Interval);
}
if (source.ImageUrlSet != null) {
this.ImageUrlSet = new String[source.ImageUrlSet.length];
for (int i = 0; i < source.ImageUrlSet.length; i++) {
this.ImageUrlSet[i] = new String(source.ImageUrlSet[i]);
}
}
if (source.WaterMarkDefinition != null) {
this.WaterMarkDefinition = new Long[source.WaterMarkDefinition.length];
for (int i = 0; i < source.WaterMarkDefinition.length; i++) {
this.WaterMarkDefinition[i] = new Long(source.WaterMarkDefinition[i]);
}
}
}
/**
* 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 + "SampleType", this.SampleType);
this.setParamSimple(map, prefix + "Interval", this.Interval);
this.setParamArraySimple(map, prefix + "ImageUrlSet.", this.ImageUrlSet);
this.setParamArraySimple(map, prefix + "WaterMarkDefinition.", this.WaterMarkDefinition);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy