io.dekorate.openshift.config.RouteFluentImpl Maven / Gradle / Ivy
package io.dekorate.openshift.config;
import java.lang.SuppressWarnings;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
/**
* Generated
*/
@SuppressWarnings(value = "unchecked")
public class RouteFluentImpl> extends BaseFluent implements RouteFluent{
public RouteFluentImpl() {
}
public RouteFluentImpl(Route instance) {
this.withExpose(instance.getExpose());
this.withHost(instance.getHost());
this.withTargetPort(instance.getTargetPort());
}
private Boolean expose;
private String host;
private String targetPort;
public Boolean getExpose() {
return this.expose;
}
public A withExpose(Boolean expose) {
this.expose=expose; return (A) this;
}
public Boolean hasExpose() {
return this.expose != null;
}
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 String getTargetPort() {
return this.targetPort;
}
public A withTargetPort(String targetPort) {
this.targetPort=targetPort; return (A) this;
}
public Boolean hasTargetPort() {
return this.targetPort != null;
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
RouteFluentImpl that = (RouteFluentImpl) o;
if (expose != null ? !expose.equals(that.expose) :that.expose != null) return false;
if (host != null ? !host.equals(that.host) :that.host != null) return false;
if (targetPort != null ? !targetPort.equals(that.targetPort) :that.targetPort != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(expose, host, targetPort, super.hashCode());
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (expose != null) { sb.append("expose:"); sb.append(expose + ","); }
if (host != null) { sb.append("host:"); sb.append(host + ","); }
if (targetPort != null) { sb.append("targetPort:"); sb.append(targetPort); }
sb.append("}");
return sb.toString();
}
public A withExpose() {
return withExpose(true);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy