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

annotations.io.fabric8.openshift.api.model.BuildSourceFluent Maven / Gradle / Ivy

The newest version!
package io.fabric8.openshift.api.model;

import io.fabric8.kubernetes.api.model.LocalObjectReference;
import java.util.HashMap;
import java.util.Map;
import io.fabric8.common.Nested;
import io.fabric8.common.VisitableBuilder;
import io.fabric8.common.Fluent;
import io.fabric8.common.BaseFluent;
import io.fabric8.common.Visitable;

public class BuildSourceFluent> extends BaseFluent implements Fluent{

     String contextDir;     VisitableBuilder git;     LocalObjectReference sourceSecret;     String type;     Map additionalProperties = new HashMap();

    public String getContextDir(){
    return this.contextDir;
    }
    public T withContextDir( String contextDir){
    this.contextDir=contextDir; return (T) this;
    }
    public GitBuildSource getGit(){
    return this.git!=null?this.git.build():null;
    }
    public T withGit( GitBuildSource git){
    if (git!=null){ this.git= new GitBuildSourceBuilder(git); _visitables.add(this.git);} return (T) this;
    }
    public GitNested withNewGit(){
    return new GitNested();
    }
    public GitNested withNewGitLike( GitBuildSource item){
    return new GitNested(item);
    }
    public GitNested editGit(){
    return withNewGitLike(getGit());
    }
    public T withNewGit( String httpProxy,  String httpsProxy,  String ref,  String uri){
    return withGit(new GitBuildSource(httpProxy, httpsProxy, ref, uri));
    }
    public LocalObjectReference getSourceSecret(){
    return this.sourceSecret;
    }
    public T withSourceSecret( LocalObjectReference sourceSecret){
    this.sourceSecret=sourceSecret; return (T) this;
    }
    public String getType(){
    return this.type;
    }
    public T withType( String type){
    this.type=type; return (T) this;
    }
    public T addToAdditionalProperties( String key,  Object value){
    if(key != null && value != null) {this.additionalProperties.put(key, value);} 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 class GitNested extends GitBuildSourceFluent> implements Nested{

        private final GitBuildSourceBuilder builder;
    
             GitNested ( GitBuildSource item){
        this.builder = new GitBuildSourceBuilder(this, item);
        }
             GitNested (){
        this.builder = new GitBuildSourceBuilder(this);
        }
    
            public N and(){
            return (N) BuildSourceFluent.this.withGit(builder.build());
        }
            public N endGit(){
            return and();
        }
    
}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy