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

io.fabric8.openshift.api.model.DeploymentTriggerImageChangeParamsFluent Maven / Gradle / Ivy

There is a newer version: 0.0.54
Show newest version
package io.fabric8.openshift.api.model;

import io.fabric8.kubernetes.api.model.ObjectReference;
import java.util.HashMap;
import java.util.Map;
import java.util.List;
import java.util.ArrayList;
import io.fabric8.common.Nested;
import io.fabric8.common.Builder;
import io.fabric8.kubernetes.api.model.ObjectReferenceFluent;
import io.fabric8.common.Fluent;
import io.fabric8.common.BaseFluent;
import io.fabric8.common.Visitable;
import io.fabric8.kubernetes.api.model.ObjectReferenceBuilder;

public class DeploymentTriggerImageChangeParamsFluent> extends BaseFluent implements Fluent{

     Boolean automatic;     List containerNames = new ArrayList();     ObjectReferenceBuilder from;     String lastTriggeredImage;     Map additionalProperties = new HashMap();

    public Boolean isAutomatic(){
    return this.automatic;
    }
    public T withAutomatic( Boolean automatic){
    this.automatic=automatic; return (T) this;
    }
    public T addToContainerNames( String item){
    if (item != null) {this.containerNames.add(item);} return (T)this;
    }
    public List getContainerNames(){
    return this.containerNames;
    }
    public T withContainerNames( List containerNames){
    this.containerNames.clear();if (containerNames != null) {for (String item : containerNames){this.addToContainerNames(item);}} return (T) this;
    }
    public ObjectReference getFrom(){
    return this.from!=null?this.from.build():null;
    }
    public T withFrom( ObjectReference from){
    if (from!=null){ this.from= new ObjectReferenceBuilder(from); _visitables.add(this.from);} return (T) this;
    }
    public FromNested withNewFrom(){
    return new FromNested();
    }
    public String getLastTriggeredImage(){
    return this.lastTriggeredImage;
    }
    public T withLastTriggeredImage( String lastTriggeredImage){
    this.lastTriggeredImage=lastTriggeredImage; 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 FromNested extends ObjectReferenceFluent> implements Nested{

        private final ObjectReferenceBuilder builder = new ObjectReferenceBuilder(this);
    
            public N and(){
            return (N) DeploymentTriggerImageChangeParamsFluent.this.withFrom(builder.build());
        }
            public N endFrom(){
            return and();
        }
    
}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy