io.fabric8.openshift.api.model.DeploymentCauseFluent 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 DeploymentCauseFluent> extends BaseFluent implements Fluent{
DeploymentCauseImageTriggerBuilder imageTrigger; String type; Map additionalProperties = new HashMap();
public DeploymentCauseImageTrigger getImageTrigger(){
return this.imageTrigger!=null?this.imageTrigger.build():null;
}
public T withImageTrigger( DeploymentCauseImageTrigger imageTrigger){
if (imageTrigger!=null){ this.imageTrigger= new DeploymentCauseImageTriggerBuilder(imageTrigger); _visitables.add(this.imageTrigger);} return (T) this;
}
public ImageTriggerNested withNewImageTrigger(){
return new ImageTriggerNested();
}
public String getType(){
return this.type;
}
public T withType( String type){
this.type=type; 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 ImageTriggerNested extends DeploymentCauseImageTriggerFluent> implements Nested{
private final DeploymentCauseImageTriggerBuilder builder = new DeploymentCauseImageTriggerBuilder(this);
public N endImageTrigger(){
return and();
}
public N and(){
return (N) DeploymentCauseFluent.this.withImageTrigger(builder.build());
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy