
com.tencent.ads.model.FrequencySpec 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.Objects;
/** 频次定义 */
@ApiModel(description = "频次定义")
public class FrequencySpec {
@SerializedName("comparator")
private Comparator comparator = null;
@SerializedName("frequency_min_value")
private Long frequencyMinValue = null;
@SerializedName("frequency_max_value")
private Long frequencyMaxValue = null;
public FrequencySpec comparator(Comparator comparator) {
this.comparator = comparator;
return this;
}
/**
* Get comparator
*
* @return comparator
*/
@ApiModelProperty(value = "")
public Comparator getComparator() {
return comparator;
}
public void setComparator(Comparator comparator) {
this.comparator = comparator;
}
public FrequencySpec frequencyMinValue(Long frequencyMinValue) {
this.frequencyMinValue = frequencyMinValue;
return this;
}
/**
* Get frequencyMinValue
*
* @return frequencyMinValue
*/
@ApiModelProperty(value = "")
public Long getFrequencyMinValue() {
return frequencyMinValue;
}
public void setFrequencyMinValue(Long frequencyMinValue) {
this.frequencyMinValue = frequencyMinValue;
}
public FrequencySpec frequencyMaxValue(Long frequencyMaxValue) {
this.frequencyMaxValue = frequencyMaxValue;
return this;
}
/**
* Get frequencyMaxValue
*
* @return frequencyMaxValue
*/
@ApiModelProperty(value = "")
public Long getFrequencyMaxValue() {
return frequencyMaxValue;
}
public void setFrequencyMaxValue(Long frequencyMaxValue) {
this.frequencyMaxValue = frequencyMaxValue;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
FrequencySpec frequencySpec = (FrequencySpec) o;
return Objects.equals(this.comparator, frequencySpec.comparator)
&& Objects.equals(this.frequencyMinValue, frequencySpec.frequencyMinValue)
&& Objects.equals(this.frequencyMaxValue, frequencySpec.frequencyMaxValue);
}
@Override
public int hashCode() {
return Objects.hash(comparator, frequencyMinValue, frequencyMaxValue);
}
@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