com.ziqni.admin.sdk.model.UpdateComputeEngineRequestAllOf 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.
*
* The version of the OpenAPI document: 3.0.11
* 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;
/**
* UpdateComputeEngineRequestAllOf
*/
@JsonPropertyOrder({
UpdateComputeEngineRequestAllOf.JSON_PROPERTY_DESCRIPTION,
UpdateComputeEngineRequestAllOf.JSON_PROPERTY_VERSION,
UpdateComputeEngineRequestAllOf.JSON_PROPERTY_NAME,
UpdateComputeEngineRequestAllOf.JSON_PROPERTY_UPTIME,
UpdateComputeEngineRequestAllOf.JSON_PROPERTY_STATISTICS,
UpdateComputeEngineRequestAllOf.JSON_PROPERTY_LAST_KNOWN_STATUS_CODE,
UpdateComputeEngineRequestAllOf.JSON_PROPERTY_METADATA,
UpdateComputeEngineRequestAllOf.JSON_PROPERTY_ADD_CONSTRAINTS,
UpdateComputeEngineRequestAllOf.JSON_PROPERTY_REMOVE_CONSTRAINTS
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class UpdateComputeEngineRequestAllOf {
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_STATISTICS = "statistics";
private Map statistics = null;
public static final String JSON_PROPERTY_LAST_KNOWN_STATUS_CODE = "lastKnownStatusCode";
private Integer lastKnownStatusCode;
public static final String JSON_PROPERTY_METADATA = "metadata";
private Map metadata = null;
public static final String JSON_PROPERTY_ADD_CONSTRAINTS = "addConstraints";
private List addConstraints = null;
public static final String JSON_PROPERTY_REMOVE_CONSTRAINTS = "removeConstraints";
private List removeConstraints = null;
public UpdateComputeEngineRequestAllOf description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDescription() {
return description;
}
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDescription(String description) {
this.description = description;
}
public UpdateComputeEngineRequestAllOf 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 UpdateComputeEngineRequestAllOf name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() {
return name;
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
this.name = name;
}
public UpdateComputeEngineRequestAllOf 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 UpdateComputeEngineRequestAllOf statistics(Map statistics) {
this.statistics = statistics;
return this;
}
public UpdateComputeEngineRequestAllOf 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 UpdateComputeEngineRequestAllOf 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;
}
public UpdateComputeEngineRequestAllOf metadata(Map metadata) {
this.metadata = metadata;
return this;
}
public UpdateComputeEngineRequestAllOf putMetadataItem(String key, String metadataItem) {
if (this.metadata == null) {
this.metadata = new HashMap<>();
}
this.metadata.put(key, metadataItem);
return this;
}
/**
* Get metadata
* @return metadata
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_METADATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map getMetadata() {
return metadata;
}
@JsonProperty(JSON_PROPERTY_METADATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMetadata(Map metadata) {
this.metadata = metadata;
}
public UpdateComputeEngineRequestAllOf addConstraints(List addConstraints) {
this.addConstraints = addConstraints;
return this;
}
public UpdateComputeEngineRequestAllOf addAddConstraintsItem(String addConstraintsItem) {
if (this.addConstraints == null) {
this.addConstraints = new ArrayList<>();
}
this.addConstraints.add(addConstraintsItem);
return this;
}
/**
* Additional constraints
* @return addConstraints
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "- active - default", value = "Additional constraints")
@JsonProperty(JSON_PROPERTY_ADD_CONSTRAINTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getAddConstraints() {
return addConstraints;
}
@JsonProperty(JSON_PROPERTY_ADD_CONSTRAINTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAddConstraints(List addConstraints) {
this.addConstraints = addConstraints;
}
public UpdateComputeEngineRequestAllOf removeConstraints(List removeConstraints) {
this.removeConstraints = removeConstraints;
return this;
}
public UpdateComputeEngineRequestAllOf addRemoveConstraintsItem(String removeConstraintsItem) {
if (this.removeConstraints == null) {
this.removeConstraints = new ArrayList<>();
}
this.removeConstraints.add(removeConstraintsItem);
return this;
}
/**
* Additional constraints
* @return removeConstraints
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "- active - default", value = "Additional constraints")
@JsonProperty(JSON_PROPERTY_REMOVE_CONSTRAINTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getRemoveConstraints() {
return removeConstraints;
}
@JsonProperty(JSON_PROPERTY_REMOVE_CONSTRAINTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRemoveConstraints(List removeConstraints) {
this.removeConstraints = removeConstraints;
}
/**
* Return true if this UpdateComputeEngineRequest_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;
}
UpdateComputeEngineRequestAllOf updateComputeEngineRequestAllOf = (UpdateComputeEngineRequestAllOf) o;
return Objects.equals(this.description, updateComputeEngineRequestAllOf.description) &&
Objects.equals(this.version, updateComputeEngineRequestAllOf.version) &&
Objects.equals(this.name, updateComputeEngineRequestAllOf.name) &&
Objects.equals(this.uptime, updateComputeEngineRequestAllOf.uptime) &&
Objects.equals(this.statistics, updateComputeEngineRequestAllOf.statistics) &&
Objects.equals(this.lastKnownStatusCode, updateComputeEngineRequestAllOf.lastKnownStatusCode) &&
Objects.equals(this.metadata, updateComputeEngineRequestAllOf.metadata) &&
Objects.equals(this.addConstraints, updateComputeEngineRequestAllOf.addConstraints) &&
Objects.equals(this.removeConstraints, updateComputeEngineRequestAllOf.removeConstraints);
}
@Override
public int hashCode() {
return Objects.hash(description, version, name, uptime, statistics, lastKnownStatusCode, metadata, addConstraints, removeConstraints);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UpdateComputeEngineRequestAllOf {\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(" statistics: ").append(toIndentedString(statistics)).append("\n");
sb.append(" lastKnownStatusCode: ").append(toIndentedString(lastKnownStatusCode)).append("\n");
sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
sb.append(" addConstraints: ").append(toIndentedString(addConstraints)).append("\n");
sb.append(" removeConstraints: ").append(toIndentedString(removeConstraints)).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