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

me.snowdrop.istio.api.networking.v1alpha3.TcpKeepaliveBuilder Maven / Gradle / Ivy

package me.snowdrop.istio.api.networking.v1alpha3;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
import javax.validation.Validator;

public class TcpKeepaliveBuilder extends TcpKeepaliveFluentImpl implements VisitableBuilder{

    TcpKeepaliveFluent fluent;
    Boolean validationEnabled;
    Validator validator;

    public TcpKeepaliveBuilder(){
            this(true);
    }
    public TcpKeepaliveBuilder(Boolean validationEnabled){
            this(new TcpKeepalive(), validationEnabled);
    }
    public TcpKeepaliveBuilder(TcpKeepaliveFluent fluent){
            this(fluent, true);
    }
    public TcpKeepaliveBuilder(TcpKeepaliveFluent fluent,Boolean validationEnabled){
            this(fluent, new TcpKeepalive(), validationEnabled);
    }
    public TcpKeepaliveBuilder(TcpKeepaliveFluent fluent,TcpKeepalive instance){
            this(fluent, instance, true);
    }
    public TcpKeepaliveBuilder(TcpKeepaliveFluent fluent,TcpKeepalive instance,Boolean validationEnabled){
            this.fluent = fluent; 
            fluent.withInterval(instance.getInterval()); 
            fluent.withProbes(instance.getProbes()); 
            fluent.withTime(instance.getTime()); 
            this.validationEnabled = validationEnabled; 
    }
    public TcpKeepaliveBuilder(TcpKeepalive instance){
            this(instance,true);
    }
    public TcpKeepaliveBuilder(TcpKeepalive instance,Boolean validationEnabled){
            this.fluent = this; 
            this.withInterval(instance.getInterval()); 
            this.withProbes(instance.getProbes()); 
            this.withTime(instance.getTime()); 
            this.validationEnabled = validationEnabled; 
    }
    public TcpKeepaliveBuilder(Validator validator){
            this(new TcpKeepalive(), true);
    }
    public TcpKeepaliveBuilder(TcpKeepaliveFluent fluent,TcpKeepalive instance,Validator validator){
            this.fluent = fluent; 
            fluent.withInterval(instance.getInterval()); 
            fluent.withProbes(instance.getProbes()); 
            fluent.withTime(instance.getTime()); 
            this.validator = validator;
            this.validationEnabled = validator != null; 
    }
    public TcpKeepaliveBuilder(TcpKeepalive instance,Validator validator){
            this.fluent = this; 
            this.withInterval(instance.getInterval()); 
            this.withProbes(instance.getProbes()); 
            this.withTime(instance.getTime()); 
            this.validator = validator; 
            this.validationEnabled = validator != null; 
    }

    public TcpKeepalive build(){
            TcpKeepalive buildable = new TcpKeepalive(fluent.getInterval(),fluent.getProbes(),fluent.getTime());
            if (validationEnabled) {io.fabric8.kubernetes.api.builder.ValidationUtils.validate(buildable);}
            return buildable;
    }

    public boolean equals(Object o){
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            if (!super.equals(o)) return false;
            TcpKeepaliveBuilder that = (TcpKeepaliveBuilder) o;
            if (fluent != null &&fluent != this ? !fluent.equals(that.fluent) :that.fluent != null &&fluent != this ) return false;

            if (validationEnabled != null ? !validationEnabled.equals(that.validationEnabled) :that.validationEnabled != null) return false;
            return true;
    }




}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy