com.genesys.internal.statistics.model.StatisticsData Maven / Gradle / Ivy
/*
* Statistics Service API
* Statistics API
*
* OpenAPI spec version: 9.0.000.00.333
*
*
* 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 com.genesys.internal.statistics.model.ApiResponseStatus;
import com.genesys.internal.statistics.model.ModelApiResponse;
import com.genesys.internal.statistics.model.StatisticsData;
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;
/**
* StatisticsData
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-10-19T09:04:31.815Z")
public class StatisticsData {
@SerializedName("data")
private StatisticsData data = null;
@SerializedName("errors")
private ModelApiResponse errors = null;
@SerializedName("path")
private String path = null;
@SerializedName("status")
private ApiResponseStatus status = null;
public StatisticsData data(StatisticsData data) {
this.data = data;
return this;
}
/**
* Get data
* @return data
**/
@ApiModelProperty(value = "")
public StatisticsData getData() {
return data;
}
public void setData(StatisticsData data) {
this.data = data;
}
public StatisticsData errors(ModelApiResponse errors) {
this.errors = errors;
return this;
}
/**
* Get errors
* @return errors
**/
@ApiModelProperty(value = "")
public ModelApiResponse getErrors() {
return errors;
}
public void setErrors(ModelApiResponse errors) {
this.errors = errors;
}
public StatisticsData 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 StatisticsData status(ApiResponseStatus status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@ApiModelProperty(required = true, value = "")
public ApiResponseStatus getStatus() {
return status;
}
public void setStatus(ApiResponseStatus 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;
}
StatisticsData statisticsData = (StatisticsData) o;
return Objects.equals(this.data, statisticsData.data) &&
Objects.equals(this.errors, statisticsData.errors) &&
Objects.equals(this.path, statisticsData.path) &&
Objects.equals(this.status, statisticsData.status);
}
@Override
public int hashCode() {
return Objects.hash(data, errors, path, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class StatisticsData {\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 ");
}
}