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 io.fabric8.kubernetes.api.model.ResourceRequirements;
import java.util.HashMap;
import java.util.Map;
import io.fabric8.common.Nested;
import io.fabric8.kubernetes.api.model.ResourceRequirementsBuilder;
import io.fabric8.common.Fluent;
import io.fabric8.kubernetes.api.model.ResourceRequirementsFluent;

public class DeploymentStrategyFluent> implements Fluent{

    private CustomDeploymentStrategyParams customParams ;
    private RecreateDeploymentStrategyParams recreateParams ;
    private ResourceRequirements resources ;
    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 ResourceRequirements getResources(){
    return this.resources;
    }
    public T withResources(ResourceRequirements resources){
    this.resources=resources; 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 withNewCustomParams(){
    return new CustomParamsNested();
    }
    public RecreateParamsNested withNewRecreateParams(){
    return new RecreateParamsNested();
    }
    public ResourcesNested withNewResources(){
    return new ResourcesNested();
    }
    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 endCustomParams(){
            return and();
        }
    
}
    public class RecreateParamsNested extends RecreateDeploymentStrategyParamsFluent> implements Nested{

        private final RecreateDeploymentStrategyParamsBuilder builder = new RecreateDeploymentStrategyParamsBuilder(this);
    
            public N endRecreateParams(){
            return and();
        }
            public N and(){
            return (N) DeploymentStrategyFluent.this.withRecreateParams(builder.build());
        }
    
}
    public class ResourcesNested extends ResourceRequirementsFluent> implements Nested{

        private final ResourceRequirementsBuilder builder = new ResourceRequirementsBuilder(this);
    
            public N and(){
            return (N) DeploymentStrategyFluent.this.withResources(builder.build());
        }
            public N endResources(){
            return and();
        }
    
}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy