
com.aliyun.ice20201109.models.SubmitPackageJobRequest Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.ice20201109.models;
import com.aliyun.tea.*;
public class SubmitPackageJobRequest extends TeaModel {
/**
* The input of the job.
* This parameter is required.
*/
@NameInMap("Inputs")
public java.util.List inputs;
/**
* The name of the job.
*
* example:
* job-name
*/
@NameInMap("Name")
public String name;
/**
* The output of the job.
* This parameter is required.
*/
@NameInMap("Output")
public SubmitPackageJobRequestOutput output;
/**
* The scheduling settings.
*/
@NameInMap("ScheduleConfig")
public SubmitPackageJobRequestScheduleConfig scheduleConfig;
/**
* The user-defined data.
*
* example:
* {"param": "value"}
*/
@NameInMap("UserData")
public String userData;
public static SubmitPackageJobRequest build(java.util.Map map) throws Exception {
SubmitPackageJobRequest self = new SubmitPackageJobRequest();
return TeaModel.build(map, self);
}
public SubmitPackageJobRequest setInputs(java.util.List inputs) {
this.inputs = inputs;
return this;
}
public java.util.List getInputs() {
return this.inputs;
}
public SubmitPackageJobRequest setName(String name) {
this.name = name;
return this;
}
public String getName() {
return this.name;
}
public SubmitPackageJobRequest setOutput(SubmitPackageJobRequestOutput output) {
this.output = output;
return this;
}
public SubmitPackageJobRequestOutput getOutput() {
return this.output;
}
public SubmitPackageJobRequest setScheduleConfig(SubmitPackageJobRequestScheduleConfig scheduleConfig) {
this.scheduleConfig = scheduleConfig;
return this;
}
public SubmitPackageJobRequestScheduleConfig getScheduleConfig() {
return this.scheduleConfig;
}
public SubmitPackageJobRequest setUserData(String userData) {
this.userData = userData;
return this;
}
public String getUserData() {
return this.userData;
}
public static class SubmitPackageJobRequestInputsInput extends TeaModel {
/**
* The media object.
*
* - If Type is set to OSS, set this parameter to the URL of an OSS object. Both the OSS and HTTP protocols are supported.
* - If Type is set to Media, set this parameter to the ID of a media asset.
*
* This parameter is required.
*
* example:
* oss://bucket/path/to/video.mp4
*/
@NameInMap("Media")
public String media;
/**
* The type of the media object. Valid values:
*
* - OSS: an Object Storage Service (OSS) object.
* - Media: a media asset.
*
* This parameter is required.
*
* example:
* OSS
*/
@NameInMap("Type")
public String type;
public static SubmitPackageJobRequestInputsInput build(java.util.Map map) throws Exception {
SubmitPackageJobRequestInputsInput self = new SubmitPackageJobRequestInputsInput();
return TeaModel.build(map, self);
}
public SubmitPackageJobRequestInputsInput setMedia(String media) {
this.media = media;
return this;
}
public String getMedia() {
return this.media;
}
public SubmitPackageJobRequestInputsInput setType(String type) {
this.type = type;
return this;
}
public String getType() {
return this.type;
}
}
public static class SubmitPackageJobRequestInputs extends TeaModel {
/**
* The information about the input stream file.
* This parameter is required.
*/
@NameInMap("Input")
public SubmitPackageJobRequestInputsInput input;
public static SubmitPackageJobRequestInputs build(java.util.Map map) throws Exception {
SubmitPackageJobRequestInputs self = new SubmitPackageJobRequestInputs();
return TeaModel.build(map, self);
}
public SubmitPackageJobRequestInputs setInput(SubmitPackageJobRequestInputsInput input) {
this.input = input;
return this;
}
public SubmitPackageJobRequestInputsInput getInput() {
return this.input;
}
}
public static class SubmitPackageJobRequestOutput extends TeaModel {
/**
* The media object. If Type is set to OSS, set this parameter to the URL of an OSS object. Both the OSS and HTTP protocols are supported. If Type is set to Media, set this parameter to the ID of a media asset.
* This parameter is required.
*
* example:
* oss://bucket/path/to/video.mp4
*/
@NameInMap("Media")
public String media;
/**
* The type of the media object. Valid values:
*
* - OSS: an OSS object.
* - Media: a media asset.
*
* This parameter is required.
*
* example:
* OSS
*/
@NameInMap("Type")
public String type;
public static SubmitPackageJobRequestOutput build(java.util.Map map) throws Exception {
SubmitPackageJobRequestOutput self = new SubmitPackageJobRequestOutput();
return TeaModel.build(map, self);
}
public SubmitPackageJobRequestOutput setMedia(String media) {
this.media = media;
return this;
}
public String getMedia() {
return this.media;
}
public SubmitPackageJobRequestOutput setType(String type) {
this.type = type;
return this;
}
public String getType() {
return this.type;
}
}
public static class SubmitPackageJobRequestScheduleConfig extends TeaModel {
/**
* The ID of the MPS queue to which the job was submitted.
*
* example:
* e37ebee5d98b4781897f6086e89f9c56
*/
@NameInMap("PipelineId")
public String pipelineId;
/**
* The priority of the job. Valid values: 1 to 10. The greater the value, the higher the priority.
*
* example:
* 5
*/
@NameInMap("Priority")
public Integer priority;
public static SubmitPackageJobRequestScheduleConfig build(java.util.Map map) throws Exception {
SubmitPackageJobRequestScheduleConfig self = new SubmitPackageJobRequestScheduleConfig();
return TeaModel.build(map, self);
}
public SubmitPackageJobRequestScheduleConfig setPipelineId(String pipelineId) {
this.pipelineId = pipelineId;
return this;
}
public String getPipelineId() {
return this.pipelineId;
}
public SubmitPackageJobRequestScheduleConfig setPriority(Integer priority) {
this.priority = priority;
return this;
}
public Integer getPriority() {
return this.priority;
}
}
}