All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencent.ads.model.AggregationMatcher 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 AggregationMatcher {
  @SerializedName("aggregation_type")
  private AggregationType aggregationType = null;

  @SerializedName("count_type")
  private CountType countType = null;

  @SerializedName("param_name")
  private String paramName = null;

  @SerializedName("comparator")
  private Comparator comparator = null;

  @SerializedName("comparison_value")
  private Long comparisonValue = null;

  @SerializedName("comparison_min_value")
  private Long comparisonMinValue = null;

  @SerializedName("comparison_max_value")
  private Long comparisonMaxValue = null;

  public AggregationMatcher aggregationType(AggregationType aggregationType) {
    this.aggregationType = aggregationType;
    return this;
  }

  /**
   * Get aggregationType
   *
   * @return aggregationType
   */
  @ApiModelProperty(value = "")
  public AggregationType getAggregationType() {
    return aggregationType;
  }

  public void setAggregationType(AggregationType aggregationType) {
    this.aggregationType = aggregationType;
  }

  public AggregationMatcher countType(CountType countType) {
    this.countType = countType;
    return this;
  }

  /**
   * Get countType
   *
   * @return countType
   */
  @ApiModelProperty(value = "")
  public CountType getCountType() {
    return countType;
  }

  public void setCountType(CountType countType) {
    this.countType = countType;
  }

  public AggregationMatcher paramName(String paramName) {
    this.paramName = paramName;
    return this;
  }

  /**
   * Get paramName
   *
   * @return paramName
   */
  @ApiModelProperty(value = "")
  public String getParamName() {
    return paramName;
  }

  public void setParamName(String paramName) {
    this.paramName = paramName;
  }

  public AggregationMatcher 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 AggregationMatcher comparisonValue(Long comparisonValue) {
    this.comparisonValue = comparisonValue;
    return this;
  }

  /**
   * Get comparisonValue
   *
   * @return comparisonValue
   */
  @ApiModelProperty(value = "")
  public Long getComparisonValue() {
    return comparisonValue;
  }

  public void setComparisonValue(Long comparisonValue) {
    this.comparisonValue = comparisonValue;
  }

  public AggregationMatcher comparisonMinValue(Long comparisonMinValue) {
    this.comparisonMinValue = comparisonMinValue;
    return this;
  }

  /**
   * Get comparisonMinValue
   *
   * @return comparisonMinValue
   */
  @ApiModelProperty(value = "")
  public Long getComparisonMinValue() {
    return comparisonMinValue;
  }

  public void setComparisonMinValue(Long comparisonMinValue) {
    this.comparisonMinValue = comparisonMinValue;
  }

  public AggregationMatcher comparisonMaxValue(Long comparisonMaxValue) {
    this.comparisonMaxValue = comparisonMaxValue;
    return this;
  }

  /**
   * Get comparisonMaxValue
   *
   * @return comparisonMaxValue
   */
  @ApiModelProperty(value = "")
  public Long getComparisonMaxValue() {
    return comparisonMaxValue;
  }

  public void setComparisonMaxValue(Long comparisonMaxValue) {
    this.comparisonMaxValue = comparisonMaxValue;
  }

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AggregationMatcher aggregationMatcher = (AggregationMatcher) o;
    return Objects.equals(this.aggregationType, aggregationMatcher.aggregationType)
        && Objects.equals(this.countType, aggregationMatcher.countType)
        && Objects.equals(this.paramName, aggregationMatcher.paramName)
        && Objects.equals(this.comparator, aggregationMatcher.comparator)
        && Objects.equals(this.comparisonValue, aggregationMatcher.comparisonValue)
        && Objects.equals(this.comparisonMinValue, aggregationMatcher.comparisonMinValue)
        && Objects.equals(this.comparisonMaxValue, aggregationMatcher.comparisonMaxValue);
  }

  @Override
  public int hashCode() {
    return Objects.hash(
        aggregationType,
        countType,
        paramName,
        comparator,
        comparisonValue,
        comparisonMinValue,
        comparisonMaxValue);
  }

  @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