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

io.fabric8.openshift.api.model.RouteSpecFluent 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.common.Fluent;

public class RouteSpecFluent> implements Fluent{

    private String host ;
    private String path ;
    private TLSConfig tls ;
    private ObjectReference to ;
    private Map additionalProperties  = new HashMap();

    public String getHost(){
    return this.host;
    }
    public T withHost(String host){
    this.host=host; return (T) this;
    }
    public String getPath(){
    return this.path;
    }
    public T withPath(String path){
    this.path=path; return (T) this;
    }
    public TLSConfig getTls(){
    return this.tls;
    }
    public T withTls(TLSConfig tls){
    this.tls=tls; return (T) this;
    }
    public ObjectReference getTo(){
    return this.to;
    }
    public T withTo(ObjectReference to){
    this.to=to; 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 TlsNested withNewTls(){
    return new TlsNested();
    }
    public T withNewTls(String caCertificate, String certificate, String destinationCACertificate, String key, String termination){
    return withTls(new TLSConfig(caCertificate, certificate, destinationCACertificate, key, termination));
    }
    public T addToAdditionalProperties(String key, Object value){
    if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
    }

    public class TlsNested extends TLSConfigFluent> implements Nested{

        private final TLSConfigBuilder builder = new TLSConfigBuilder(this);
    
            public N and(){
            return (N) RouteSpecFluent.this.withTls(builder.build());
        }
            public N endTls(){
            return and();
        }
    
}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy