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.Builder;
import io.fabric8.common.Fluent;
import io.fabric8.common.BaseFluent;
import io.fabric8.common.Visitable;
public class LifecycleHookFluent> extends BaseFluent implements Fluent{
ExecNewPodHookBuilder execNewPod; String failurePolicy; Map additionalProperties = new HashMap();
public ExecNewPodHook getExecNewPod(){
return this.execNewPod!=null?this.execNewPod.build():null;
}
public T withExecNewPod( ExecNewPodHook execNewPod){
if (execNewPod!=null){ this.execNewPod= new ExecNewPodHookBuilder(execNewPod); _visitables.add(this.execNewPod);} return (T) this;
}
public ExecNewPodNested withNewExecNewPod(){
return new ExecNewPodNested();
}
public String getFailurePolicy(){
return this.failurePolicy;
}
public T withFailurePolicy( String failurePolicy){
this.failurePolicy=failurePolicy; return (T) this;
}
public T addToAdditionalProperties( String key, Object value){
if(key != null && value != null) {this.additionalProperties.put(key, value);} 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 class ExecNewPodNested extends ExecNewPodHookFluent> implements Nested{
private final ExecNewPodHookBuilder builder = new ExecNewPodHookBuilder(this);
public N and(){
return (N) LifecycleHookFluent.this.withExecNewPod(builder.build());
}
public N endExecNewPod(){
return and();
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy