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

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

There is a newer version: 0.0.54
Show newest version
package io.fabric8.openshift.api.model;

import java.util.HashMap;
import java.util.Map;
import io.fabric8.common.Nested;
import io.fabric8.common.Builder;
import io.fabric8.common.Fluent;
import io.fabric8.common.BaseFluent;
import io.fabric8.common.Visitable;

public class SourceRevisionFluent> extends BaseFluent implements Fluent{

     GitSourceRevisionBuilder git;     String type;     Map additionalProperties = new HashMap();

    public GitSourceRevision getGit(){
    return this.git!=null?this.git.build():null;
    }
    public T withGit( GitSourceRevision git){
    if (git!=null){ this.git= new GitSourceRevisionBuilder(git); _visitables.add(this.git);} return (T) this;
    }
    public GitNested withNewGit(){
    return new GitNested();
    }
    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 GitSourceRevisionFluent> implements Nested{

        private final GitSourceRevisionBuilder builder = new GitSourceRevisionBuilder(this);
    
            public N endGit(){
            return and();
        }
            public N and(){
            return (N) SourceRevisionFluent.this.withGit(builder.build());
        }
    
}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy