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

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

package io.fabric8.kubernetes.api.model;

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

public class LivenessProbeFluent> implements Fluent{

    private ExecAction exec ;
    private HTTPGetAction httpGet ;
    private Integer initialDelaySeconds ;
    private TCPSocketAction tcpSocket ;
    private Integer timeoutSeconds ;
    private Map additionalProperties  = new HashMap();

    public ExecAction getExec(){
    return this.exec;
    }
    public T withExec(ExecAction exec){
    this.exec=exec; return (T) this;
    }
    public HTTPGetAction getHttpGet(){
    return this.httpGet;
    }
    public T withHttpGet(HTTPGetAction httpGet){
    this.httpGet=httpGet; return (T) this;
    }
    public Integer getInitialDelaySeconds(){
    return this.initialDelaySeconds;
    }
    public T withInitialDelaySeconds(Integer initialDelaySeconds){
    this.initialDelaySeconds=initialDelaySeconds; return (T) this;
    }
    public TCPSocketAction getTcpSocket(){
    return this.tcpSocket;
    }
    public T withTcpSocket(TCPSocketAction tcpSocket){
    this.tcpSocket=tcpSocket; return (T) this;
    }
    public Integer getTimeoutSeconds(){
    return this.timeoutSeconds;
    }
    public T withTimeoutSeconds(Integer timeoutSeconds){
    this.timeoutSeconds=timeoutSeconds; 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 ExecNested withNewExec(){
    return new ExecNested();
    }
    public HttpGetNested withNewHttpGet(){
    return new HttpGetNested();
    }
    public TcpSocketNested withNewTcpSocket(){
    return new TcpSocketNested();
    }
    public T addToAdditionalProperties(String key, Object value){
    if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
    }

    public class ExecNested extends ExecActionFluent> implements Nested{

        private final ExecActionBuilder builder = new ExecActionBuilder(this);
    
            public N endExec(){
            return and();
        }
            public N and(){
            return (N) LivenessProbeFluent.this.withExec(builder.build());
        }
    
}
    public class HttpGetNested extends HTTPGetActionFluent> implements Nested{

        private final HTTPGetActionBuilder builder = new HTTPGetActionBuilder(this);
    
            public N and(){
            return (N) LivenessProbeFluent.this.withHttpGet(builder.build());
        }
            public N endHttpGet(){
            return and();
        }
    
}
    public class TcpSocketNested extends TCPSocketActionFluent> implements Nested{

        private final TCPSocketActionBuilder builder = new TCPSocketActionBuilder(this);
    
            public N endTcpSocket(){
            return and();
        }
            public N and(){
            return (N) LivenessProbeFluent.this.withTcpSocket(builder.build());
        }
    
}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy