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.Builder;
import io.fabric8.common.Fluent;
import io.fabric8.common.BaseFluent;
import io.fabric8.common.Visitable;
public class RecreateDeploymentStrategyParamsFluent> extends BaseFluent implements Fluent{
LifecycleHookBuilder post; LifecycleHookBuilder pre; Map additionalProperties = new HashMap();
public LifecycleHook getPost(){
return this.post!=null?this.post.build():null;
}
public T withPost( LifecycleHook post){
if (post!=null){ this.post= new LifecycleHookBuilder(post); _visitables.add(this.post);} return (T) this;
}
public PostNested withNewPost(){
return new PostNested();
}
public LifecycleHook getPre(){
return this.pre!=null?this.pre.build():null;
}
public T withPre( LifecycleHook pre){
if (pre!=null){ this.pre= new LifecycleHookBuilder(pre); _visitables.add(this.pre);} return (T) this;
}
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 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 PostNested extends LifecycleHookFluent> implements Nested{
private final LifecycleHookBuilder builder = new LifecycleHookBuilder(this);
public N and(){
return (N) RecreateDeploymentStrategyParamsFluent.this.withPost(builder.build());
}
public N endPost(){
return and();
}
}
public class PreNested extends LifecycleHookFluent> implements Nested{
private final LifecycleHookBuilder builder = new LifecycleHookBuilder(this);
public N and(){
return (N) RecreateDeploymentStrategyParamsFluent.this.withPre(builder.build());
}
public N endPre(){
return and();
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy