io.kubernetes.client.openapi.models.V1PersistentVolumeStatusFluentImpl Maven / Gradle / Ivy
package io.kubernetes.client.openapi.models;
import java.lang.StringBuffer;
import java.lang.StringBuilder;
import com.google.gson.annotations.SerializedName;
import io.kubernetes.client.fluent.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
public class V1PersistentVolumeStatusFluentImpl> extends io.kubernetes.client.fluent.BaseFluent implements V1PersistentVolumeStatusFluent {
private String message;
private String phase;
private String reason;
public V1PersistentVolumeStatusFluentImpl() {
}
public V1PersistentVolumeStatusFluentImpl(V1PersistentVolumeStatus instance) {
this.withMessage(instance.getMessage());
this.withPhase(instance.getPhase());
this.withReason(instance.getReason());
}
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 A withNewMessage(String arg1) {
return (A)withMessage(new String(arg1));
}
public A withNewMessage(StringBuilder arg1) {
return (A)withMessage(new String(arg1));
}
public A withNewMessage(StringBuffer arg1) {
return (A)withMessage(new String(arg1));
}
public String getPhase() {
return this.phase;
}
public A withPhase(String phase) {
this.phase=phase; return (A) this;
}
public Boolean hasPhase() {
return this.phase != null;
}
public A withNewPhase(String arg1) {
return (A)withPhase(new String(arg1));
}
public A withNewPhase(StringBuilder arg1) {
return (A)withPhase(new String(arg1));
}
public A withNewPhase(StringBuffer arg1) {
return (A)withPhase(new String(arg1));
}
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 A withNewReason(String arg1) {
return (A)withReason(new String(arg1));
}
public A withNewReason(StringBuilder arg1) {
return (A)withReason(new String(arg1));
}
public A withNewReason(StringBuffer arg1) {
return (A)withReason(new String(arg1));
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
V1PersistentVolumeStatusFluentImpl that = (V1PersistentVolumeStatusFluentImpl) o;
if (message != null ? !message.equals(that.message) :that.message != null) return false;
if (phase != null ? !phase.equals(that.phase) :that.phase != 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, phase, reason, super.hashCode());
}
}