io.kubernetes.client.openapi.models.V1ContainerStateWaitingFluentImpl Maven / Gradle / Ivy
package io.kubernetes.client.openapi.models;
import java.lang.SuppressWarnings;
import io.kubernetes.client.fluent.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
/**
* Generated
*/
@SuppressWarnings(value = "unchecked")
public class V1ContainerStateWaitingFluentImpl> extends BaseFluent implements V1ContainerStateWaitingFluent{
public V1ContainerStateWaitingFluentImpl() {
}
public V1ContainerStateWaitingFluentImpl(V1ContainerStateWaiting instance) {
this.withMessage(instance.getMessage());
this.withReason(instance.getReason());
}
private String message;
private String reason;
public String getMessage() {
return this.message;
}
public A withMessage(String message) {
this.message=message; return (A) this;
}
public Boolean hasMessage() {
return this.message != null;
}
public String getReason() {
return this.reason;
}
public A withReason(String reason) {
this.reason=reason; return (A) this;
}
public Boolean hasReason() {
return this.reason != null;
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
V1ContainerStateWaitingFluentImpl that = (V1ContainerStateWaitingFluentImpl) o;
if (message != null ? !message.equals(that.message) :that.message != null) return false;
if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(message, reason, super.hashCode());
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (message != null) { sb.append("message:"); sb.append(message + ","); }
if (reason != null) { sb.append("reason:"); sb.append(reason); }
sb.append("}");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy