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

io.ap4k.testing.config.KubernetesIntegrationTestConfigFluentImpl Maven / Gradle / Ivy

package io.ap4k.testing.config;

import io.ap4k.deps.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.Boolean;

public class KubernetesIntegrationTestConfigFluentImpl> extends io.ap4k.deps.kubernetes.api.builder.BaseFluent implements KubernetesIntegrationTestConfigFluent{

    private boolean deployEnabled = true;
    private boolean buildEnabled = true;
    private long readinessTimeout = 300000;

    public KubernetesIntegrationTestConfigFluentImpl(){
    }
    public KubernetesIntegrationTestConfigFluentImpl(KubernetesIntegrationTestConfig instance){
            this.withDeployEnabled(instance.isDeployEnabled()); 
            this.withBuildEnabled(instance.isBuildEnabled()); 
            this.withReadinessTimeout(instance.getReadinessTimeout()); 
    }

    public boolean isDeployEnabled(){
            return this.deployEnabled;
    }

    public A withDeployEnabled(boolean deployEnabled){
            this.deployEnabled=deployEnabled; return (A) this;
    }

    public Boolean hasDeployEnabled(){
            return true;
    }

    public boolean isBuildEnabled(){
            return this.buildEnabled;
    }

    public A withBuildEnabled(boolean buildEnabled){
            this.buildEnabled=buildEnabled; return (A) this;
    }

    public Boolean hasBuildEnabled(){
            return true;
    }

    public long getReadinessTimeout(){
            return this.readinessTimeout;
    }

    public A withReadinessTimeout(long readinessTimeout){
            this.readinessTimeout=readinessTimeout; return (A) this;
    }

    public Boolean hasReadinessTimeout(){
            return true;
    }

    public boolean equals(Object o){
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            KubernetesIntegrationTestConfigFluentImpl that = (KubernetesIntegrationTestConfigFluentImpl) o;
            if (deployEnabled != that.deployEnabled) return false;
            if (buildEnabled != that.buildEnabled) return false;
            if (readinessTimeout != that.readinessTimeout) return false;
            return true;
    }




}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy