com.aliyun.openservices.log.request.CreateJobRequest Maven / Gradle / Ivy
package com.aliyun.openservices.log.request;
import com.aliyun.openservices.log.common.Consts;
import com.aliyun.openservices.log.common.Job;
import com.aliyun.openservices.log.http.client.HttpMethod;
import com.aliyun.openservices.log.util.Args;
public class CreateJobRequest extends JobRequest {
private static final long serialVersionUID = -7991351821489008819L;
private Job job;
CreateJobRequest(String project) {
super(project);
}
public CreateJobRequest(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;
}
@Override
public HttpMethod getMethod() {
return HttpMethod.POST;
}
@Override
public String getUri() {
return Consts.JOB_URI;
}
@Override
public Object getBody() {
return job;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy