annotations.io.fabric8.openshift.api.model.BuildSourceFluent Maven / Gradle / Ivy
package io.fabric8.openshift.api.model;
import java.util.HashMap;
import java.util.Map;
import io.fabric8.common.Fluent;
import io.fabric8.common.Nested;
public class BuildSourceFluent> implements Fluent{
private String contextDir ;
private GitBuildSource git ;
private String type ;
private 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;
}
public T withGit(GitBuildSource git){
this.git=git; return (T) this;
}
public String getType(){
return this.type;
}
public T withType(String type){
this.type=type; 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 GitNested withNewGit(){
return new GitNested();
}
public T addToAdditionalProperties(String key, Object value){
if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
}
public class GitNested extends GitBuildSourceFluent> implements Nested{
private final GitBuildSourceBuilder builder = new GitBuildSourceBuilder(this);
public N endGit(){
return and();
}
public N and(){
return (N) BuildSourceFluent.this.withGit(builder.build());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy