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

io.kubernetes.client.models.V1NodeDaemonEndpointsFluentImpl Maven / Gradle / Ivy

package io.kubernetes.client.models;

import com.google.gson.annotations.SerializedName;
import io.kubernetes.client.fluent.Nested;
import java.lang.Deprecated;
import io.kubernetes.client.fluent.BaseFluent;
import java.lang.Object;
import java.lang.Boolean;

public class V1NodeDaemonEndpointsFluentImpl> extends io.kubernetes.client.fluent.BaseFluent implements V1NodeDaemonEndpointsFluent{

    private V1DaemonEndpointBuilder kubeletEndpoint;

    public V1NodeDaemonEndpointsFluentImpl(){
    }
    public V1NodeDaemonEndpointsFluentImpl(V1NodeDaemonEndpoints instance){
            this.withKubeletEndpoint(instance.getKubeletEndpoint());

    }

    
/**
 * This method has been deprecated, please use method buildKubeletEndpoint instead.
 */
@Deprecated public V1DaemonEndpoint getKubeletEndpoint(){
            return this.kubeletEndpoint!=null?this.kubeletEndpoint.build():null;
    }

    public V1DaemonEndpoint buildKubeletEndpoint(){
            return this.kubeletEndpoint!=null?this.kubeletEndpoint.build():null;
    }

    public A withKubeletEndpoint(V1DaemonEndpoint kubeletEndpoint){
            _visitables.remove(this.kubeletEndpoint);
            if (kubeletEndpoint!=null){ this.kubeletEndpoint= new V1DaemonEndpointBuilder(kubeletEndpoint); _visitables.add(this.kubeletEndpoint);} return (A) this;
    }

    public Boolean hasKubeletEndpoint(){
            return this.kubeletEndpoint != null;
    }

    public V1NodeDaemonEndpointsFluent.KubeletEndpointNested withNewKubeletEndpoint(){
            return new KubeletEndpointNestedImpl();
    }

    public V1NodeDaemonEndpointsFluent.KubeletEndpointNested withNewKubeletEndpointLike(V1DaemonEndpoint item){
            return new KubeletEndpointNestedImpl(item);
    }

    public V1NodeDaemonEndpointsFluent.KubeletEndpointNested editKubeletEndpoint(){
            return withNewKubeletEndpointLike(getKubeletEndpoint());
    }

    public V1NodeDaemonEndpointsFluent.KubeletEndpointNested editOrNewKubeletEndpoint(){
            return withNewKubeletEndpointLike(getKubeletEndpoint() != null ? getKubeletEndpoint(): new V1DaemonEndpointBuilder().build());
    }

    public V1NodeDaemonEndpointsFluent.KubeletEndpointNested editOrNewKubeletEndpointLike(V1DaemonEndpoint item){
            return withNewKubeletEndpointLike(getKubeletEndpoint() != null ? getKubeletEndpoint(): 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;
            V1NodeDaemonEndpointsFluentImpl that = (V1NodeDaemonEndpointsFluentImpl) o;
            if (kubeletEndpoint != null ? !kubeletEndpoint.equals(that.kubeletEndpoint) :that.kubeletEndpoint != null) return false;
            return true;
    }


    public class KubeletEndpointNestedImpl extends V1DaemonEndpointFluentImpl> implements V1NodeDaemonEndpointsFluent.KubeletEndpointNested,io.kubernetes.client.fluent.Nested{

            private final V1DaemonEndpointBuilder builder;
    
            KubeletEndpointNestedImpl(V1DaemonEndpoint item){
                    this.builder = new V1DaemonEndpointBuilder(this, item);
            }
            KubeletEndpointNestedImpl(){
                    this.builder = new V1DaemonEndpointBuilder(this);
            }
    
    public N and(){
            return (N) V1NodeDaemonEndpointsFluentImpl.this.withKubeletEndpoint(builder.build());
    }
    public N endKubeletEndpoint(){
            return and();
    }

}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy