com.bitmovin.api.sdk.model.AnalyticsPercentileQueryRequest 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.AnalyticsQueryRequest;
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;
/**
* AnalyticsPercentileQueryRequest
*/
public class AnalyticsPercentileQueryRequest extends AnalyticsQueryRequest {
@JsonProperty("percentile")
private Long percentile;
/**
* The percentage (0-99) used for percentile queries. (required)
* @return percentile
*/
public Long getPercentile() {
return percentile;
}
/**
* The percentage (0-99) used for percentile queries. (required)
*
* @param percentile
* The percentage (0-99) used for percentile queries. (required)
*/
public void setPercentile(Long percentile) {
this.percentile = percentile;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AnalyticsPercentileQueryRequest analyticsPercentileQueryRequest = (AnalyticsPercentileQueryRequest) o;
return Objects.equals(this.percentile, analyticsPercentileQueryRequest.percentile) &&
super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(percentile, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AnalyticsPercentileQueryRequest {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" percentile: ").append(toIndentedString(percentile)).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 ");
}
}