com.ziqni.admin.sdk.model.Modules 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.DataSetsReference;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Various modules returned for rendering dashboard.
*/
@ApiModel(description = "Various modules returned for rendering dashboard.")
@JsonPropertyOrder({
Modules.JSON_PROPERTY_KEY,
Modules.JSON_PROPERTY_LABEL,
Modules.JSON_PROPERTY_MODULE_TYPE,
Modules.JSON_PROPERTY_ORDER,
Modules.JSON_PROPERTY_DATA_SETS
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Modules {
public static final String JSON_PROPERTY_KEY = "key";
private String key;
public static final String JSON_PROPERTY_LABEL = "label";
private String label;
public static final String JSON_PROPERTY_MODULE_TYPE = "moduleType";
private String moduleType;
public static final String JSON_PROPERTY_ORDER = "order";
private String order;
public static final String JSON_PROPERTY_DATA_SETS = "dataSets";
private List dataSets = new ArrayList<>();
public Modules key(String key) {
this.key = key;
return this;
}
/**
* Key of the chart.
* @return key
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "Key of the chart.")
@JsonProperty(JSON_PROPERTY_KEY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getKey() {
return key;
}
@JsonProperty(JSON_PROPERTY_KEY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setKey(String key) {
this.key = key;
}
public Modules label(String label) {
this.label = label;
return this;
}
/**
* Label for the chart.
* @return label
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "Label for the chart.")
@JsonProperty(JSON_PROPERTY_LABEL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getLabel() {
return label;
}
@JsonProperty(JSON_PROPERTY_LABEL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setLabel(String label) {
this.label = label;
}
public Modules moduleType(String moduleType) {
this.moduleType = moduleType;
return this;
}
/**
* Type of chart to insert te data into.
* @return moduleType
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "Type of chart to insert te data into.")
@JsonProperty(JSON_PROPERTY_MODULE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getModuleType() {
return moduleType;
}
@JsonProperty(JSON_PROPERTY_MODULE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setModuleType(String moduleType) {
this.moduleType = moduleType;
}
public Modules order(String order) {
this.order = order;
return this;
}
/**
* Order at which the chart appears on the web page.
* @return order
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "Order at which the chart appears on the web page.")
@JsonProperty(JSON_PROPERTY_ORDER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getOrder() {
return order;
}
@JsonProperty(JSON_PROPERTY_ORDER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setOrder(String order) {
this.order = order;
}
public Modules dataSets(List dataSets) {
this.dataSets = dataSets;
return this;
}
public Modules addDataSetsItem(DataSetsReference dataSetsItem) {
this.dataSets.add(dataSetsItem);
return this;
}
/**
* Array of DataSets map reference keys. If style information is required for a specific chart type then it will be returned.
* @return dataSets
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "Array of DataSets map reference keys. If style information is required for a specific chart type then it will be returned.")
@JsonProperty(JSON_PROPERTY_DATA_SETS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getDataSets() {
return dataSets;
}
@JsonProperty(JSON_PROPERTY_DATA_SETS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDataSets(List dataSets) {
this.dataSets = dataSets;
}
/**
* Return true if this Modules object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Modules modules = (Modules) o;
return Objects.equals(this.key, modules.key) &&
Objects.equals(this.label, modules.label) &&
Objects.equals(this.moduleType, modules.moduleType) &&
Objects.equals(this.order, modules.order) &&
Objects.equals(this.dataSets, modules.dataSets);
}
@Override
public int hashCode() {
return Objects.hash(key, label, moduleType, order, dataSets);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Modules {\n");
sb.append(" key: ").append(toIndentedString(key)).append("\n");
sb.append(" label: ").append(toIndentedString(label)).append("\n");
sb.append(" moduleType: ").append(toIndentedString(moduleType)).append("\n");
sb.append(" order: ").append(toIndentedString(order)).append("\n");
sb.append(" dataSets: ").append(toIndentedString(dataSets)).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