
io.fabric8.kubernetes.api.model.extensions.IngressRuleFluentImpl 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 IngressRuleFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements io.fabric8.kubernetes.api.model.extensions.IngressRuleFluent{
public IngressRuleFluentImpl() {
}
public IngressRuleFluentImpl(io.fabric8.kubernetes.api.model.extensions.IngressRule instance) {
this.withHost(instance.getHost());
this.withHttp(instance.getHttp());
this.withAdditionalProperties(instance.getAdditionalProperties());
}
private java.lang.String host;
private io.fabric8.kubernetes.api.model.extensions.HTTPIngressRuleValueBuilder http;
private java.util.Map additionalProperties;
public java.lang.String getHost() {
return this.host;
}
public A withHost(java.lang.String host) {
this.host=host; return (A) this;
}
public java.lang.Boolean hasHost() {
return this.host != null;
}
/**
* Method is deprecated. use withHost instead.
*/
@java.lang.Deprecated
public A withNewHost(java.lang.String arg0) {
return (A)withHost(new String(arg0));
}
/**
* This method has been deprecated, please use method buildHttp instead.
* @return The buildable object.
*/
@java.lang.Deprecated
public io.fabric8.kubernetes.api.model.extensions.HTTPIngressRuleValue getHttp() {
return this.http!=null?this.http.build():null;
}
public io.fabric8.kubernetes.api.model.extensions.HTTPIngressRuleValue buildHttp() {
return this.http!=null?this.http.build():null;
}
public A withHttp(io.fabric8.kubernetes.api.model.extensions.HTTPIngressRuleValue http) {
_visitables.get("http").remove(this.http);
if (http!=null){ this.http= new io.fabric8.kubernetes.api.model.extensions.HTTPIngressRuleValueBuilder(http); _visitables.get("http").add(this.http);} return (A) this;
}
public java.lang.Boolean hasHttp() {
return this.http != null;
}
public io.fabric8.kubernetes.api.model.extensions.IngressRuleFluent.HttpNested withNewHttp() {
return new io.fabric8.kubernetes.api.model.extensions.IngressRuleFluentImpl.HttpNestedImpl();
}
public io.fabric8.kubernetes.api.model.extensions.IngressRuleFluent.HttpNested withNewHttpLike(io.fabric8.kubernetes.api.model.extensions.HTTPIngressRuleValue item) {
return new io.fabric8.kubernetes.api.model.extensions.IngressRuleFluentImpl.HttpNestedImpl(item);
}
public io.fabric8.kubernetes.api.model.extensions.IngressRuleFluent.HttpNested editHttp() {
return withNewHttpLike(getHttp());
}
public io.fabric8.kubernetes.api.model.extensions.IngressRuleFluent.HttpNested editOrNewHttp() {
return withNewHttpLike(getHttp() != null ? getHttp(): new io.fabric8.kubernetes.api.model.extensions.HTTPIngressRuleValueBuilder().build());
}
public io.fabric8.kubernetes.api.model.extensions.IngressRuleFluent.HttpNested editOrNewHttpLike(io.fabric8.kubernetes.api.model.extensions.HTTPIngressRuleValue item) {
return withNewHttpLike(getHttp() != null ? getHttp(): item);
}
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;
IngressRuleFluentImpl that = (IngressRuleFluentImpl) o;
if (host != null ? !host.equals(that.host) :that.host != null) return false;
if (http != null ? !http.equals(that.http) :that.http != 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(host, http, additionalProperties, super.hashCode());
}
public class HttpNestedImpl extends io.fabric8.kubernetes.api.model.extensions.HTTPIngressRuleValueFluentImpl> implements io.fabric8.kubernetes.api.model.extensions.IngressRuleFluent.HttpNested,io.fabric8.kubernetes.api.builder.Nested{
HttpNestedImpl(io.fabric8.kubernetes.api.model.extensions.HTTPIngressRuleValue item) {
this.builder = new io.fabric8.kubernetes.api.model.extensions.HTTPIngressRuleValueBuilder(this, item);
}
HttpNestedImpl() {
this.builder = new io.fabric8.kubernetes.api.model.extensions.HTTPIngressRuleValueBuilder(this);
}
io.fabric8.kubernetes.api.model.extensions.HTTPIngressRuleValueBuilder builder;
public N and() {
return (N) IngressRuleFluentImpl.this.withHttp(builder.build());
}
public N endHttp() {
return and();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy