com.pdd.pop.sdk.http.api.pop.request.PddAdApiUnitCreativeCheckTitleRequest Maven / Gradle / Ivy
package com.pdd.pop.sdk.http.api.pop.request;
import com.pdd.pop.ext.fasterxml.jackson.annotation.JsonProperty;
import com.pdd.pop.sdk.http.api.pop.response.PddAdApiUnitCreativeCheckTitleResponse;
import com.pdd.pop.sdk.http.HttpMethod;
import com.pdd.pop.sdk.http.PopBaseHttpRequest;
import java.util.Map;
public class PddAdApiUnitCreativeCheckTitleRequest extends PopBaseHttpRequest {
/**
* 商品Id
*/
@JsonProperty("goodsId")
private Long goodsId;
/**
* 创意标题
*/
@JsonProperty("title")
private String title;
@Override
public String getVersion() {
return "V1";
}
@Override
public String getDataType() {
return "JSON";
}
@Override
public Integer getPlatform() {
return 0;
}
@Override
public String getType() {
return "pdd.ad.api.unit.creative.check.title";
}
@Override
public HttpMethod getHttpMethod() {
return HttpMethod.POST;
}
@Override
public Class getResponseClass() {
return PddAdApiUnitCreativeCheckTitleResponse.class;
}
@Override
protected void setUserParams(Map params) {
setUserParam(params, "goodsId", goodsId);
setUserParam(params, "title", title);
}
public void setGoodsId(Long goodsId) {
this.goodsId = goodsId;
}
public void setTitle(String title) {
this.title = title;
}
}