
io.fabric8.kubernetes.api.model.extensions.HTTPIngressPathFluentImpl Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model.extensions;
import io.fabric8.kubernetes.api.builder.Nested;
import java.lang.String;
import java.util.LinkedHashMap;
import java.lang.Deprecated;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.Boolean;
import java.util.Map;
/**
* Generated
*/
public class HTTPIngressPathFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements io.fabric8.kubernetes.api.model.extensions.HTTPIngressPathFluent{
public HTTPIngressPathFluentImpl() {
}
public HTTPIngressPathFluentImpl(io.fabric8.kubernetes.api.model.extensions.HTTPIngressPath instance) {
this.withBackend(instance.getBackend());
this.withPath(instance.getPath());
this.withPathType(instance.getPathType());
this.withAdditionalProperties(instance.getAdditionalProperties());
}
private io.fabric8.kubernetes.api.model.extensions.IngressBackendBuilder backend;
private java.lang.String path;
private java.lang.String pathType;
private java.util.Map additionalProperties;
/**
* This method has been deprecated, please use method buildBackend instead.
* @return The buildable object.
*/
@java.lang.Deprecated
public io.fabric8.kubernetes.api.model.extensions.IngressBackend getBackend() {
return this.backend!=null?this.backend.build():null;
}
public io.fabric8.kubernetes.api.model.extensions.IngressBackend buildBackend() {
return this.backend!=null?this.backend.build():null;
}
public A withBackend(io.fabric8.kubernetes.api.model.extensions.IngressBackend backend) {
_visitables.get("backend").remove(this.backend);
if (backend!=null){ this.backend= new io.fabric8.kubernetes.api.model.extensions.IngressBackendBuilder(backend); _visitables.get("backend").add(this.backend);} return (A) this;
}
public java.lang.Boolean hasBackend() {
return this.backend != null;
}
public io.fabric8.kubernetes.api.model.extensions.HTTPIngressPathFluent.BackendNested withNewBackend() {
return new io.fabric8.kubernetes.api.model.extensions.HTTPIngressPathFluentImpl.BackendNestedImpl();
}
public io.fabric8.kubernetes.api.model.extensions.HTTPIngressPathFluent.BackendNested withNewBackendLike(io.fabric8.kubernetes.api.model.extensions.IngressBackend item) {
return new io.fabric8.kubernetes.api.model.extensions.HTTPIngressPathFluentImpl.BackendNestedImpl(item);
}
public io.fabric8.kubernetes.api.model.extensions.HTTPIngressPathFluent.BackendNested editBackend() {
return withNewBackendLike(getBackend());
}
public io.fabric8.kubernetes.api.model.extensions.HTTPIngressPathFluent.BackendNested editOrNewBackend() {
return withNewBackendLike(getBackend() != null ? getBackend(): new io.fabric8.kubernetes.api.model.extensions.IngressBackendBuilder().build());
}
public io.fabric8.kubernetes.api.model.extensions.HTTPIngressPathFluent.BackendNested editOrNewBackendLike(io.fabric8.kubernetes.api.model.extensions.IngressBackend item) {
return withNewBackendLike(getBackend() != null ? getBackend(): item);
}
public java.lang.String getPath() {
return this.path;
}
public A withPath(java.lang.String path) {
this.path=path; return (A) this;
}
public java.lang.Boolean hasPath() {
return this.path != null;
}
/**
* Method is deprecated. use withPath instead.
*/
@java.lang.Deprecated
public A withNewPath(java.lang.String arg0) {
return (A)withPath(new String(arg0));
}
public java.lang.String getPathType() {
return this.pathType;
}
public A withPathType(java.lang.String pathType) {
this.pathType=pathType; return (A) this;
}
public java.lang.Boolean hasPathType() {
return this.pathType != null;
}
/**
* Method is deprecated. use withPathType instead.
*/
@java.lang.Deprecated
public A withNewPathType(java.lang.String arg0) {
return (A)withPathType(new String(arg0));
}
public A addToAdditionalProperties(java.lang.String key,java.lang.Object value) {
if(this.additionalProperties == null && key != null && value != null) { this.additionalProperties = new java.util.LinkedHashMap(); }
if(key != null && value != null) {this.additionalProperties.put(key, value);} return (A)this;
}
public A addToAdditionalProperties(java.util.Map map) {
if(this.additionalProperties == null && map != null) { this.additionalProperties = new java.util.LinkedHashMap(); }
if(map != null) { this.additionalProperties.putAll(map);} return (A)this;
}
public A removeFromAdditionalProperties(java.lang.String key) {
if(this.additionalProperties == null) { return (A) this; }
if(key != null && this.additionalProperties != null) {this.additionalProperties.remove(key);} return (A)this;
}
public A removeFromAdditionalProperties(java.util.Map map) {
if(this.additionalProperties == null) { return (A) this; }
if(map != null) { for(Object key : map.keySet()) {if (this.additionalProperties != null){this.additionalProperties.remove(key);}}} return (A)this;
}
public java.util.Map getAdditionalProperties() {
return this.additionalProperties;
}
public A withAdditionalProperties(java.util.Map additionalProperties) {
if (additionalProperties == null) { this.additionalProperties = null;} else {this.additionalProperties = new java.util.LinkedHashMap(additionalProperties);} return (A) this;
}
public java.lang.Boolean hasAdditionalProperties() {
return this.additionalProperties != null;
}
public boolean equals(java.lang.Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
HTTPIngressPathFluentImpl that = (HTTPIngressPathFluentImpl) o;
if (backend != null ? !backend.equals(that.backend) :that.backend != null) return false;
if (path != null ? !path.equals(that.path) :that.path != null) return false;
if (pathType != null ? !pathType.equals(that.pathType) :that.pathType != null) return false;
if (additionalProperties != null ? !additionalProperties.equals(that.additionalProperties) :that.additionalProperties != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(backend, path, pathType, additionalProperties, super.hashCode());
}
public class BackendNestedImpl extends io.fabric8.kubernetes.api.model.extensions.IngressBackendFluentImpl> implements io.fabric8.kubernetes.api.model.extensions.HTTPIngressPathFluent.BackendNested,io.fabric8.kubernetes.api.builder.Nested{
BackendNestedImpl(io.fabric8.kubernetes.api.model.extensions.IngressBackend item) {
this.builder = new io.fabric8.kubernetes.api.model.extensions.IngressBackendBuilder(this, item);
}
BackendNestedImpl() {
this.builder = new io.fabric8.kubernetes.api.model.extensions.IngressBackendBuilder(this);
}
io.fabric8.kubernetes.api.model.extensions.IngressBackendBuilder builder;
public N and() {
return (N) HTTPIngressPathFluentImpl.this.withBackend(builder.build());
}
public N endBackend() {
return and();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy