
com.tencent.ads.model.AdRuleSpec Maven / Gradle / Ivy
/*
* Marketing API
* Marketing API
*
* OpenAPI spec version: 1.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.tencent.ads.model;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/** 广告人群信息 */
@ApiModel(description = "广告人群信息")
public class AdRuleSpec {
@SerializedName("rule_type")
private AdRuleType ruleType = null;
@SerializedName("conversion_type")
private List conversionType = null;
@SerializedName("start_date")
private String startDate = null;
@SerializedName("end_date")
private String endDate = null;
@SerializedName("campaign_id_list")
private List campaignIdList = null;
@SerializedName("adgroup_id_list")
private List adgroupIdList = null;
@SerializedName("promoted_object_list")
private List promotedObjectList = null;
public AdRuleSpec ruleType(AdRuleType ruleType) {
this.ruleType = ruleType;
return this;
}
/**
* Get ruleType
*
* @return ruleType
*/
@ApiModelProperty(value = "")
public AdRuleType getRuleType() {
return ruleType;
}
public void setRuleType(AdRuleType ruleType) {
this.ruleType = ruleType;
}
public AdRuleSpec conversionType(List conversionType) {
this.conversionType = conversionType;
return this;
}
public AdRuleSpec addConversionTypeItem(String conversionTypeItem) {
if (this.conversionType == null) {
this.conversionType = new ArrayList();
}
this.conversionType.add(conversionTypeItem);
return this;
}
/**
* Get conversionType
*
* @return conversionType
*/
@ApiModelProperty(value = "")
public List getConversionType() {
return conversionType;
}
public void setConversionType(List conversionType) {
this.conversionType = conversionType;
}
public AdRuleSpec startDate(String startDate) {
this.startDate = startDate;
return this;
}
/**
* Get startDate
*
* @return startDate
*/
@ApiModelProperty(value = "")
public String getStartDate() {
return startDate;
}
public void setStartDate(String startDate) {
this.startDate = startDate;
}
public AdRuleSpec endDate(String endDate) {
this.endDate = endDate;
return this;
}
/**
* Get endDate
*
* @return endDate
*/
@ApiModelProperty(value = "")
public String getEndDate() {
return endDate;
}
public void setEndDate(String endDate) {
this.endDate = endDate;
}
public AdRuleSpec campaignIdList(List campaignIdList) {
this.campaignIdList = campaignIdList;
return this;
}
public AdRuleSpec addCampaignIdListItem(Long campaignIdListItem) {
if (this.campaignIdList == null) {
this.campaignIdList = new ArrayList();
}
this.campaignIdList.add(campaignIdListItem);
return this;
}
/**
* Get campaignIdList
*
* @return campaignIdList
*/
@ApiModelProperty(value = "")
public List getCampaignIdList() {
return campaignIdList;
}
public void setCampaignIdList(List campaignIdList) {
this.campaignIdList = campaignIdList;
}
public AdRuleSpec adgroupIdList(List adgroupIdList) {
this.adgroupIdList = adgroupIdList;
return this;
}
public AdRuleSpec addAdgroupIdListItem(Long adgroupIdListItem) {
if (this.adgroupIdList == null) {
this.adgroupIdList = new ArrayList();
}
this.adgroupIdList.add(adgroupIdListItem);
return this;
}
/**
* Get adgroupIdList
*
* @return adgroupIdList
*/
@ApiModelProperty(value = "")
public List getAdgroupIdList() {
return adgroupIdList;
}
public void setAdgroupIdList(List adgroupIdList) {
this.adgroupIdList = adgroupIdList;
}
public AdRuleSpec promotedObjectList(List promotedObjectList) {
this.promotedObjectList = promotedObjectList;
return this;
}
public AdRuleSpec addPromotedObjectListItem(AdProduct promotedObjectListItem) {
if (this.promotedObjectList == null) {
this.promotedObjectList = new ArrayList();
}
this.promotedObjectList.add(promotedObjectListItem);
return this;
}
/**
* Get promotedObjectList
*
* @return promotedObjectList
*/
@ApiModelProperty(value = "")
public List getPromotedObjectList() {
return promotedObjectList;
}
public void setPromotedObjectList(List promotedObjectList) {
this.promotedObjectList = promotedObjectList;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AdRuleSpec adRuleSpec = (AdRuleSpec) o;
return Objects.equals(this.ruleType, adRuleSpec.ruleType)
&& Objects.equals(this.conversionType, adRuleSpec.conversionType)
&& Objects.equals(this.startDate, adRuleSpec.startDate)
&& Objects.equals(this.endDate, adRuleSpec.endDate)
&& Objects.equals(this.campaignIdList, adRuleSpec.campaignIdList)
&& Objects.equals(this.adgroupIdList, adRuleSpec.adgroupIdList)
&& Objects.equals(this.promotedObjectList, adRuleSpec.promotedObjectList);
}
@Override
public int hashCode() {
return Objects.hash(
ruleType,
conversionType,
startDate,
endDate,
campaignIdList,
adgroupIdList,
promotedObjectList);
}
@Override
public String toString() {
Gson gson = new Gson();
return gson.toJson(this);
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy