com.tencentcloudapi.vod.v20180717.models.RebuildMediaByTemplateRequest Maven / Gradle / Ivy
/*
* 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 RebuildMediaByTemplateRequest extends AbstractModel {
/**
* The file ID.
*/
@SerializedName("FileId")
@Expose
private String FileId;
/**
* Rebuild Media Template ID.
*/
@SerializedName("Definition")
@Expose
private Long Definition;
/**
* The VOD [application](https://intl.cloud.tencent.com/document/product/266/14574) ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
*/
@SerializedName("SubAppId")
@Expose
private String SubAppId;
/**
* The start offset (seconds). If you do not specify this, the segment will start from the beginning of the video.
*/
@SerializedName("StartTimeOffset")
@Expose
private Float StartTimeOffset;
/**
* The end offset (seconds). If you do not specify this, the segment will end at the end of the video.
*/
@SerializedName("EndTimeOffset")
@Expose
private Float EndTimeOffset;
/**
* New file configuration after rebuild.
*/
@SerializedName("OutputConfig")
@Expose
private RebuildMediaOutputConfig OutputConfig;
/**
* The session ID, which is used for de-duplication. If there was a request with the same session ID in the last three days, an error will be returned for the current request. The session ID can contain up to 50 characters. If you do not pass this parameter or pass in an empty string, duplicate sessions will not be identified.
*/
@SerializedName("SessionId")
@Expose
private String SessionId;
/**
* The source context, which is used to pass through user request information. The `ProcedureStateChanged` callback will return the value of this parameter. It can contain up to 1,000 characters.
*/
@SerializedName("SessionContext")
@Expose
private String SessionContext;
/**
* The task priority, which can be a value from -10 to 10. The higher the value, the higher the priority. If this parameter is left empty, 0 will be used.
*/
@SerializedName("TasksPriority")
@Expose
private Long TasksPriority;
/**
* A reserved parameter.
*/
@SerializedName("ExtInfo")
@Expose
private String ExtInfo;
/**
* Get The file ID.
* @return FileId The file ID.
*/
public String getFileId() {
return this.FileId;
}
/**
* Set The file ID.
* @param FileId The file ID.
*/
public void setFileId(String FileId) {
this.FileId = FileId;
}
/**
* Get Rebuild Media Template ID.
* @return Definition Rebuild Media Template ID.
*/
public Long getDefinition() {
return this.Definition;
}
/**
* Set Rebuild Media Template ID.
* @param Definition Rebuild Media Template ID.
*/
public void setDefinition(Long Definition) {
this.Definition = Definition;
}
/**
* Get The VOD [application](https://intl.cloud.tencent.com/document/product/266/14574) ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
* @return SubAppId The VOD [application](https://intl.cloud.tencent.com/document/product/266/14574) ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
*/
public String getSubAppId() {
return this.SubAppId;
}
/**
* Set The VOD [application](https://intl.cloud.tencent.com/document/product/266/14574) ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
* @param SubAppId The VOD [application](https://intl.cloud.tencent.com/document/product/266/14574) ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.
*/
public void setSubAppId(String SubAppId) {
this.SubAppId = SubAppId;
}
/**
* Get The start offset (seconds). If you do not specify this, the segment will start from the beginning of the video.
* @return StartTimeOffset The start offset (seconds). If you do not specify this, the segment will start from the beginning of the video.
*/
public Float getStartTimeOffset() {
return this.StartTimeOffset;
}
/**
* Set The start offset (seconds). If you do not specify this, the segment will start from the beginning of the video.
* @param StartTimeOffset The start offset (seconds). If you do not specify this, the segment will start from the beginning of the video.
*/
public void setStartTimeOffset(Float StartTimeOffset) {
this.StartTimeOffset = StartTimeOffset;
}
/**
* Get The end offset (seconds). If you do not specify this, the segment will end at the end of the video.
* @return EndTimeOffset The end offset (seconds). If you do not specify this, the segment will end at the end of the video.
*/
public Float getEndTimeOffset() {
return this.EndTimeOffset;
}
/**
* Set The end offset (seconds). If you do not specify this, the segment will end at the end of the video.
* @param EndTimeOffset The end offset (seconds). If you do not specify this, the segment will end at the end of the video.
*/
public void setEndTimeOffset(Float EndTimeOffset) {
this.EndTimeOffset = EndTimeOffset;
}
/**
* Get New file configuration after rebuild.
* @return OutputConfig New file configuration after rebuild.
*/
public RebuildMediaOutputConfig getOutputConfig() {
return this.OutputConfig;
}
/**
* Set New file configuration after rebuild.
* @param OutputConfig New file configuration after rebuild.
*/
public void setOutputConfig(RebuildMediaOutputConfig OutputConfig) {
this.OutputConfig = OutputConfig;
}
/**
* Get The session ID, which is used for de-duplication. If there was a request with the same session ID in the last three days, an error will be returned for the current request. The session ID can contain up to 50 characters. If you do not pass this parameter or pass in an empty string, duplicate sessions will not be identified.
* @return SessionId The session ID, which is used for de-duplication. If there was a request with the same session ID in the last three days, an error will be returned for the current request. The session ID can contain up to 50 characters. If you do not pass this parameter or pass in an empty string, duplicate sessions will not be identified.
*/
public String getSessionId() {
return this.SessionId;
}
/**
* Set The session ID, which is used for de-duplication. If there was a request with the same session ID in the last three days, an error will be returned for the current request. The session ID can contain up to 50 characters. If you do not pass this parameter or pass in an empty string, duplicate sessions will not be identified.
* @param SessionId The session ID, which is used for de-duplication. If there was a request with the same session ID in the last three days, an error will be returned for the current request. The session ID can contain up to 50 characters. If you do not pass this parameter or pass in an empty string, duplicate sessions will not be identified.
*/
public void setSessionId(String SessionId) {
this.SessionId = SessionId;
}
/**
* Get The source context, which is used to pass through user request information. The `ProcedureStateChanged` callback will return the value of this parameter. It can contain up to 1,000 characters.
* @return SessionContext The source context, which is used to pass through user request information. The `ProcedureStateChanged` callback will return the value of this parameter. It can contain up to 1,000 characters.
*/
public String getSessionContext() {
return this.SessionContext;
}
/**
* Set The source context, which is used to pass through user request information. The `ProcedureStateChanged` callback will return the value of this parameter. It can contain up to 1,000 characters.
* @param SessionContext The source context, which is used to pass through user request information. The `ProcedureStateChanged` callback will return the value of this parameter. It can contain up to 1,000 characters.
*/
public void setSessionContext(String SessionContext) {
this.SessionContext = SessionContext;
}
/**
* Get The task priority, which can be a value from -10 to 10. The higher the value, the higher the priority. If this parameter is left empty, 0 will be used.
* @return TasksPriority The task priority, which can be a value from -10 to 10. The higher the value, the higher the priority. If this parameter is left empty, 0 will be used.
*/
public Long getTasksPriority() {
return this.TasksPriority;
}
/**
* Set The task priority, which can be a value from -10 to 10. The higher the value, the higher the priority. If this parameter is left empty, 0 will be used.
* @param TasksPriority The task priority, which can be a value from -10 to 10. The higher the value, the higher the priority. If this parameter is left empty, 0 will be used.
*/
public void setTasksPriority(Long TasksPriority) {
this.TasksPriority = TasksPriority;
}
/**
* Get A reserved parameter.
* @return ExtInfo A reserved parameter.
*/
public String getExtInfo() {
return this.ExtInfo;
}
/**
* Set A reserved parameter.
* @param ExtInfo A reserved parameter.
*/
public void setExtInfo(String ExtInfo) {
this.ExtInfo = ExtInfo;
}
public RebuildMediaByTemplateRequest() {
}
/**
* 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 RebuildMediaByTemplateRequest(RebuildMediaByTemplateRequest source) {
if (source.FileId != null) {
this.FileId = new String(source.FileId);
}
if (source.Definition != null) {
this.Definition = new Long(source.Definition);
}
if (source.SubAppId != null) {
this.SubAppId = new String(source.SubAppId);
}
if (source.StartTimeOffset != null) {
this.StartTimeOffset = new Float(source.StartTimeOffset);
}
if (source.EndTimeOffset != null) {
this.EndTimeOffset = new Float(source.EndTimeOffset);
}
if (source.OutputConfig != null) {
this.OutputConfig = new RebuildMediaOutputConfig(source.OutputConfig);
}
if (source.SessionId != null) {
this.SessionId = new String(source.SessionId);
}
if (source.SessionContext != null) {
this.SessionContext = new String(source.SessionContext);
}
if (source.TasksPriority != null) {
this.TasksPriority = new Long(source.TasksPriority);
}
if (source.ExtInfo != null) {
this.ExtInfo = new String(source.ExtInfo);
}
}
/**
* 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 + "Definition", this.Definition);
this.setParamSimple(map, prefix + "SubAppId", this.SubAppId);
this.setParamSimple(map, prefix + "StartTimeOffset", this.StartTimeOffset);
this.setParamSimple(map, prefix + "EndTimeOffset", this.EndTimeOffset);
this.setParamObj(map, prefix + "OutputConfig.", this.OutputConfig);
this.setParamSimple(map, prefix + "SessionId", this.SessionId);
this.setParamSimple(map, prefix + "SessionContext", this.SessionContext);
this.setParamSimple(map, prefix + "TasksPriority", this.TasksPriority);
this.setParamSimple(map, prefix + "ExtInfo", this.ExtInfo);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy