
io.kubernetes.client.models.V1ComponentCondition Maven / Gradle / Ivy
/*
* Kubernetes
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: v1.11.1
*
*
* 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 io.kubernetes.client.models;
import java.util.Objects;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* Information about the condition of a component.
*/
@ApiModel(description = "Information about the condition of a component.")
public class V1ComponentCondition {
@SerializedName("error")
private String error = null;
@SerializedName("message")
private String message = null;
@SerializedName("status")
private String status = null;
@SerializedName("type")
private String type = null;
public V1ComponentCondition error(String error) {
this.error = error;
return this;
}
/**
* Condition error code for a component. For example, a health check error code.
* @return error
**/
@ApiModelProperty(value = "Condition error code for a component. For example, a health check error code.")
public String getError() {
return error;
}
public void setError(String error) {
this.error = error;
}
public V1ComponentCondition message(String message) {
this.message = message;
return this;
}
/**
* Message about the condition for a component. For example, information about a health check.
* @return message
**/
@ApiModelProperty(value = "Message about the condition for a component. For example, information about a health check.")
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public V1ComponentCondition status(String status) {
this.status = status;
return this;
}
/**
* Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".
* @return status
**/
@ApiModelProperty(required = true, value = "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".")
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public V1ComponentCondition type(String type) {
this.type = type;
return this;
}
/**
* Type of condition for a component. Valid value: \"Healthy\"
* @return type
**/
@ApiModelProperty(required = true, value = "Type of condition for a component. Valid value: \"Healthy\"")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1ComponentCondition v1ComponentCondition = (V1ComponentCondition) o;
return Objects.equals(this.error, v1ComponentCondition.error) &&
Objects.equals(this.message, v1ComponentCondition.message) &&
Objects.equals(this.status, v1ComponentCondition.status) &&
Objects.equals(this.type, v1ComponentCondition.type);
}
@Override
public int hashCode() {
return Objects.hash(error, message, status, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1ComponentCondition {\n");
sb.append(" error: ").append(toIndentedString(error)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy