com.taobao.api.request.TopatsResultGetRequest Maven / Gradle / Ivy
package com.taobao.api.request;
import com.taobao.api.internal.util.RequestCheckUtils;
import java.util.Map;
import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.taobao.api.internal.util.TaobaoHashMap;
import com.taobao.api.response.TopatsResultGetResponse;
/**
* TOP API: taobao.topats.result.get request
*
* @author top auto create
* @since 1.0, 2014.04.11
*/
public class TopatsResultGetRequest extends BaseTaobaoRequest {
/**
* 任务id号,创建任务时返回的task_id
*/
private Long taskId;
public void setTaskId(Long taskId) {
this.taskId = taskId;
}
public Long getTaskId() {
return this.taskId;
}
public String getApiMethodName() {
return "taobao.topats.result.get";
}
public Map getTextParams() {
TaobaoHashMap txtParams = new TaobaoHashMap();
txtParams.put("task_id", this.taskId);
if(this.udfParams != null) {
txtParams.putAll(this.udfParams);
}
return txtParams;
}
public Class getResponseClass() {
return TopatsResultGetResponse.class;
}
public void check() throws ApiRuleException {
RequestCheckUtils.checkNotEmpty(taskId, "taskId");
}
}