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

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.Fluent;

public class DeploymentTriggerPolicyFluent> implements Fluent{

    private DeploymentTriggerImageChangeParams imageChangeParams ;
    private String type ;
    private Map additionalProperties  = new HashMap();

    public DeploymentTriggerImageChangeParams getImageChangeParams(){
    return this.imageChangeParams;
    }
    public T withImageChangeParams(DeploymentTriggerImageChangeParams imageChangeParams){
    this.imageChangeParams=imageChangeParams; return (T) this;
    }
    public String getType(){
    return this.type;
    }
    public T withType(String type){
    this.type=type; 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 ImageChangeParamsNested withNewImageChangeParams(){
    return new ImageChangeParamsNested();
    }
    public T addToAdditionalProperties(String key, Object value){
    if(key != null && value != null) {this.additionalProperties.put(key, value);} 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 - 2025 Weber Informatics LLC | Privacy Policy