io.fabric8.kubernetes.api.model.extensions.IngressStatusFluentImpl Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model.extensions;
import java.util.HashMap;
import java.io.Serializable;
import java.util.Map;
import java.util.Map;
import java.util.AbstractMap;
import io.fabric8.kubernetes.api.model.LoadBalancerStatus;
import io.fabric8.kubernetes.api.builder.Visitable;
import io.fabric8.kubernetes.api.builder.Builder;
import io.fabric8.kubernetes.api.model.LoadBalancerStatusBuilder;
import io.fabric8.kubernetes.api.model.LoadBalancerStatusFluentImpl;
import io.fabric8.kubernetes.api.builder.Visitable;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import io.fabric8.kubernetes.api.model.LoadBalancerStatusFluent;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import io.fabric8.kubernetes.api.builder.Fluent;
import io.fabric8.kubernetes.api.builder.Nested;
public class IngressStatusFluentImpl> extends BaseFluent implements IngressStatusFluent{
VisitableBuilder loadBalancer; Map additionalProperties = new HashMap();
public IngressStatusFluentImpl(){
}
public IngressStatusFluentImpl( IngressStatus instance ){
this.withLoadBalancer(instance.getLoadBalancer());
}
public LoadBalancerStatus getLoadBalancer(){
return this.loadBalancer!=null?this.loadBalancer.build():null;
}
public T withLoadBalancer( LoadBalancerStatus loadBalancer){
if (loadBalancer!=null){ this.loadBalancer= new LoadBalancerStatusBuilder(loadBalancer); _visitables.add(this.loadBalancer);} return (T) this;
}
public LoadBalancerNested withNewLoadBalancer(){
return new LoadBalancerNestedImpl();
}
public LoadBalancerNested withNewLoadBalancerLike( LoadBalancerStatus item){
return new LoadBalancerNestedImpl(item);
}
public LoadBalancerNested editLoadBalancer(){
return withNewLoadBalancerLike(getLoadBalancer());
}
public T addToAdditionalProperties( String key, Object value){
if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
}
public T addToAdditionalProperties( Map map){
if(map != null) { this.additionalProperties.putAll(map);} return (T)this;
}
public T removeFromAdditionalProperties( String key){
if(key != null) {this.additionalProperties.remove(key);} return (T)this;
}
public T removeFromAdditionalProperties( Map map){
if(map != null) { for(Object key : map.keySet()) {this.additionalProperties.remove(key);}} return (T)this;
}
public Map getAdditionalProperties(){
return this.additionalProperties;
}
public T withAdditionalProperties( Map additionalProperties){
this.additionalProperties.clear();if (additionalProperties != null) {this.additionalProperties.putAll(additionalProperties);} return (T) this;
}
public boolean equals( Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
IngressStatusFluentImpl that = (IngressStatusFluentImpl) o;
if (loadBalancer != null ? !loadBalancer.equals(that.loadBalancer) :that.loadBalancer != null) return false;
if (additionalProperties != null ? !additionalProperties.equals(that.additionalProperties) :that.additionalProperties != null) return false;
return true;
}
public class LoadBalancerNestedImpl extends LoadBalancerStatusFluentImpl> implements LoadBalancerNested{
private final LoadBalancerStatusBuilder builder;
LoadBalancerNestedImpl (){
this.builder = new LoadBalancerStatusBuilder(this);
}
LoadBalancerNestedImpl ( LoadBalancerStatus item){
this.builder = new LoadBalancerStatusBuilder(this, item);
}
public N and(){
return (N) IngressStatusFluentImpl.this.withLoadBalancer(builder.build());
}
public N endLoadBalancer(){
return and();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy