com.tencentcloudapi.vod.v20180717.models.SplitMediaTaskInput 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.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class SplitMediaTaskInput extends AbstractModel{
/**
* Video ID.
*/
@SerializedName("FileId")
@Expose
private String FileId;
/**
* Offset of the video splitting start time in seconds.
If this parameter is left empty or set to 0, the transcoded video will start at the same time as the original video.
If this parameter is set to a positive number (n for example), the transcoded video will start at the nth second of the original video.
If this parameter is set to a negative number (-n for example), the transcoded video will start at the nth second before the end of the original video.
*/
@SerializedName("StartTimeOffset")
@Expose
private Float StartTimeOffset;
/**
* Offset of the video splitting end time in seconds.
If this parameter is left empty or set to 0, the transcoded video will end at the same time as the original video.
If this parameter is set to a positive number (n for example), the transcoded video will end at the nth second of the original video.
If this parameter is set to a negative number (-n for example), the transcoded video will end at the nth second before the end of the original video.
*/
@SerializedName("EndTimeOffset")
@Expose
private Float EndTimeOffset;
/**
* [Task flow template](https://intl.cloud.tencent.com/document/product/266/33931?lang=en&pg=) name, which should be entered if you want to perform a task flow on the generated new video.
*/
@SerializedName("ProcedureName")
@Expose
private String ProcedureName;
/**
* Output information of a video splitting task.
*/
@SerializedName("OutputConfig")
@Expose
private SplitMediaOutputConfig OutputConfig;
/**
* Get Video ID.
* @return FileId Video ID.
*/
public String getFileId() {
return this.FileId;
}
/**
* Set Video ID.
* @param FileId Video ID.
*/
public void setFileId(String FileId) {
this.FileId = FileId;
}
/**
* Get Offset of the video splitting start time in seconds.
If this parameter is left empty or set to 0, the transcoded video will start at the same time as the original video.
If this parameter is set to a positive number (n for example), the transcoded video will start at the nth second of the original video.
If this parameter is set to a negative number (-n for example), the transcoded video will start at the nth second before the end of the original video.
* @return StartTimeOffset Offset of the video splitting start time in seconds.
If this parameter is left empty or set to 0, the transcoded video will start at the same time as the original video.
If this parameter is set to a positive number (n for example), the transcoded video will start at the nth second of the original video.
If this parameter is set to a negative number (-n for example), the transcoded video will start at the nth second before the end of the original video.
*/
public Float getStartTimeOffset() {
return this.StartTimeOffset;
}
/**
* Set Offset of the video splitting start time in seconds.
If this parameter is left empty or set to 0, the transcoded video will start at the same time as the original video.
If this parameter is set to a positive number (n for example), the transcoded video will start at the nth second of the original video.
If this parameter is set to a negative number (-n for example), the transcoded video will start at the nth second before the end of the original video.
* @param StartTimeOffset Offset of the video splitting start time in seconds.
If this parameter is left empty or set to 0, the transcoded video will start at the same time as the original video.
If this parameter is set to a positive number (n for example), the transcoded video will start at the nth second of the original video.
If this parameter is set to a negative number (-n for example), the transcoded video will start at the nth second before the end of the original video.
*/
public void setStartTimeOffset(Float StartTimeOffset) {
this.StartTimeOffset = StartTimeOffset;
}
/**
* Get Offset of the video splitting end time in seconds.
If this parameter is left empty or set to 0, the transcoded video will end at the same time as the original video.
If this parameter is set to a positive number (n for example), the transcoded video will end at the nth second of the original video.
If this parameter is set to a negative number (-n for example), the transcoded video will end at the nth second before the end of the original video.
* @return EndTimeOffset Offset of the video splitting end time in seconds.
If this parameter is left empty or set to 0, the transcoded video will end at the same time as the original video.
If this parameter is set to a positive number (n for example), the transcoded video will end at the nth second of the original video.
If this parameter is set to a negative number (-n for example), the transcoded video will end at the nth second before the end of the original video.
*/
public Float getEndTimeOffset() {
return this.EndTimeOffset;
}
/**
* Set Offset of the video splitting end time in seconds.
If this parameter is left empty or set to 0, the transcoded video will end at the same time as the original video.
If this parameter is set to a positive number (n for example), the transcoded video will end at the nth second of the original video.
If this parameter is set to a negative number (-n for example), the transcoded video will end at the nth second before the end of the original video.
* @param EndTimeOffset Offset of the video splitting end time in seconds.
If this parameter is left empty or set to 0, the transcoded video will end at the same time as the original video.
If this parameter is set to a positive number (n for example), the transcoded video will end at the nth second of the original video.
If this parameter is set to a negative number (-n for example), the transcoded video will end at the nth second before the end of the original video.
*/
public void setEndTimeOffset(Float EndTimeOffset) {
this.EndTimeOffset = EndTimeOffset;
}
/**
* Get [Task flow template](https://intl.cloud.tencent.com/document/product/266/33931?lang=en&pg=) name, which should be entered if you want to perform a task flow on the generated new video.
* @return ProcedureName [Task flow template](https://intl.cloud.tencent.com/document/product/266/33931?lang=en&pg=) name, which should be entered if you want to perform a task flow on the generated new video.
*/
public String getProcedureName() {
return this.ProcedureName;
}
/**
* Set [Task flow template](https://intl.cloud.tencent.com/document/product/266/33931?lang=en&pg=) name, which should be entered if you want to perform a task flow on the generated new video.
* @param ProcedureName [Task flow template](https://intl.cloud.tencent.com/document/product/266/33931?lang=en&pg=) name, which should be entered if you want to perform a task flow on the generated new video.
*/
public void setProcedureName(String ProcedureName) {
this.ProcedureName = ProcedureName;
}
/**
* Get Output information of a video splitting task.
* @return OutputConfig Output information of a video splitting task.
*/
public SplitMediaOutputConfig getOutputConfig() {
return this.OutputConfig;
}
/**
* Set Output information of a video splitting task.
* @param OutputConfig Output information of a video splitting task.
*/
public void setOutputConfig(SplitMediaOutputConfig OutputConfig) {
this.OutputConfig = OutputConfig;
}
public SplitMediaTaskInput() {
}
/**
* 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 SplitMediaTaskInput(SplitMediaTaskInput source) {
if (source.FileId != null) {
this.FileId = new String(source.FileId);
}
if (source.StartTimeOffset != null) {
this.StartTimeOffset = new Float(source.StartTimeOffset);
}
if (source.EndTimeOffset != null) {
this.EndTimeOffset = new Float(source.EndTimeOffset);
}
if (source.ProcedureName != null) {
this.ProcedureName = new String(source.ProcedureName);
}
if (source.OutputConfig != null) {
this.OutputConfig = new SplitMediaOutputConfig(source.OutputConfig);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "FileId", this.FileId);
this.setParamSimple(map, prefix + "StartTimeOffset", this.StartTimeOffset);
this.setParamSimple(map, prefix + "EndTimeOffset", this.EndTimeOffset);
this.setParamSimple(map, prefix + "ProcedureName", this.ProcedureName);
this.setParamObj(map, prefix + "OutputConfig.", this.OutputConfig);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy