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

io.fabric8.openshift.api.model.DeploymentStrategyFluent Maven / Gradle / Ivy

package io.fabric8.openshift.api.model;

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

public class DeploymentStrategyFluent> implements Fluent{

    private CustomDeploymentStrategyParams customParams ;
    private RecreateDeploymentStrategyParams recreateParams ;
    private String type ;
    private Map additionalProperties  = new HashMap();

    public CustomDeploymentStrategyParams getCustomParams(){
    return this.customParams;
    }
    public T withCustomParams(CustomDeploymentStrategyParams customParams){
    this.customParams=customParams; return (T) this;
    }
    public RecreateDeploymentStrategyParams getRecreateParams(){
    return this.recreateParams;
    }
    public T withRecreateParams(RecreateDeploymentStrategyParams recreateParams){
    this.recreateParams=recreateParams; 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 CustomParamsNested withNewCustomParam(){
    return new CustomParamsNested();
    }
    public RecreateParamsNested withNewRecreateParam(){
    return new RecreateParamsNested();
    }
    public T addToAdditionalProperties(String key, Object value){
    if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
    }

    public class CustomParamsNested extends CustomDeploymentStrategyParamsFluent> implements Nested{

        private final CustomDeploymentStrategyParamsBuilder builder = new CustomDeploymentStrategyParamsBuilder(this);
    
            public N and(){
            return (N) DeploymentStrategyFluent.this.withCustomParams(builder.build());
        }
            public N endCustomParam(){
            return and();
        }
    
}
    public class RecreateParamsNested extends RecreateDeploymentStrategyParamsFluent> implements Nested{

        private final RecreateDeploymentStrategyParamsBuilder builder = new RecreateDeploymentStrategyParamsBuilder(this);
    
            public N endRecreateParam(){
            return and();
        }
            public N and(){
            return (N) DeploymentStrategyFluent.this.withRecreateParams(builder.build());
        }
    
}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy