com.tencentcloudapi.vod.v20180717.models.EditMediaTask 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.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class EditMediaTask extends AbstractModel{
/**
* Task ID.
*/
@SerializedName("TaskId")
@Expose
private String TaskId;
/**
* Task flow status. Valid values:
PROCESSING: processing;
FINISH: completed.
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("Status")
@Expose
private String Status;
/**
* Error code. 0: success; other values: failure.
40000: invalid input parameter. Please check it;
60000: invalid source file (e.g., video data is corrupted). Please check whether the source file is normal;
70000: internal service error. Please try again.
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("ErrCode")
@Expose
private Long ErrCode;
/**
* Error message.
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("Message")
@Expose
private String Message;
/**
* Input of video editing task.
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("Input")
@Expose
private EditMediaTaskInput Input;
/**
* Output of video editing task.
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("Output")
@Expose
private EditMediaTaskOutput Output;
/**
* If a video processing flow is specified when a video editing task is initiated, this field will be the ID of the task flow.
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("ProcedureTaskId")
@Expose
private String ProcedureTaskId;
/**
* The source context which is used to pass through the user request information. The task flow status change callback will return the value of this field. It can contain up to 1,000 characters.
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("SessionContext")
@Expose
private String SessionContext;
/**
* The ID used for deduplication. If there was a request with the same ID in the last seven days, the current request will return an error. The ID can contain up to 50 characters. If this parameter is left empty or a blank string is entered, no deduplication will be performed.
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("SessionId")
@Expose
private String SessionId;
/**
* Metadata of a source video
*/
@SerializedName("MetaData")
@Expose
private MediaMetaData MetaData;
/**
* Get Task ID.
* @return TaskId Task ID.
*/
public String getTaskId() {
return this.TaskId;
}
/**
* Set Task ID.
* @param TaskId Task ID.
*/
public void setTaskId(String TaskId) {
this.TaskId = TaskId;
}
/**
* Get Task flow status. Valid values:
PROCESSING: processing;
FINISH: completed.
Note: this field may return null, indicating that no valid values can be obtained.
* @return Status Task flow status. Valid values:
PROCESSING: processing;
FINISH: completed.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public String getStatus() {
return this.Status;
}
/**
* Set Task flow status. Valid values:
PROCESSING: processing;
FINISH: completed.
Note: this field may return null, indicating that no valid values can be obtained.
* @param Status Task flow status. Valid values:
PROCESSING: processing;
FINISH: completed.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setStatus(String Status) {
this.Status = Status;
}
/**
* Get Error code. 0: success; other values: failure.
40000: invalid input parameter. Please check it;
60000: invalid source file (e.g., video data is corrupted). Please check whether the source file is normal;
70000: internal service error. Please try again.
Note: this field may return null, indicating that no valid values can be obtained.
* @return ErrCode Error code. 0: success; other values: failure.
40000: invalid input parameter. Please check it;
60000: invalid source file (e.g., video data is corrupted). Please check whether the source file is normal;
70000: internal service error. Please try again.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public Long getErrCode() {
return this.ErrCode;
}
/**
* Set Error code. 0: success; other values: failure.
40000: invalid input parameter. Please check it;
60000: invalid source file (e.g., video data is corrupted). Please check whether the source file is normal;
70000: internal service error. Please try again.
Note: this field may return null, indicating that no valid values can be obtained.
* @param ErrCode Error code. 0: success; other values: failure.
40000: invalid input parameter. Please check it;
60000: invalid source file (e.g., video data is corrupted). Please check whether the source file is normal;
70000: internal service error. Please try again.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setErrCode(Long ErrCode) {
this.ErrCode = ErrCode;
}
/**
* Get Error message.
Note: this field may return null, indicating that no valid values can be obtained.
* @return Message Error message.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public String getMessage() {
return this.Message;
}
/**
* Set Error message.
Note: this field may return null, indicating that no valid values can be obtained.
* @param Message Error message.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setMessage(String Message) {
this.Message = Message;
}
/**
* Get Input of video editing task.
Note: this field may return null, indicating that no valid values can be obtained.
* @return Input Input of video editing task.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public EditMediaTaskInput getInput() {
return this.Input;
}
/**
* Set Input of video editing task.
Note: this field may return null, indicating that no valid values can be obtained.
* @param Input Input of video editing task.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setInput(EditMediaTaskInput Input) {
this.Input = Input;
}
/**
* Get Output of video editing task.
Note: this field may return null, indicating that no valid values can be obtained.
* @return Output Output of video editing task.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public EditMediaTaskOutput getOutput() {
return this.Output;
}
/**
* Set Output of video editing task.
Note: this field may return null, indicating that no valid values can be obtained.
* @param Output Output of video editing task.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setOutput(EditMediaTaskOutput Output) {
this.Output = Output;
}
/**
* Get If a video processing flow is specified when a video editing task is initiated, this field will be the ID of the task flow.
Note: this field may return null, indicating that no valid values can be obtained.
* @return ProcedureTaskId If a video processing flow is specified when a video editing task is initiated, this field will be the ID of the task flow.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public String getProcedureTaskId() {
return this.ProcedureTaskId;
}
/**
* Set If a video processing flow is specified when a video editing task is initiated, this field will be the ID of the task flow.
Note: this field may return null, indicating that no valid values can be obtained.
* @param ProcedureTaskId If a video processing flow is specified when a video editing task is initiated, this field will be the ID of the task flow.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setProcedureTaskId(String ProcedureTaskId) {
this.ProcedureTaskId = ProcedureTaskId;
}
/**
* Get The source context which is used to pass through the user request information. The task flow status change callback will return the value of this field. It can contain up to 1,000 characters.
Note: this field may return null, indicating that no valid values can be obtained.
* @return SessionContext The source context which is used to pass through the user request information. The task flow status change callback will return the value of this field. It can contain up to 1,000 characters.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public String getSessionContext() {
return this.SessionContext;
}
/**
* Set The source context which is used to pass through the user request information. The task flow status change callback will return the value of this field. It can contain up to 1,000 characters.
Note: this field may return null, indicating that no valid values can be obtained.
* @param SessionContext The source context which is used to pass through the user request information. The task flow status change callback will return the value of this field. It can contain up to 1,000 characters.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setSessionContext(String SessionContext) {
this.SessionContext = SessionContext;
}
/**
* Get The ID used for deduplication. If there was a request with the same ID in the last seven days, the current request will return an error. The ID can contain up to 50 characters. If this parameter is left empty or a blank string is entered, no deduplication will be performed.
Note: this field may return null, indicating that no valid values can be obtained.
* @return SessionId The ID used for deduplication. If there was a request with the same ID in the last seven days, the current request will return an error. The ID can contain up to 50 characters. If this parameter is left empty or a blank string is entered, no deduplication will be performed.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public String getSessionId() {
return this.SessionId;
}
/**
* Set The ID used for deduplication. If there was a request with the same ID in the last seven days, the current request will return an error. The ID can contain up to 50 characters. If this parameter is left empty or a blank string is entered, no deduplication will be performed.
Note: this field may return null, indicating that no valid values can be obtained.
* @param SessionId The ID used for deduplication. If there was a request with the same ID in the last seven days, the current request will return an error. The ID can contain up to 50 characters. If this parameter is left empty or a blank string is entered, no deduplication will be performed.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setSessionId(String SessionId) {
this.SessionId = SessionId;
}
/**
* Get Metadata of a source video
* @return MetaData Metadata of a source video
*/
public MediaMetaData getMetaData() {
return this.MetaData;
}
/**
* Set Metadata of a source video
* @param MetaData Metadata of a source video
*/
public void setMetaData(MediaMetaData MetaData) {
this.MetaData = MetaData;
}
public EditMediaTask() {
}
/**
* 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 EditMediaTask(EditMediaTask source) {
if (source.TaskId != null) {
this.TaskId = new String(source.TaskId);
}
if (source.Status != null) {
this.Status = new String(source.Status);
}
if (source.ErrCode != null) {
this.ErrCode = new Long(source.ErrCode);
}
if (source.Message != null) {
this.Message = new String(source.Message);
}
if (source.Input != null) {
this.Input = new EditMediaTaskInput(source.Input);
}
if (source.Output != null) {
this.Output = new EditMediaTaskOutput(source.Output);
}
if (source.ProcedureTaskId != null) {
this.ProcedureTaskId = new String(source.ProcedureTaskId);
}
if (source.SessionContext != null) {
this.SessionContext = new String(source.SessionContext);
}
if (source.SessionId != null) {
this.SessionId = new String(source.SessionId);
}
if (source.MetaData != null) {
this.MetaData = new MediaMetaData(source.MetaData);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "TaskId", this.TaskId);
this.setParamSimple(map, prefix + "Status", this.Status);
this.setParamSimple(map, prefix + "ErrCode", this.ErrCode);
this.setParamSimple(map, prefix + "Message", this.Message);
this.setParamObj(map, prefix + "Input.", this.Input);
this.setParamObj(map, prefix + "Output.", this.Output);
this.setParamSimple(map, prefix + "ProcedureTaskId", this.ProcedureTaskId);
this.setParamSimple(map, prefix + "SessionContext", this.SessionContext);
this.setParamSimple(map, prefix + "SessionId", this.SessionId);
this.setParamObj(map, prefix + "MetaData.", this.MetaData);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy