com.ziqni.admin.sdk.model.ComputeEngineAllOf 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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* ComputeEngineAllOf
*/
@JsonPropertyOrder({
ComputeEngineAllOf.JSON_PROPERTY_DESCRIPTION,
ComputeEngineAllOf.JSON_PROPERTY_VERSION,
ComputeEngineAllOf.JSON_PROPERTY_NAME,
ComputeEngineAllOf.JSON_PROPERTY_UPTIME,
ComputeEngineAllOf.JSON_PROPERTY_CONSTRAINTS,
ComputeEngineAllOf.JSON_PROPERTY_STATISTICS,
ComputeEngineAllOf.JSON_PROPERTY_LAST_KNOWN_STATUS_CODE
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ComputeEngineAllOf {
public static final String JSON_PROPERTY_DESCRIPTION = "description";
private String description;
public static final String JSON_PROPERTY_VERSION = "version";
private Long version;
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_UPTIME = "uptime";
private Long uptime;
public static final String JSON_PROPERTY_CONSTRAINTS = "constraints";
private List constraints = null;
public static final String JSON_PROPERTY_STATISTICS = "statistics";
private Map statistics = null;
public static final String JSON_PROPERTY_LAST_KNOWN_STATUS_CODE = "lastKnownStatusCode";
private Integer lastKnownStatusCode;
public ComputeEngineAllOf description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getDescription() {
return description;
}
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDescription(String description) {
this.description = description;
}
public ComputeEngineAllOf version(Long version) {
this.version = version;
return this;
}
/**
* Get version
* @return version
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_VERSION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getVersion() {
return version;
}
@JsonProperty(JSON_PROPERTY_VERSION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setVersion(Long version) {
this.version = version;
}
public ComputeEngineAllOf name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getName() {
return name;
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setName(String name) {
this.name = name;
}
public ComputeEngineAllOf uptime(Long uptime) {
this.uptime = uptime;
return this;
}
/**
* Long
* @return uptime
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Long")
@JsonProperty(JSON_PROPERTY_UPTIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getUptime() {
return uptime;
}
@JsonProperty(JSON_PROPERTY_UPTIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setUptime(Long uptime) {
this.uptime = uptime;
}
public ComputeEngineAllOf constraints(List constraints) {
this.constraints = constraints;
return this;
}
public ComputeEngineAllOf addConstraintsItem(String constraintsItem) {
if (this.constraints == null) {
this.constraints = new ArrayList<>();
}
this.constraints.add(constraintsItem);
return this;
}
/**
* Get constraints
* @return constraints
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CONSTRAINTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getConstraints() {
return constraints;
}
@JsonProperty(JSON_PROPERTY_CONSTRAINTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setConstraints(List constraints) {
this.constraints = constraints;
}
public ComputeEngineAllOf statistics(Map statistics) {
this.statistics = statistics;
return this;
}
public ComputeEngineAllOf putStatisticsItem(String key, String statisticsItem) {
if (this.statistics == null) {
this.statistics = new HashMap<>();
}
this.statistics.put(key, statisticsItem);
return this;
}
/**
* Get statistics
* @return statistics
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_STATISTICS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map getStatistics() {
return statistics;
}
@JsonProperty(JSON_PROPERTY_STATISTICS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStatistics(Map statistics) {
this.statistics = statistics;
}
public ComputeEngineAllOf lastKnownStatusCode(Integer lastKnownStatusCode) {
this.lastKnownStatusCode = lastKnownStatusCode;
return this;
}
/**
* Get lastKnownStatusCode
* @return lastKnownStatusCode
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_LAST_KNOWN_STATUS_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getLastKnownStatusCode() {
return lastKnownStatusCode;
}
@JsonProperty(JSON_PROPERTY_LAST_KNOWN_STATUS_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLastKnownStatusCode(Integer lastKnownStatusCode) {
this.lastKnownStatusCode = lastKnownStatusCode;
}
/**
* Return true if this ComputeEngine_allOf object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ComputeEngineAllOf computeEngineAllOf = (ComputeEngineAllOf) o;
return Objects.equals(this.description, computeEngineAllOf.description) &&
Objects.equals(this.version, computeEngineAllOf.version) &&
Objects.equals(this.name, computeEngineAllOf.name) &&
Objects.equals(this.uptime, computeEngineAllOf.uptime) &&
Objects.equals(this.constraints, computeEngineAllOf.constraints) &&
Objects.equals(this.statistics, computeEngineAllOf.statistics) &&
Objects.equals(this.lastKnownStatusCode, computeEngineAllOf.lastKnownStatusCode);
}
@Override
public int hashCode() {
return Objects.hash(description, version, name, uptime, constraints, statistics, lastKnownStatusCode);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ComputeEngineAllOf {\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" uptime: ").append(toIndentedString(uptime)).append("\n");
sb.append(" constraints: ").append(toIndentedString(constraints)).append("\n");
sb.append(" statistics: ").append(toIndentedString(statistics)).append("\n");
sb.append(" lastKnownStatusCode: ").append(toIndentedString(lastKnownStatusCode)).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