com.huaweicloud.sdk.iotanalytics.v1.model.UpdateStreamingJobRequest Maven / Gradle / Ivy
package com.huaweicloud.sdk.iotanalytics.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.function.Consumer;
/**
* Request Object
*/
public class UpdateStreamingJobRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "check")
private Boolean check;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "job_id")
private String jobId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "body")
private Map body = null;
public UpdateStreamingJobRequest withCheck(Boolean check) {
this.check = check;
return this;
}
/**
* 是否需要校验配置是否正确
* @return check
*/
public Boolean getCheck() {
return check;
}
public void setCheck(Boolean check) {
this.check = check;
}
public UpdateStreamingJobRequest withJobId(String jobId) {
this.jobId = jobId;
return this;
}
/**
* 作业ID
* @return jobId
*/
public String getJobId() {
return jobId;
}
public void setJobId(String jobId) {
this.jobId = jobId;
}
public UpdateStreamingJobRequest withBody(Map body) {
this.body = body;
return this;
}
public UpdateStreamingJobRequest putBodyItem(String key, Object bodyItem) {
if (this.body == null) {
this.body = new HashMap<>();
}
this.body.put(key, bodyItem);
return this;
}
public UpdateStreamingJobRequest withBody(Consumer