com.genesys.internal.statistics.model.PeekedStatisticResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of statistics Show documentation
Show all versions of statistics Show documentation
A Java library to interface to Genesys Statistics public API
The newest version!
/*
* Statistics Service
* Statistics Service
*
* OpenAPI spec version: 9.0.000.37.638
*
*
* 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.genesys.internal.statistics.model;
import java.util.Objects;
import java.util.Arrays;
import com.genesys.internal.statistics.model.ErrorResponse;
import com.genesys.internal.statistics.model.PeekedStatistic;
import com.genesys.internal.statistics.model.ResponseStatus;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* PeekedStatisticResponse
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-01-27T00:27:33.132Z")
public class PeekedStatisticResponse {
@SerializedName("data")
private PeekedStatistic data = null;
@SerializedName("errors")
private List errors = null;
@SerializedName("path")
private String path = null;
@SerializedName("status")
private ResponseStatus status = null;
public PeekedStatisticResponse data(PeekedStatistic data) {
this.data = data;
return this;
}
/**
* Get data
* @return data
**/
@ApiModelProperty(value = "")
public PeekedStatistic getData() {
return data;
}
public void setData(PeekedStatistic data) {
this.data = data;
}
public PeekedStatisticResponse errors(List errors) {
this.errors = errors;
return this;
}
public PeekedStatisticResponse addErrorsItem(ErrorResponse errorsItem) {
if (this.errors == null) {
this.errors = new ArrayList();
}
this.errors.add(errorsItem);
return this;
}
/**
* Get errors
* @return errors
**/
@ApiModelProperty(value = "")
public List getErrors() {
return errors;
}
public void setErrors(List errors) {
this.errors = errors;
}
public PeekedStatisticResponse path(String path) {
this.path = path;
return this;
}
/**
* Get path
* @return path
**/
@ApiModelProperty(value = "")
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public PeekedStatisticResponse status(ResponseStatus status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@ApiModelProperty(required = true, value = "")
public ResponseStatus getStatus() {
return status;
}
public void setStatus(ResponseStatus status) {
this.status = status;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PeekedStatisticResponse peekedStatisticResponse = (PeekedStatisticResponse) o;
return Objects.equals(this.data, peekedStatisticResponse.data) &&
Objects.equals(this.errors, peekedStatisticResponse.errors) &&
Objects.equals(this.path, peekedStatisticResponse.path) &&
Objects.equals(this.status, peekedStatisticResponse.status);
}
@Override
public int hashCode() {
return Objects.hash(data, errors, path, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PeekedStatisticResponse {\n");
sb.append(" data: ").append(toIndentedString(data)).append("\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" path: ").append(toIndentedString(path)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).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 ");
}
}