io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRFluentImpl 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 V1ServerAddressByClientCIDRFluentImpl> extends io.kubernetes.client.fluent.BaseFluent implements V1ServerAddressByClientCIDRFluent {
private String clientCIDR;
private String serverAddress;
public V1ServerAddressByClientCIDRFluentImpl() {
}
public V1ServerAddressByClientCIDRFluentImpl(V1ServerAddressByClientCIDR instance) {
this.withClientCIDR(instance.getClientCIDR());
this.withServerAddress(instance.getServerAddress());
}
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 A withNewClientCIDR(String arg1) {
return (A)withClientCIDR(new String(arg1));
}
public A withNewClientCIDR(StringBuilder arg1) {
return (A)withClientCIDR(new String(arg1));
}
public A withNewClientCIDR(StringBuffer arg1) {
return (A)withClientCIDR(new String(arg1));
}
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 A withNewServerAddress(String arg1) {
return (A)withServerAddress(new String(arg1));
}
public A withNewServerAddress(StringBuilder arg1) {
return (A)withServerAddress(new String(arg1));
}
public A withNewServerAddress(StringBuffer arg1) {
return (A)withServerAddress(new String(arg1));
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
V1ServerAddressByClientCIDRFluentImpl that = (V1ServerAddressByClientCIDRFluentImpl) o;
if (clientCIDR != null ? !clientCIDR.equals(that.clientCIDR) :that.clientCIDR != null) return false;
if (serverAddress != null ? !serverAddress.equals(that.serverAddress) :that.serverAddress != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(clientCIDR, serverAddress, super.hashCode());
}
}