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

annotations.io.fabric8.openshift.api.model.BuildStrategyFluent 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.Visitable;
import io.fabric8.common.BaseFluent;

public class BuildStrategyFluent> extends BaseFluent implements Fluent{

     CustomBuildStrategyBuilder customStrategy;     DockerBuildStrategyBuilder dockerStrategy;     STIBuildStrategyBuilder stiStrategy;     String type;     Map additionalProperties = new HashMap();

    public CustomBuildStrategy getCustomStrategy(){
    return this.customStrategy!=null?this.customStrategy.build():null;
    }
    public T withCustomStrategy( CustomBuildStrategy customStrategy){
    if (customStrategy!=null){ this.customStrategy= new CustomBuildStrategyBuilder(customStrategy); _visitables.add(this.customStrategy);} return (T) this;
    }
    public CustomStrategyNested withNewCustomStrategy(){
    return new CustomStrategyNested();
    }
    public DockerBuildStrategy getDockerStrategy(){
    return this.dockerStrategy!=null?this.dockerStrategy.build():null;
    }
    public T withDockerStrategy( DockerBuildStrategy dockerStrategy){
    if (dockerStrategy!=null){ this.dockerStrategy= new DockerBuildStrategyBuilder(dockerStrategy); _visitables.add(this.dockerStrategy);} return (T) this;
    }
    public DockerStrategyNested withNewDockerStrategy(){
    return new DockerStrategyNested();
    }
    public STIBuildStrategy getStiStrategy(){
    return this.stiStrategy!=null?this.stiStrategy.build():null;
    }
    public T withStiStrategy( STIBuildStrategy stiStrategy){
    if (stiStrategy!=null){ this.stiStrategy= new STIBuildStrategyBuilder(stiStrategy); _visitables.add(this.stiStrategy);} return (T) this;
    }
    public StiStrategyNested withNewStiStrategy(){
    return new StiStrategyNested();
    }
    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 CustomStrategyNested extends CustomBuildStrategyFluent> implements Nested{

        private final CustomBuildStrategyBuilder builder = new CustomBuildStrategyBuilder(this);
    
            public N endCustomStrategy(){
            return and();
        }
            public N and(){
            return (N) BuildStrategyFluent.this.withCustomStrategy(builder.build());
        }
    
}
    public class DockerStrategyNested extends DockerBuildStrategyFluent> implements Nested{

        private final DockerBuildStrategyBuilder builder = new DockerBuildStrategyBuilder(this);
    
            public N endDockerStrategy(){
            return and();
        }
            public N and(){
            return (N) BuildStrategyFluent.this.withDockerStrategy(builder.build());
        }
    
}
    public class StiStrategyNested extends STIBuildStrategyFluent> implements Nested{

        private final STIBuildStrategyBuilder builder = new STIBuildStrategyBuilder(this);
    
            public N and(){
            return (N) BuildStrategyFluent.this.withStiStrategy(builder.build());
        }
            public N endStiStrategy(){
            return and();
        }
    
}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy