com.sailthru.client.params.job.Job Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sailthru-java-client Show documentation
Show all versions of sailthru-java-client Show documentation
Java client library for Sailthru API
The newest version!
package com.sailthru.client.params.job;
import com.google.gson.reflect.TypeToken;
import com.sailthru.client.ApiAction;
import com.sailthru.client.params.AbstractApiParams;
import com.sailthru.client.params.ApiParams;
import java.lang.reflect.Type;
/**
*
* @author Prajwal Tuladhar
*/
abstract public class Job extends AbstractApiParams implements ApiParams {
protected String job_id;
protected String job;
protected String report_email;
protected String postback_url;
public static final String JOB_ID = "job_id";
public Type getType() {
return new TypeToken() {}.getType();
}
public Job setReportEmail(String reportEmail) {
this.report_email = reportEmail;
return this;
}
public Job setPostbackUrl(String postbackUrl) {
this.postback_url = postbackUrl;
return this;
}
public Job setJob(String job) {
this.job = job;
return this;
}
public ApiAction getApiCall() {
return ApiAction.job;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy