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

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

package io.kubernetes.client.models;

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

public class V1beta1HTTPIngressPathFluentImpl> extends io.kubernetes.client.fluent.BaseFluent implements V1beta1HTTPIngressPathFluent{

    private V1beta1IngressBackendBuilder backend;
    private String path;

    public V1beta1HTTPIngressPathFluentImpl(){
    }
    public V1beta1HTTPIngressPathFluentImpl(V1beta1HTTPIngressPath instance){
            this.withBackend(instance.getBackend());

            this.withPath(instance.getPath());

    }

    
/**
 * This method has been deprecated, please use method buildBackend instead.
 */
@Deprecated public V1beta1IngressBackend getBackend(){
            return this.backend!=null?this.backend.build():null;
    }

    public V1beta1IngressBackend buildBackend(){
            return this.backend!=null?this.backend.build():null;
    }

    public A withBackend(V1beta1IngressBackend backend){
            _visitables.remove(this.backend);
            if (backend!=null){ this.backend= new V1beta1IngressBackendBuilder(backend); _visitables.add(this.backend);} return (A) this;
    }

    public Boolean hasBackend(){
            return this.backend != null;
    }

    public V1beta1HTTPIngressPathFluent.BackendNested withNewBackend(){
            return new BackendNestedImpl();
    }

    public V1beta1HTTPIngressPathFluent.BackendNested withNewBackendLike(V1beta1IngressBackend item){
            return new BackendNestedImpl(item);
    }

    public V1beta1HTTPIngressPathFluent.BackendNested editBackend(){
            return withNewBackendLike(getBackend());
    }

    public V1beta1HTTPIngressPathFluent.BackendNested editOrNewBackend(){
            return withNewBackendLike(getBackend() != null ? getBackend(): new V1beta1IngressBackendBuilder().build());
    }

    public V1beta1HTTPIngressPathFluent.BackendNested editOrNewBackendLike(V1beta1IngressBackend item){
            return withNewBackendLike(getBackend() != null ? getBackend(): item);
    }

    public String getPath(){
            return this.path;
    }

    public A withPath(String path){
            this.path=path; return (A) this;
    }

    public Boolean hasPath(){
            return this.path != null;
    }

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


    public class BackendNestedImpl extends V1beta1IngressBackendFluentImpl> implements V1beta1HTTPIngressPathFluent.BackendNested,io.kubernetes.client.fluent.Nested{

            private final V1beta1IngressBackendBuilder builder;
    
            BackendNestedImpl(V1beta1IngressBackend item){
                    this.builder = new V1beta1IngressBackendBuilder(this, item);
            }
            BackendNestedImpl(){
                    this.builder = new V1beta1IngressBackendBuilder(this);
            }
    
    public N and(){
            return (N) V1beta1HTTPIngressPathFluentImpl.this.withBackend(builder.build());
    }
    public N endBackend(){
            return and();
    }

}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy