
com.tencent.ads.model.CustomLocationRule 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 CustomLocationRule {
@SerializedName("poi_type")
private LbsPOIType poiType = null;
@SerializedName("date_range")
private CustomLocationDateRange dateRange = null;
@SerializedName("frequency_spec")
private FrequencySpec frequencySpec = null;
@SerializedName("area_list")
private List areaList = null;
public CustomLocationRule poiType(LbsPOIType poiType) {
this.poiType = poiType;
return this;
}
/**
* Get poiType
*
* @return poiType
*/
@ApiModelProperty(value = "")
public LbsPOIType getPoiType() {
return poiType;
}
public void setPoiType(LbsPOIType poiType) {
this.poiType = poiType;
}
public CustomLocationRule dateRange(CustomLocationDateRange dateRange) {
this.dateRange = dateRange;
return this;
}
/**
* Get dateRange
*
* @return dateRange
*/
@ApiModelProperty(value = "")
public CustomLocationDateRange getDateRange() {
return dateRange;
}
public void setDateRange(CustomLocationDateRange dateRange) {
this.dateRange = dateRange;
}
public CustomLocationRule frequencySpec(FrequencySpec frequencySpec) {
this.frequencySpec = frequencySpec;
return this;
}
/**
* Get frequencySpec
*
* @return frequencySpec
*/
@ApiModelProperty(value = "")
public FrequencySpec getFrequencySpec() {
return frequencySpec;
}
public void setFrequencySpec(FrequencySpec frequencySpec) {
this.frequencySpec = frequencySpec;
}
public CustomLocationRule areaList(List areaList) {
this.areaList = areaList;
return this;
}
public CustomLocationRule addAreaListItem(AreaSpec areaListItem) {
if (this.areaList == null) {
this.areaList = new ArrayList();
}
this.areaList.add(areaListItem);
return this;
}
/**
* Get areaList
*
* @return areaList
*/
@ApiModelProperty(value = "")
public List getAreaList() {
return areaList;
}
public void setAreaList(List areaList) {
this.areaList = areaList;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CustomLocationRule customLocationRule = (CustomLocationRule) o;
return Objects.equals(this.poiType, customLocationRule.poiType)
&& Objects.equals(this.dateRange, customLocationRule.dateRange)
&& Objects.equals(this.frequencySpec, customLocationRule.frequencySpec)
&& Objects.equals(this.areaList, customLocationRule.areaList);
}
@Override
public int hashCode() {
return Objects.hash(poiType, dateRange, frequencySpec, areaList);
}
@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