com.seeq.model.ServerLoadOutputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 65.1.3-v202408082312
*
*
* 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;
/**
* ServerLoadOutputV1
*/
public class ServerLoadOutputV1 {
@JsonProperty("description")
private String description = null;
@JsonProperty("loadPercentage")
private Double loadPercentage = null;
public ServerLoadOutputV1 description(String description) {
this.description = description;
return this;
}
/**
* A human readable description of what is most causing the server load.
* @return description
**/
@Schema(description = "A human readable description of what is most causing the server load.")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public ServerLoadOutputV1 loadPercentage(Double loadPercentage) {
this.loadPercentage = loadPercentage;
return this;
}
/**
* A rough percentage of load that the server is experiencing, where 0.0 is entirely unloaded and 1.0 is entirely busy. Note, a load of greater than 1.0 is possible and perhaps normal, but it indicates the server is queuing effort and some users may have a degraded experience.
* @return loadPercentage
**/
@Schema(description = "A rough percentage of load that the server is experiencing, where 0.0 is entirely unloaded and 1.0 is entirely busy. Note, a load of greater than 1.0 is possible and perhaps normal, but it indicates the server is queuing effort and some users may have a degraded experience.")
public Double getLoadPercentage() {
return loadPercentage;
}
public void setLoadPercentage(Double loadPercentage) {
this.loadPercentage = loadPercentage;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ServerLoadOutputV1 serverLoadOutputV1 = (ServerLoadOutputV1) o;
return Objects.equals(this.description, serverLoadOutputV1.description) &&
Objects.equals(this.loadPercentage, serverLoadOutputV1.loadPercentage);
}
@Override
public int hashCode() {
return Objects.hash(description, loadPercentage);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ServerLoadOutputV1 {\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" loadPercentage: ").append(toIndentedString(loadPercentage)).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 ");
}
}