
com.tencent.ads.model.ReportAdUnionRequest 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.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/** ReportAdUnionRequest */
public class ReportAdUnionRequest {
@SerializedName("filtering")
private List filtering = null;
@SerializedName("date_range")
private DateRange dateRange = null;
@SerializedName("group_by")
private List groupBy = null;
@SerializedName("order_by")
private List orderBy = null;
@SerializedName("page")
private Long page = null;
@SerializedName("page_size")
private Long pageSize = null;
@SerializedName("fields")
private List fields = null;
@SerializedName("async")
private Long async = null;
@SerializedName("account_id")
private Long accountId = null;
public ReportAdUnionRequest filtering(List filtering) {
this.filtering = filtering;
return this;
}
public ReportAdUnionRequest addFilteringItem(FilteringStruct filteringItem) {
if (this.filtering == null) {
this.filtering = new ArrayList();
}
this.filtering.add(filteringItem);
return this;
}
/**
* Get filtering
*
* @return filtering
*/
@ApiModelProperty(value = "")
public List getFiltering() {
return filtering;
}
public void setFiltering(List filtering) {
this.filtering = filtering;
}
public ReportAdUnionRequest dateRange(DateRange dateRange) {
this.dateRange = dateRange;
return this;
}
/**
* Get dateRange
*
* @return dateRange
*/
@ApiModelProperty(value = "")
public DateRange getDateRange() {
return dateRange;
}
public void setDateRange(DateRange dateRange) {
this.dateRange = dateRange;
}
public ReportAdUnionRequest groupBy(List groupBy) {
this.groupBy = groupBy;
return this;
}
public ReportAdUnionRequest addGroupByItem(String groupByItem) {
if (this.groupBy == null) {
this.groupBy = new ArrayList();
}
this.groupBy.add(groupByItem);
return this;
}
/**
* Get groupBy
*
* @return groupBy
*/
@ApiModelProperty(value = "")
public List getGroupBy() {
return groupBy;
}
public void setGroupBy(List groupBy) {
this.groupBy = groupBy;
}
public ReportAdUnionRequest orderBy(List orderBy) {
this.orderBy = orderBy;
return this;
}
public ReportAdUnionRequest addOrderByItem(OrderByStruct orderByItem) {
if (this.orderBy == null) {
this.orderBy = new ArrayList();
}
this.orderBy.add(orderByItem);
return this;
}
/**
* Get orderBy
*
* @return orderBy
*/
@ApiModelProperty(value = "")
public List getOrderBy() {
return orderBy;
}
public void setOrderBy(List orderBy) {
this.orderBy = orderBy;
}
public ReportAdUnionRequest page(Long page) {
this.page = page;
return this;
}
/**
* Get page
*
* @return page
*/
@ApiModelProperty(value = "")
public Long getPage() {
return page;
}
public void setPage(Long page) {
this.page = page;
}
public ReportAdUnionRequest pageSize(Long pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* Get pageSize
*
* @return pageSize
*/
@ApiModelProperty(value = "")
public Long getPageSize() {
return pageSize;
}
public void setPageSize(Long pageSize) {
this.pageSize = pageSize;
}
public ReportAdUnionRequest fields(List fields) {
this.fields = fields;
return this;
}
public ReportAdUnionRequest addFieldsItem(String fieldsItem) {
if (this.fields == null) {
this.fields = new ArrayList();
}
this.fields.add(fieldsItem);
return this;
}
/**
* Get fields
*
* @return fields
*/
@ApiModelProperty(value = "")
public List getFields() {
return fields;
}
public void setFields(List fields) {
this.fields = fields;
}
public ReportAdUnionRequest async(Long async) {
this.async = async;
return this;
}
/**
* Get async
*
* @return async
*/
@ApiModelProperty(value = "")
public Long getAsync() {
return async;
}
public void setAsync(Long async) {
this.async = async;
}
public ReportAdUnionRequest accountId(Long accountId) {
this.accountId = accountId;
return this;
}
/**
* Get accountId
*
* @return accountId
*/
@ApiModelProperty(value = "")
public Long getAccountId() {
return accountId;
}
public void setAccountId(Long accountId) {
this.accountId = accountId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ReportAdUnionRequest reportAdUnionRequest = (ReportAdUnionRequest) o;
return Objects.equals(this.filtering, reportAdUnionRequest.filtering)
&& Objects.equals(this.dateRange, reportAdUnionRequest.dateRange)
&& Objects.equals(this.groupBy, reportAdUnionRequest.groupBy)
&& Objects.equals(this.orderBy, reportAdUnionRequest.orderBy)
&& Objects.equals(this.page, reportAdUnionRequest.page)
&& Objects.equals(this.pageSize, reportAdUnionRequest.pageSize)
&& Objects.equals(this.fields, reportAdUnionRequest.fields)
&& Objects.equals(this.async, reportAdUnionRequest.async)
&& Objects.equals(this.accountId, reportAdUnionRequest.accountId);
}
@Override
public int hashCode() {
return Objects.hash(
filtering, dateRange, groupBy, orderBy, page, pageSize, fields, async, accountId);
}
@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