
io.kubernetes.client.openapi.models.V1TCPSocketActionFluentImpl Maven / Gradle / Ivy
package io.kubernetes.client.openapi.models;
import java.lang.StringBuffer;
import java.lang.StringBuilder;
import io.kubernetes.client.custom.IntOrString;
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 V1TCPSocketActionFluentImpl> extends io.kubernetes.client.fluent.BaseFluent implements V1TCPSocketActionFluent {
private String host;
private IntOrString port;
public V1TCPSocketActionFluentImpl() {
}
public V1TCPSocketActionFluentImpl(V1TCPSocketAction instance) {
this.withHost(instance.getHost());
this.withPort(instance.getPort());
}
public String getHost() {
return this.host;
}
public A withHost(String host) {
this.host=host; return (A) this;
}
public Boolean hasHost() {
return this.host != null;
}
public A withNewHost(String arg1) {
return (A)withHost(new String(arg1));
}
public A withNewHost(StringBuilder arg1) {
return (A)withHost(new String(arg1));
}
public A withNewHost(StringBuffer arg1) {
return (A)withHost(new String(arg1));
}
public IntOrString getPort() {
return this.port;
}
public A withPort(IntOrString port) {
this.port=port; return (A) this;
}
public Boolean hasPort() {
return this.port != null;
}
public A withNewPort(final int value) {
return (A)withPort(new IntOrString(value));
}
public A withNewPort(final String value) {
return (A)withPort(new IntOrString(value));
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
V1TCPSocketActionFluentImpl that = (V1TCPSocketActionFluentImpl) o;
if (host != null ? !host.equals(that.host) :that.host != null) return false;
if (port != null ? !port.equals(that.port) :that.port != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(host, port, super.hashCode());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy