All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.fabric8.kubernetes.api.model.LoadBalancerStatusFluentImpl Maven / Gradle / Ivy

There is a newer version: 6.13.4
Show newest version
package io.fabric8.kubernetes.api.model;

import java.util.ArrayList;
import java.util.RandomAccess;
import java.util.Map;
import java.util.Map;
import java.util.List;
import java.util.List;
import java.util.AbstractCollection;
import java.util.AbstractList;
import java.util.HashMap;
import java.io.Serializable;
import java.util.Collection;
import java.util.AbstractMap;
import java.util.List;
import io.fabric8.kubernetes.api.builder.Visitable;
import io.fabric8.kubernetes.api.builder.Builder;
import io.fabric8.kubernetes.api.builder.Visitable;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import io.fabric8.kubernetes.api.builder.Fluent;
import io.fabric8.kubernetes.api.builder.Nested;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;

public class LoadBalancerStatusFluentImpl> extends BaseFluent implements LoadBalancerStatusFluent{

     List> ingress = new ArrayList();     Map additionalProperties = new HashMap();
public LoadBalancerStatusFluentImpl(){
    
}
public LoadBalancerStatusFluentImpl( LoadBalancerStatus instance ){
    this.withIngress(instance.getIngress()); 
}

    public T addToIngress( LoadBalancerIngress ...items){
    for (LoadBalancerIngress item : items) {LoadBalancerIngressBuilder builder = new LoadBalancerIngressBuilder(item);_visitables.add(builder);this.ingress.add(builder);} return (T)this;
    }
    public T removeFromIngress( LoadBalancerIngress ...items){
    for (LoadBalancerIngress item : items) {LoadBalancerIngressBuilder builder = new LoadBalancerIngressBuilder(item);_visitables.remove(builder);this.ingress.remove(builder);} return (T)this;
    }
    public List getIngress(){
    return build(ingress);
    }
    public T withIngress( List ingress){
    this.ingress.clear();if (ingress != null) {for (LoadBalancerIngress item : ingress){this.addToIngress(item);}} return (T) this;
    }
    public T withIngress( LoadBalancerIngress ...ingress){
    this.ingress.clear(); if (ingress != null) {for (LoadBalancerIngress item :ingress){ this.addToIngress(item);}} return (T) this;
    }
    public IngressNested addNewIngres(){
    return new IngressNestedImpl();
    }
    public IngressNested addNewIngresLike( LoadBalancerIngress item){
    return new IngressNestedImpl(item);
    }
    public T addNewIngres( String hostname,  String ip){
    return addToIngress(new LoadBalancerIngress(hostname, ip));
    }
    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;
LoadBalancerStatusFluentImpl that = (LoadBalancerStatusFluentImpl) o;
if (ingress != null ? !ingress.equals(that.ingress) :that.ingress != null) return false;
if (additionalProperties != null ? !additionalProperties.equals(that.additionalProperties) :that.additionalProperties != null) return false;
return true;

    }

    public class IngressNestedImpl extends LoadBalancerIngressFluentImpl> implements IngressNested{

        private final LoadBalancerIngressBuilder builder;
    
             IngressNestedImpl (){
        this.builder = new LoadBalancerIngressBuilder(this);
        }
             IngressNestedImpl ( LoadBalancerIngress item){
        this.builder = new LoadBalancerIngressBuilder(this, item);
        }
    
            public N and(){
            return (N) LoadBalancerStatusFluentImpl.this.addToIngress(builder.build());
        }
            public N endIngres(){
            return and();
        }
    
}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy