com.aliyun.openservices.log.request.UpdateJobRequest Maven / Gradle / Ivy
package com.aliyun.openservices.log.request;
import com.aliyun.openservices.log.common.Job;
import com.aliyun.openservices.log.http.client.HttpMethod;
import com.aliyun.openservices.log.util.Args;
public class UpdateJobRequest extends JobRequest {
private static final long serialVersionUID = -4557239895876051743L;
private Job job;
UpdateJobRequest(String project) {
super(project);
}
public UpdateJobRequest(String project, Job job) {
super(project);
setJob(job);
}
public Job getJob() {
return job;
}
public void setJob(Job job) {
Args.notNull(job, "Job");
this.job = job;
setName(job.getName());
}
@Override
public HttpMethod getMethod() {
return HttpMethod.PUT;
}
@Override
public Object getBody() {
return job;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy