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

io.fabric8.openshift.api.model.RecreateDeploymentStrategyParamsFluent 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 RecreateDeploymentStrategyParamsFluent> implements Fluent{

    private LifecycleHook post ;
    private LifecycleHook pre ;
    private Map additionalProperties  = new HashMap();

    public LifecycleHook getPost(){
    return this.post;
    }
    public T withPost(LifecycleHook post){
    this.post=post; return (T) this;
    }
    public LifecycleHook getPre(){
    return this.pre;
    }
    public T withPre(LifecycleHook pre){
    this.pre=pre; 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 PostNested withNewPost(){
    return new PostNested();
    }
    public PreNested withNewPre(){
    return new PreNested();
    }
    public T addToAdditionalProperties(String key, Object value){
    if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
    }

    public class PostNested extends LifecycleHookFluent> implements Nested{

        private final LifecycleHookBuilder builder = new LifecycleHookBuilder(this);
    
            public N endPost(){
            return and();
        }
            public N and(){
            return (N) RecreateDeploymentStrategyParamsFluent.this.withPost(builder.build());
        }
    
}
    public class PreNested extends LifecycleHookFluent> implements Nested{

        private final LifecycleHookBuilder builder = new LifecycleHookBuilder(this);
    
            public N endPre(){
            return and();
        }
            public N and(){
            return (N) RecreateDeploymentStrategyParamsFluent.this.withPre(builder.build());
        }
    
}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy