io.fabric8.openshift.api.model.DeploymentTriggerPolicyFluent 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 DeploymentTriggerPolicyFluent> extends BaseFluent implements Fluent{
DeploymentTriggerImageChangeParamsBuilder imageChangeParams; String type; Map additionalProperties = new HashMap();
public DeploymentTriggerImageChangeParams getImageChangeParams(){
return this.imageChangeParams!=null?this.imageChangeParams.build():null;
}
public T withImageChangeParams( DeploymentTriggerImageChangeParams imageChangeParams){
if (imageChangeParams!=null){ this.imageChangeParams= new DeploymentTriggerImageChangeParamsBuilder(imageChangeParams); _visitables.add(this.imageChangeParams);} return (T) this;
}
public ImageChangeParamsNested withNewImageChangeParams(){
return new ImageChangeParamsNested();
}
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 ImageChangeParamsNested extends DeploymentTriggerImageChangeParamsFluent> implements Nested{
private final DeploymentTriggerImageChangeParamsBuilder builder = new DeploymentTriggerImageChangeParamsBuilder(this);
public N and(){
return (N) DeploymentTriggerPolicyFluent.this.withImageChangeParams(builder.build());
}
public N endImageChangeParams(){
return and();
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy