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

com.mypurecloud.sdk.model.StatisticalResponse Maven / Gradle / Ivy

The newest version!
package com.mypurecloud.sdk.model;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.mypurecloud.sdk.model.AggregateMetricData;
import com.mypurecloud.sdk.model.AggregateViewData;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;

import java.io.Serializable;
/**
 * StatisticalResponse
 */

public class StatisticalResponse  implements Serializable {
  
  private String interval = null;
  private List metrics = new ArrayList();
  private List views = new ArrayList();

  
  /**
   **/
  public StatisticalResponse interval(String interval) {
    this.interval = interval;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("interval")
  public String getInterval() {
    return interval;
  }
  public void setInterval(String interval) {
    this.interval = interval;
  }


  /**
   **/
  public StatisticalResponse metrics(List metrics) {
    this.metrics = metrics;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("metrics")
  public List getMetrics() {
    return metrics;
  }
  public void setMetrics(List metrics) {
    this.metrics = metrics;
  }


  /**
   **/
  public StatisticalResponse views(List views) {
    this.views = views;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("views")
  public List getViews() {
    return views;
  }
  public void setViews(List views) {
    this.views = views;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    StatisticalResponse statisticalResponse = (StatisticalResponse) o;
    return Objects.equals(this.interval, statisticalResponse.interval) &&
        Objects.equals(this.metrics, statisticalResponse.metrics) &&
        Objects.equals(this.views, statisticalResponse.views);
  }

  @Override
  public int hashCode() {
    return Objects.hash(interval, metrics, views);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class StatisticalResponse {\n");
    
    sb.append("    interval: ").append(toIndentedString(interval)).append("\n");
    sb.append("    metrics: ").append(toIndentedString(metrics)).append("\n");
    sb.append("    views: ").append(toIndentedString(views)).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    ");
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy