com.aliyun.sdk.service.iot20180120.models.CreateJobRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-iot20180120 Show documentation
Show all versions of alibabacloud-iot20180120 Show documentation
Alibaba Cloud Iot (20180120) Async SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.iot20180120.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link CreateJobRequest} extends {@link RequestModel}
*
* CreateJobRequest
*/
public class CreateJobRequest extends Request {
@Query
@NameInMap("Description")
private String description;
@Query
@NameInMap("IotInstanceId")
private String iotInstanceId;
@Query
@NameInMap("JobDocument")
@Validation(required = true)
private String jobDocument;
@Query
@NameInMap("JobFile")
private java.util.Map < String, ? > jobFile;
@Query
@NameInMap("JobName")
@Validation(required = true)
private String jobName;
@Query
@NameInMap("RolloutConfig")
private java.util.Map < String, ? > rolloutConfig;
@Query
@NameInMap("ScheduledTime")
private Long scheduledTime;
@Query
@NameInMap("TargetConfig")
@Validation(required = true)
private java.util.Map < String, ? > targetConfig;
@Query
@NameInMap("TimeoutConfig")
private java.util.Map < String, ? > timeoutConfig;
@Query
@NameInMap("Type")
@Validation(required = true)
private String type;
private CreateJobRequest(Builder builder) {
super(builder);
this.description = builder.description;
this.iotInstanceId = builder.iotInstanceId;
this.jobDocument = builder.jobDocument;
this.jobFile = builder.jobFile;
this.jobName = builder.jobName;
this.rolloutConfig = builder.rolloutConfig;
this.scheduledTime = builder.scheduledTime;
this.targetConfig = builder.targetConfig;
this.timeoutConfig = builder.timeoutConfig;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static CreateJobRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return iotInstanceId
*/
public String getIotInstanceId() {
return this.iotInstanceId;
}
/**
* @return jobDocument
*/
public String getJobDocument() {
return this.jobDocument;
}
/**
* @return jobFile
*/
public java.util.Map < String, ? > getJobFile() {
return this.jobFile;
}
/**
* @return jobName
*/
public String getJobName() {
return this.jobName;
}
/**
* @return rolloutConfig
*/
public java.util.Map < String, ? > getRolloutConfig() {
return this.rolloutConfig;
}
/**
* @return scheduledTime
*/
public Long getScheduledTime() {
return this.scheduledTime;
}
/**
* @return targetConfig
*/
public java.util.Map < String, ? > getTargetConfig() {
return this.targetConfig;
}
/**
* @return timeoutConfig
*/
public java.util.Map < String, ? > getTimeoutConfig() {
return this.timeoutConfig;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder extends Request.Builder {
private String description;
private String iotInstanceId;
private String jobDocument;
private java.util.Map < String, ? > jobFile;
private String jobName;
private java.util.Map < String, ? > rolloutConfig;
private Long scheduledTime;
private java.util.Map < String, ? > targetConfig;
private java.util.Map < String, ? > timeoutConfig;
private String type;
private Builder() {
super();
}
private Builder(CreateJobRequest request) {
super(request);
this.description = request.description;
this.iotInstanceId = request.iotInstanceId;
this.jobDocument = request.jobDocument;
this.jobFile = request.jobFile;
this.jobName = request.jobName;
this.rolloutConfig = request.rolloutConfig;
this.scheduledTime = request.scheduledTime;
this.targetConfig = request.targetConfig;
this.timeoutConfig = request.timeoutConfig;
this.type = request.type;
}
/**
* Description.
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* IotInstanceId.
*/
public Builder iotInstanceId(String iotInstanceId) {
this.putQueryParameter("IotInstanceId", iotInstanceId);
this.iotInstanceId = iotInstanceId;
return this;
}
/**
* JobDocument.
*/
public Builder jobDocument(String jobDocument) {
this.putQueryParameter("JobDocument", jobDocument);
this.jobDocument = jobDocument;
return this;
}
/**
* JobFile.
*/
public Builder jobFile(java.util.Map < String, ? > jobFile) {
String jobFileShrink = shrink(jobFile, "JobFile", "json");
this.putQueryParameter("JobFile", jobFileShrink);
this.jobFile = jobFile;
return this;
}
/**
* JobName.
*/
public Builder jobName(String jobName) {
this.putQueryParameter("JobName", jobName);
this.jobName = jobName;
return this;
}
/**
* RolloutConfig.
*/
public Builder rolloutConfig(java.util.Map < String, ? > rolloutConfig) {
String rolloutConfigShrink = shrink(rolloutConfig, "RolloutConfig", "json");
this.putQueryParameter("RolloutConfig", rolloutConfigShrink);
this.rolloutConfig = rolloutConfig;
return this;
}
/**
* ScheduledTime.
*/
public Builder scheduledTime(Long scheduledTime) {
this.putQueryParameter("ScheduledTime", scheduledTime);
this.scheduledTime = scheduledTime;
return this;
}
/**
* TargetConfig.
*/
public Builder targetConfig(java.util.Map < String, ? > targetConfig) {
String targetConfigShrink = shrink(targetConfig, "TargetConfig", "json");
this.putQueryParameter("TargetConfig", targetConfigShrink);
this.targetConfig = targetConfig;
return this;
}
/**
* TimeoutConfig.
*/
public Builder timeoutConfig(java.util.Map < String, ? > timeoutConfig) {
String timeoutConfigShrink = shrink(timeoutConfig, "TimeoutConfig", "json");
this.putQueryParameter("TimeoutConfig", timeoutConfigShrink);
this.timeoutConfig = timeoutConfig;
return this;
}
/**
* Type.
*/
public Builder type(String type) {
this.putQueryParameter("Type", type);
this.type = type;
return this;
}
@Override
public CreateJobRequest build() {
return new CreateJobRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy