All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.bitmovin.api.sdk.model.AnalyticsQueryRequest Maven / Gradle / Ivy
package com.bitmovin.api.sdk.model;
import java.util.Objects;
import java.util.Arrays;
import com.bitmovin.api.sdk.model.AnalyticsAbstractFilter;
import com.bitmovin.api.sdk.model.AnalyticsAttribute;
import com.bitmovin.api.sdk.model.AnalyticsInterval;
import com.bitmovin.api.sdk.model.AnalyticsOrderByEntry;
import com.bitmovin.api.sdk.model.AnalyticsQueryTimeframe;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
/**
* AnalyticsQueryRequest
*/
public class AnalyticsQueryRequest extends AnalyticsQueryTimeframe {
@JsonProperty("licenseKey")
private String licenseKey;
@JsonProperty("filters")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List filters = new ArrayList();
@JsonProperty("orderBy")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List orderBy = new ArrayList();
@JsonProperty("dimension")
private AnalyticsAttribute dimension;
@JsonProperty("interval")
private AnalyticsInterval interval;
@JsonProperty("groupBy")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List groupBy = new ArrayList();
@JsonProperty("includeContext")
private Boolean includeContext;
@JsonProperty("limit")
private Long limit;
@JsonProperty("offset")
private Long offset;
/**
* Analytics license key (required)
* @return licenseKey
*/
public String getLicenseKey() {
return licenseKey;
}
/**
* Analytics license key (required)
*
* @param licenseKey
* Analytics license key (required)
*/
public void setLicenseKey(String licenseKey) {
this.licenseKey = licenseKey;
}
public AnalyticsQueryRequest addFiltersItem(AnalyticsAbstractFilter filtersItem) {
this.filters.add(filtersItem);
return this;
}
/**
* Analytics Query Filters Each filter requires 3 properties: name, operator and value. Valid operators are [IN, EQ, NE, LT, LTE, GT, GTE, CONTAINS, NOTCONTAINS]
* @return filters
*/
public List getFilters() {
return filters;
}
/**
* Analytics Query Filters Each filter requires 3 properties: name, operator and value. Valid operators are [IN, EQ, NE, LT, LTE, GT, GTE, CONTAINS, NOTCONTAINS]
*
* @param filters
* Analytics Query Filters Each filter requires 3 properties: name, operator and value. Valid operators are [IN, EQ, NE, LT, LTE, GT, GTE, CONTAINS, NOTCONTAINS]
*/
public void setFilters(List filters) {
this.filters = filters;
}
public AnalyticsQueryRequest addOrderByItem(AnalyticsOrderByEntry orderByItem) {
this.orderBy.add(orderByItem);
return this;
}
/**
* Get orderBy
* @return orderBy
*/
public List getOrderBy() {
return orderBy;
}
/**
* Set orderBy
*
* @param orderBy
*/
public void setOrderBy(List orderBy) {
this.orderBy = orderBy;
}
/**
* Get dimension
* @return dimension
*/
public AnalyticsAttribute getDimension() {
return dimension;
}
/**
* Set dimension
*
* @param dimension
*/
public void setDimension(AnalyticsAttribute dimension) {
this.dimension = dimension;
}
/**
* Get interval
* @return interval
*/
public AnalyticsInterval getInterval() {
return interval;
}
/**
* Set interval
*
* @param interval
*/
public void setInterval(AnalyticsInterval interval) {
this.interval = interval;
}
public AnalyticsQueryRequest addGroupByItem(AnalyticsAttribute groupByItem) {
this.groupBy.add(groupByItem);
return this;
}
/**
* Get groupBy
* @return groupBy
*/
public List getGroupBy() {
return groupBy;
}
/**
* Set groupBy
*
* @param groupBy
*/
public void setGroupBy(List groupBy) {
this.groupBy = groupBy;
}
/**
* Whether context data should be included in the response
* @return includeContext
*/
public Boolean getIncludeContext() {
return includeContext;
}
/**
* Whether context data should be included in the response
*
* @param includeContext
* Whether context data should be included in the response
*/
public void setIncludeContext(Boolean includeContext) {
this.includeContext = includeContext;
}
/**
* Maximum number of rows returned (max. 200)
* @return limit
*/
public Long getLimit() {
return limit;
}
/**
* Maximum number of rows returned (max. 200)
*
* @param limit
* Maximum number of rows returned (max. 200)
*/
public void setLimit(Long limit) {
this.limit = limit;
}
/**
* Offset of data
* @return offset
*/
public Long getOffset() {
return offset;
}
/**
* Offset of data
*
* @param offset
* Offset of data
*/
public void setOffset(Long offset) {
this.offset = offset;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AnalyticsQueryRequest analyticsQueryRequest = (AnalyticsQueryRequest) o;
return Objects.equals(this.licenseKey, analyticsQueryRequest.licenseKey) &&
Objects.equals(this.filters, analyticsQueryRequest.filters) &&
Objects.equals(this.orderBy, analyticsQueryRequest.orderBy) &&
Objects.equals(this.dimension, analyticsQueryRequest.dimension) &&
Objects.equals(this.interval, analyticsQueryRequest.interval) &&
Objects.equals(this.groupBy, analyticsQueryRequest.groupBy) &&
Objects.equals(this.includeContext, analyticsQueryRequest.includeContext) &&
Objects.equals(this.limit, analyticsQueryRequest.limit) &&
Objects.equals(this.offset, analyticsQueryRequest.offset) &&
super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(licenseKey, filters, orderBy, dimension, interval, groupBy, includeContext, limit, offset, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AnalyticsQueryRequest {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" licenseKey: ").append(toIndentedString(licenseKey)).append("\n");
sb.append(" filters: ").append(toIndentedString(filters)).append("\n");
sb.append(" orderBy: ").append(toIndentedString(orderBy)).append("\n");
sb.append(" dimension: ").append(toIndentedString(dimension)).append("\n");
sb.append(" interval: ").append(toIndentedString(interval)).append("\n");
sb.append(" groupBy: ").append(toIndentedString(groupBy)).append("\n");
sb.append(" includeContext: ").append(toIndentedString(includeContext)).append("\n");
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
sb.append(" offset: ").append(toIndentedString(offset)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* 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 ");
}
}