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

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

package io.fabric8.openshift.api.model;

import io.fabric8.kubernetes.api.model.base.ReplicationControllerSpec;
import java.util.HashMap;
import java.util.Map;
import io.fabric8.common.Nested;
import io.fabric8.kubernetes.api.model.base.ReplicationControllerSpecBuilder;
import io.fabric8.kubernetes.api.model.base.ReplicationControllerSpecFluent;
import io.fabric8.common.Fluent;

public class DeploymentTemplateFluent> implements Fluent{

    private ReplicationControllerSpec controllerTemplate ;
    private DeploymentStrategy strategy ;
    private Map additionalProperties  = new HashMap();

    public ReplicationControllerSpec getControllerTemplate(){
    return this.controllerTemplate;
    }
    public T withControllerTemplate(ReplicationControllerSpec controllerTemplate){
    this.controllerTemplate=controllerTemplate; return (T) this;
    }
    public DeploymentStrategy getStrategy(){
    return this.strategy;
    }
    public T withStrategy(DeploymentStrategy strategy){
    this.strategy=strategy; 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 ControllerTemplateNested withNewControllerTemplate(){
    return new ControllerTemplateNested();
    }
    public StrategyNested withNewStrategy(){
    return new StrategyNested();
    }
    public T addToAdditionalProperties(String key, Object value){
    if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
    }

    public class ControllerTemplateNested extends ReplicationControllerSpecFluent> implements Nested{

        private final ReplicationControllerSpecBuilder builder = new ReplicationControllerSpecBuilder(this);
    
            public N endControllerTemplate(){
            return and();
        }
            public N and(){
            return (N) DeploymentTemplateFluent.this.withControllerTemplate(builder.build());
        }
    
}
    public class StrategyNested extends DeploymentStrategyFluent> implements Nested{

        private final DeploymentStrategyBuilder builder = new DeploymentStrategyBuilder(this);
    
            public N and(){
            return (N) DeploymentTemplateFluent.this.withStrategy(builder.build());
        }
            public N endStrategy(){
            return and();
        }
    
}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy