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

annotations.io.fabric8.openshift.api.model.ImageChangeTriggerFluent Maven / Gradle / Ivy

package io.fabric8.openshift.api.model;

import java.util.HashMap;
import java.util.Map;
import io.fabric8.kubernetes.api.model.base.ObjectReference;
import io.fabric8.common.Nested;
import io.fabric8.kubernetes.api.model.base.ObjectReferenceBuilder;
import io.fabric8.common.Fluent;
import io.fabric8.kubernetes.api.model.base.ObjectReferenceFluent;

public class ImageChangeTriggerFluent> implements Fluent{

    private ObjectReference from ;
    private String image ;
    private String lastTriggeredImageID ;
    private String tag ;
    private Map additionalProperties  = new HashMap();

    public ObjectReference getFrom(){
    return this.from;
    }
    public T withFrom(ObjectReference from){
    this.from=from; return (T) this;
    }
    public String getImage(){
    return this.image;
    }
    public T withImage(String image){
    this.image=image; return (T) this;
    }
    public String getLastTriggeredImageID(){
    return this.lastTriggeredImageID;
    }
    public T withLastTriggeredImageID(String lastTriggeredImageID){
    this.lastTriggeredImageID=lastTriggeredImageID; return (T) this;
    }
    public String getTag(){
    return this.tag;
    }
    public T withTag(String tag){
    this.tag=tag; 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 FromNested withNewFrom(){
    return new FromNested();
    }
    public T addToAdditionalProperties(String key, Object value){
    if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
    }

    public class FromNested extends ObjectReferenceFluent> implements Nested{

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


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy