com.ziqni.admin.sdk.model.GoalMetricsResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ziqni-admin-sdk Show documentation
Show all versions of ziqni-admin-sdk Show documentation
ZIQNI Admin SDK Java Client
/*
* ZIQNI Admin API
* Ziqni Application Services are used to manage and configure spaces. Change log: 2024-02-27 Added rewards reduced to the LeaderboardEntry response
*
* The version of the OpenAPI document: 3.0.17
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.ziqni.admin.sdk.model;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.ziqni.admin.sdk.model.Error;
import com.ziqni.admin.sdk.model.GoalMetrics;
import com.ziqni.admin.sdk.model.MetaExtended;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* GoalMetricsResponse
*/
@JsonPropertyOrder({
GoalMetricsResponse.JSON_PROPERTY_META,
GoalMetricsResponse.JSON_PROPERTY_RESULTS,
GoalMetricsResponse.JSON_PROPERTY_ERRORS
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class GoalMetricsResponse {
public static final String JSON_PROPERTY_META = "meta";
private MetaExtended meta;
public static final String JSON_PROPERTY_RESULTS = "results";
private List results = null;
public static final String JSON_PROPERTY_ERRORS = "errors";
private List errors = null;
public GoalMetricsResponse meta(MetaExtended meta) {
this.meta = meta;
return this;
}
/**
* Get meta
* @return meta
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_META)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public MetaExtended getMeta() {
return meta;
}
@JsonProperty(JSON_PROPERTY_META)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setMeta(MetaExtended meta) {
this.meta = meta;
}
public GoalMetricsResponse results(List results) {
this.results = results;
return this;
}
public GoalMetricsResponse addResultsItem(GoalMetrics resultsItem) {
if (this.results == null) {
this.results = new ArrayList<>();
}
this.results.add(resultsItem);
return this;
}
/**
* Get results
* @return results
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_RESULTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getResults() {
return results;
}
@JsonProperty(JSON_PROPERTY_RESULTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setResults(List results) {
this.results = results;
}
public GoalMetricsResponse errors(List errors) {
this.errors = errors;
return this;
}
public GoalMetricsResponse addErrorsItem(Error errorsItem) {
if (this.errors == null) {
this.errors = new ArrayList<>();
}
this.errors.add(errorsItem);
return this;
}
/**
* Get errors
* @return errors
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ERRORS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getErrors() {
return errors;
}
@JsonProperty(JSON_PROPERTY_ERRORS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setErrors(List errors) {
this.errors = errors;
}
/**
* Return true if this GoalMetricsResponse object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GoalMetricsResponse goalMetricsResponse = (GoalMetricsResponse) o;
return Objects.equals(this.meta, goalMetricsResponse.meta) &&
Objects.equals(this.results, goalMetricsResponse.results) &&
Objects.equals(this.errors, goalMetricsResponse.errors);
}
@Override
public int hashCode() {
return Objects.hash(meta, results, errors);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GoalMetricsResponse {\n");
sb.append(" meta: ").append(toIndentedString(meta)).append("\n");
sb.append(" results: ").append(toIndentedString(results)).append("\n");
sb.append(" errors: ").append(toIndentedString(errors)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy