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

io.fabric8.kubernetes.api.model.EnvVarFluent Maven / Gradle / Ivy

The newest version!
package io.fabric8.kubernetes.api.model;

import java.util.HashMap;
import java.util.Map;
import io.fabric8.common.Nested;
import io.fabric8.common.VisitableBuilder;
import io.fabric8.common.Fluent;
import io.fabric8.common.BaseFluent;
import io.fabric8.common.Visitable;

public class EnvVarFluent> extends BaseFluent implements Fluent{

     String name;     String value;     VisitableBuilder valueFrom;     Map additionalProperties = new HashMap();

    public String getName(){
    return this.name;
    }
    public T withName( String name){
    this.name=name; return (T) this;
    }
    public String getValue(){
    return this.value;
    }
    public T withValue( String value){
    this.value=value; return (T) this;
    }
    public EnvVarSource getValueFrom(){
    return this.valueFrom!=null?this.valueFrom.build():null;
    }
    public T withValueFrom( EnvVarSource valueFrom){
    if (valueFrom!=null){ this.valueFrom= new EnvVarSourceBuilder(valueFrom); _visitables.add(this.valueFrom);} return (T) this;
    }
    public ValueFromNested withNewValueFrom(){
    return new ValueFromNested();
    }
    public ValueFromNested withNewValueFromLike( EnvVarSource item){
    return new ValueFromNested(item);
    }
    public ValueFromNested editValueFrom(){
    return withNewValueFromLike(getValueFrom());
    }
    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 ValueFromNested extends EnvVarSourceFluent> implements Nested{

        private final EnvVarSourceBuilder builder;
    
             ValueFromNested (){
        this.builder = new EnvVarSourceBuilder(this);
        }
             ValueFromNested ( EnvVarSource item){
        this.builder = new EnvVarSourceBuilder(this, item);
        }
    
            public N and(){
            return (N) EnvVarFluent.this.withValueFrom(builder.build());
        }
            public N endValueFrom(){
            return and();
        }
    
}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy