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

annotations.io.alauda.kubernetes.api.model.extensions.IngressStatusFluentImpl Maven / Gradle / Ivy

There is a newer version: 0.2.12
Show newest version
package io.alauda.kubernetes.api.model.extensions;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.alauda.kubernetes.api.builder.Nested;
import io.alauda.kubernetes.api.model.LoadBalancerStatusBuilder;
import java.lang.Deprecated;
import javax.validation.Valid;
import io.alauda.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.Boolean;
import io.alauda.kubernetes.api.model.LoadBalancerStatus;
import io.alauda.kubernetes.api.model.LoadBalancerStatusFluentImpl;

public class IngressStatusFluentImpl> extends io.alauda.kubernetes.api.builder.BaseFluent implements IngressStatusFluent{

    private LoadBalancerStatusBuilder loadBalancer;

    public IngressStatusFluentImpl(){
    }
    public IngressStatusFluentImpl(IngressStatus instance){
            this.withLoadBalancer(instance.getLoadBalancer()); 
    }

    
/**
 * This method has been deprecated, please use method buildLoadBalancer instead.
 */
@Deprecated public LoadBalancerStatus getLoadBalancer(){
            return this.loadBalancer!=null?this.loadBalancer.build():null;
    }

    public LoadBalancerStatus buildLoadBalancer(){
            return this.loadBalancer!=null?this.loadBalancer.build():null;
    }

    public A withLoadBalancer(LoadBalancerStatus loadBalancer){
            _visitables.remove(this.loadBalancer);
            if (loadBalancer!=null){ this.loadBalancer= new LoadBalancerStatusBuilder(loadBalancer); _visitables.add(this.loadBalancer);} return (A) this;
    }

    public Boolean hasLoadBalancer(){
            return this.loadBalancer!=null;
    }

    public IngressStatusFluent.LoadBalancerNested withNewLoadBalancer(){
            return new LoadBalancerNestedImpl();
    }

    public IngressStatusFluent.LoadBalancerNested withNewLoadBalancerLike(LoadBalancerStatus item){
            return new LoadBalancerNestedImpl(item);
    }

    public IngressStatusFluent.LoadBalancerNested editLoadBalancer(){
            return withNewLoadBalancerLike(getLoadBalancer());
    }

    public IngressStatusFluent.LoadBalancerNested editOrNewLoadBalancer(){
            return withNewLoadBalancerLike(getLoadBalancer() != null ? getLoadBalancer(): new LoadBalancerStatusBuilder().build());
    }

    public IngressStatusFluent.LoadBalancerNested editOrNewLoadBalancerLike(LoadBalancerStatus item){
            return withNewLoadBalancerLike(getLoadBalancer() != null ? getLoadBalancer(): item);
    }

    public boolean equals(Object o){
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            if (!super.equals(o)) return false;
            IngressStatusFluentImpl that = (IngressStatusFluentImpl) o;
            if (loadBalancer != null ? !loadBalancer.equals(that.loadBalancer) :that.loadBalancer != null) return false;
            return true;
    }


    public class LoadBalancerNestedImpl extends LoadBalancerStatusFluentImpl> implements IngressStatusFluent.LoadBalancerNested,io.alauda.kubernetes.api.builder.Nested{

            private final LoadBalancerStatusBuilder builder;
    
            LoadBalancerNestedImpl(LoadBalancerStatus item){
                    this.builder = new LoadBalancerStatusBuilder(this, item);
            }
            LoadBalancerNestedImpl(){
                    this.builder = new LoadBalancerStatusBuilder(this);
            }
    
    public N and(){
            return (N) IngressStatusFluentImpl.this.withLoadBalancer(builder.build());
    }
    public N endLoadBalancer(){
            return and();
    }

}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy