com.seeq.model.ServerSpecOutputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 60.1.3-v202304250417
*
*
* 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.seeq.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* Information about the specs of the server
*/
@Schema(description = "Information about the specs of the server")
public class ServerSpecOutputV1 {
@JsonProperty("componentName")
private String componentName = null;
@JsonProperty("error")
private Boolean error = false;
@JsonProperty("message")
private String message = null;
@JsonProperty("systemSpecValue")
private String systemSpecValue = null;
@JsonProperty("warning")
private Boolean warning = false;
public ServerSpecOutputV1 componentName(String componentName) {
this.componentName = componentName;
return this;
}
/**
* The name of the component. E.G. CPU, Memory...
* @return componentName
**/
@Schema(description = "The name of the component. E.G. CPU, Memory...")
public String getComponentName() {
return componentName;
}
public void setComponentName(String componentName) {
this.componentName = componentName;
}
public ServerSpecOutputV1 error(Boolean error) {
this.error = error;
return this;
}
/**
* True if this value is far lower than recommended
* @return error
**/
@Schema(description = "True if this value is far lower than recommended")
public Boolean getError() {
return error;
}
public void setError(Boolean error) {
this.error = error;
}
public ServerSpecOutputV1 message(String message) {
this.message = message;
return this;
}
/**
* An optional message about the spec
* @return message
**/
@Schema(description = "An optional message about the spec")
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public ServerSpecOutputV1 systemSpecValue(String systemSpecValue) {
this.systemSpecValue = systemSpecValue;
return this;
}
/**
* The value of the component
* @return systemSpecValue
**/
@Schema(description = "The value of the component")
public String getSystemSpecValue() {
return systemSpecValue;
}
public void setSystemSpecValue(String systemSpecValue) {
this.systemSpecValue = systemSpecValue;
}
public ServerSpecOutputV1 warning(Boolean warning) {
this.warning = warning;
return this;
}
/**
* True if this value is lower than recommended, but not a critical failure
* @return warning
**/
@Schema(description = "True if this value is lower than recommended, but not a critical failure")
public Boolean getWarning() {
return warning;
}
public void setWarning(Boolean warning) {
this.warning = warning;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ServerSpecOutputV1 serverSpecOutputV1 = (ServerSpecOutputV1) o;
return Objects.equals(this.componentName, serverSpecOutputV1.componentName) &&
Objects.equals(this.error, serverSpecOutputV1.error) &&
Objects.equals(this.message, serverSpecOutputV1.message) &&
Objects.equals(this.systemSpecValue, serverSpecOutputV1.systemSpecValue) &&
Objects.equals(this.warning, serverSpecOutputV1.warning);
}
@Override
public int hashCode() {
return Objects.hash(componentName, error, message, systemSpecValue, warning);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ServerSpecOutputV1 {\n");
sb.append(" componentName: ").append(toIndentedString(componentName)).append("\n");
sb.append(" error: ").append(toIndentedString(error)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" systemSpecValue: ").append(toIndentedString(systemSpecValue)).append("\n");
sb.append(" warning: ").append(toIndentedString(warning)).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 ");
}
}