
com.tencent.ads.model.ActionAggregationRule 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 ActionAggregationRule {
@SerializedName("action_type")
private ActionType actionType = null;
@SerializedName("custom_action")
private String customAction = null;
@SerializedName("aggregation_group")
private List aggregationGroup = null;
@SerializedName("filter_group")
private List filterGroup = null;
public ActionAggregationRule actionType(ActionType actionType) {
this.actionType = actionType;
return this;
}
/**
* Get actionType
*
* @return actionType
*/
@ApiModelProperty(value = "")
public ActionType getActionType() {
return actionType;
}
public void setActionType(ActionType actionType) {
this.actionType = actionType;
}
public ActionAggregationRule customAction(String customAction) {
this.customAction = customAction;
return this;
}
/**
* Get customAction
*
* @return customAction
*/
@ApiModelProperty(value = "")
public String getCustomAction() {
return customAction;
}
public void setCustomAction(String customAction) {
this.customAction = customAction;
}
public ActionAggregationRule aggregationGroup(List aggregationGroup) {
this.aggregationGroup = aggregationGroup;
return this;
}
public ActionAggregationRule addAggregationGroupItem(
AggregationMatcherGroup aggregationGroupItem) {
if (this.aggregationGroup == null) {
this.aggregationGroup = new ArrayList();
}
this.aggregationGroup.add(aggregationGroupItem);
return this;
}
/**
* Get aggregationGroup
*
* @return aggregationGroup
*/
@ApiModelProperty(value = "")
public List getAggregationGroup() {
return aggregationGroup;
}
public void setAggregationGroup(List aggregationGroup) {
this.aggregationGroup = aggregationGroup;
}
public ActionAggregationRule filterGroup(List filterGroup) {
this.filterGroup = filterGroup;
return this;
}
public ActionAggregationRule addFilterGroupItem(MiniParamMatcherGroup filterGroupItem) {
if (this.filterGroup == null) {
this.filterGroup = new ArrayList();
}
this.filterGroup.add(filterGroupItem);
return this;
}
/**
* Get filterGroup
*
* @return filterGroup
*/
@ApiModelProperty(value = "")
public List getFilterGroup() {
return filterGroup;
}
public void setFilterGroup(List filterGroup) {
this.filterGroup = filterGroup;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ActionAggregationRule actionAggregationRule = (ActionAggregationRule) o;
return Objects.equals(this.actionType, actionAggregationRule.actionType)
&& Objects.equals(this.customAction, actionAggregationRule.customAction)
&& Objects.equals(this.aggregationGroup, actionAggregationRule.aggregationGroup)
&& Objects.equals(this.filterGroup, actionAggregationRule.filterGroup);
}
@Override
public int hashCode() {
return Objects.hash(actionType, customAction, aggregationGroup, filterGroup);
}
@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