public class AdooriCampagin {
protected int campaignTpId;
protected int targetPopId;
protected List domainList;
protected List keywordList;
protected List countryList;
protected String domain;
protected String keyword;
protected int tpAdGroupKeywordId;
protected int tpAdGroupDomainId;
protected int tpAdGroupId;
protected String country;
protected String campaginUrl;
protected int hourlyCap;
protected AdooriCampagin.Action action;
public enum Action {
//INSERT 和 DELETE相当于Action类型,通过action.DELETE.value得到1
INSERT((short) 1),
DELETE((short) 2);
protected final int value;
Action(int value) {
this.value = value;
}
public int getValue() {
return value;
}
public static Action valueOf(int id) {
for (Action t : Action.values()) {
if (t.getValue() == id) {
return t;
}
}
return null;
}
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder();
sb.append("AdooriCampagin");
sb.append(",campaignTpId=").append(campaignTpId);
sb.append(",targetPopId=").append(targetPopId);
sb.append(",tpAdGroupDomainId=").append(tpAdGroupDomainId);
sb.append(",domainList=").append(domainList).append('/'');
sb.append(",tpAdGroupKeywordId=").append(tpAdGroupKeywordId);
sb.append(",keywondList='").append(keywordList).append('/'');
sb.append(",country=").append(country).append('/'');
sb.append(",campaginUrl='").append(campaginUrl).append('/'');
sb.append(",hourlyCap=").append(hourlyCap);
sb.append(",action=").append(action);
sb.append('}');
return sb.toString();
}
public void setTargetPopId(int targetPopId){
this.targetPopId= targetPopId;
}
public int getTargetPopId(){
return targetPopId;
}
public void setAction(AdooriCampagin.Action action){
this.action = action;
}
public AdooriCampagin.Action getAction(){
return action;
}
public void setTpAdGroupId(int tpAdGroupId){
this.tpAdGroupId= tpAdGroupId;
}
public int getTpAdGroupId(){
return tpAdGroupId;
}
public void setTpAdGroupDomainId(int tpAdGroupDomainId){
this.tpAdGroupDomainId= tpAdGroupDomainId;
}
public int getTpAdGroupDomainId(){
return tpAdGroupDomainId;
}
public void setTpAdGroupKeywordId(int tpAdGroupKeywordId){
this.tpAdGroupKeywordId= tpAdGroupKeywordId;
}
public int getTpAdGroupKeywordId(){
return tpAdGroupKeywordId;
}
public void setCampaignTpId(int campaignTpId){
this.campaignTpId= campaignTpId;
}
public int getCampaignTpId(){
return campaignTpId;
}
public void setDomainList(List domainList){
this.domainList= domainList;
}
public List getDomainList(){
return domainList;
}
public void setKeywordList(List keywordList){
this.keywordList= keywordList;
}
public List getKeywordList(){
return keywordList;
}
public void setCountry(String country){
this.country= country;
}
public String getCountry(){
return country;
}
public void setCampaginUrl(String campaginUrl){
this.campaginUrl= campaginUrl;
}
public String getCampaginUrl(){
return campaginUrl;
}
public void setHourlyCap(int hourlyCap){
this.hourlyCap= hourlyCap;
}
public int getHourlyCap(){
return hourlyCap;
}
public void setDomain(String domain){
this.domain= domain;
}
public String getDomain(){
return domain;
}
public void setKeyword(String keyword){
this.keyword= keyword;
}
public String getKeyword(){
return keyword;
}
public void setCountryList(List countryList){
this.countryList= countryList;
}
public List getCountryList(){
return countryList;
}
}