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

annotations.io.alauda.kubernetes.api.model.JenkinsSpecFluentImpl Maven / Gradle / Ivy

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

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

public class JenkinsSpecFluentImpl> extends io.alauda.kubernetes.api.builder.BaseFluent implements JenkinsSpecFluent{

    private HostPortBuilder http;

    public JenkinsSpecFluentImpl(){
    }
    public JenkinsSpecFluentImpl(JenkinsSpec instance){
            this.withHttp(instance.getHttp()); 
    }

    
/**
 * This method has been deprecated, please use method buildHttp instead.
 */
@Deprecated public HostPort getHttp(){
            return this.http!=null?this.http.build():null;
    }

    public HostPort buildHttp(){
            return this.http!=null?this.http.build():null;
    }

    public A withHttp(HostPort http){
            _visitables.remove(this.http);
            if (http!=null){ this.http= new HostPortBuilder(http); _visitables.add(this.http);} return (A) this;
    }

    public Boolean hasHttp(){
            return this.http!=null;
    }

    public JenkinsSpecFluent.HttpNested withNewHttp(){
            return new HttpNestedImpl();
    }

    public JenkinsSpecFluent.HttpNested withNewHttpLike(HostPort item){
            return new HttpNestedImpl(item);
    }

    public JenkinsSpecFluent.HttpNested editHttp(){
            return withNewHttpLike(getHttp());
    }

    public JenkinsSpecFluent.HttpNested editOrNewHttp(){
            return withNewHttpLike(getHttp() != null ? getHttp(): new HostPortBuilder().build());
    }

    public JenkinsSpecFluent.HttpNested editOrNewHttpLike(HostPort item){
            return withNewHttpLike(getHttp() != null ? getHttp(): item);
    }

    public A withNewHttp(String host){
            return (A)withHttp(new HostPort(host));
    }

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


    public class HttpNestedImpl extends HostPortFluentImpl> implements JenkinsSpecFluent.HttpNested,io.alauda.kubernetes.api.builder.Nested{

            private final HostPortBuilder builder;
    
            HttpNestedImpl(HostPort item){
                    this.builder = new HostPortBuilder(this, item);
            }
            HttpNestedImpl(){
                    this.builder = new HostPortBuilder(this);
            }
    
    public N and(){
            return (N) JenkinsSpecFluentImpl.this.withHttp(builder.build());
    }
    public N endHttp(){
            return and();
    }

}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy