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

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

    private ExecNewPodHook execNewPod ;
    private String failurePolicy ;
    private Map additionalProperties  = new HashMap();

    public ExecNewPodHook getExecNewPod(){
    return this.execNewPod;
    }
    public T withExecNewPod(ExecNewPodHook execNewPod){
    this.execNewPod=execNewPod; return (T) this;
    }
    public String getFailurePolicy(){
    return this.failurePolicy;
    }
    public T withFailurePolicy(String failurePolicy){
    this.failurePolicy=failurePolicy; 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 ExecNewPodNested withNewExecNewPod(){
    return new ExecNewPodNested();
    }
    public T addToAdditionalProperties(String key, Object value){
    if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
    }

    public class ExecNewPodNested extends ExecNewPodHookFluent> implements Nested{

        private final ExecNewPodHookBuilder builder = new ExecNewPodHookBuilder(this);
    
            public N endExecNewPod(){
            return and();
        }
            public N and(){
            return (N) LifecycleHookFluent.this.withExecNewPod(builder.build());
        }
    
}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy