
io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRFluentImpl 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 V1ServerAddressByClientCIDRFluentImpl> extends BaseFluent implements V1ServerAddressByClientCIDRFluent{
public V1ServerAddressByClientCIDRFluentImpl() {
}
public V1ServerAddressByClientCIDRFluentImpl(V1ServerAddressByClientCIDR instance) {
if (instance != null) {
this.withClientCIDR(instance.getClientCIDR());
this.withServerAddress(instance.getServerAddress());
}
}
private String clientCIDR;
private String serverAddress;
public String getClientCIDR() {
return this.clientCIDR;
}
public A withClientCIDR(String clientCIDR) {
this.clientCIDR=clientCIDR; return (A) this;
}
public Boolean hasClientCIDR() {
return this.clientCIDR != null;
}
public String getServerAddress() {
return this.serverAddress;
}
public A withServerAddress(String serverAddress) {
this.serverAddress=serverAddress; return (A) this;
}
public Boolean hasServerAddress() {
return this.serverAddress != null;
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
V1ServerAddressByClientCIDRFluentImpl that = (V1ServerAddressByClientCIDRFluentImpl) o;
if (!java.util.Objects.equals(clientCIDR, that.clientCIDR)) return false;
if (!java.util.Objects.equals(serverAddress, that.serverAddress)) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(clientCIDR, serverAddress, super.hashCode());
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (clientCIDR != null) { sb.append("clientCIDR:"); sb.append(clientCIDR + ","); }
if (serverAddress != null) { sb.append("serverAddress:"); sb.append(serverAddress); }
sb.append("}");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy