me.snowdrop.istio.mixer.adapter.kubernetesenv.KubernetesenvSpecFluentImpl Maven / Gradle / Ivy
package me.snowdrop.istio.mixer.adapter.kubernetesenv;
import java.lang.Integer;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
public class KubernetesenvSpecFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements KubernetesenvSpecFluent{
private Integer cacheRefreshDuration;
private String clusterRegistriesNamespace;
private String kubeconfigPath;
public KubernetesenvSpecFluentImpl(){
}
public KubernetesenvSpecFluentImpl(KubernetesenvSpec instance){
this.withCacheRefreshDuration(instance.getCacheRefreshDuration());
this.withClusterRegistriesNamespace(instance.getClusterRegistriesNamespace());
this.withKubeconfigPath(instance.getKubeconfigPath());
}
public Integer getCacheRefreshDuration(){
return this.cacheRefreshDuration;
}
public A withCacheRefreshDuration(Integer cacheRefreshDuration){
this.cacheRefreshDuration=cacheRefreshDuration; return (A) this;
}
public Boolean hasCacheRefreshDuration(){
return this.cacheRefreshDuration != null;
}
public A withNewCacheRefreshDuration(String arg1){
return (A)withCacheRefreshDuration(new Integer(arg1));
}
public A withNewCacheRefreshDuration(int arg1){
return (A)withCacheRefreshDuration(new Integer(arg1));
}
public String getClusterRegistriesNamespace(){
return this.clusterRegistriesNamespace;
}
public A withClusterRegistriesNamespace(String clusterRegistriesNamespace){
this.clusterRegistriesNamespace=clusterRegistriesNamespace; return (A) this;
}
public Boolean hasClusterRegistriesNamespace(){
return this.clusterRegistriesNamespace != null;
}
public String getKubeconfigPath(){
return this.kubeconfigPath;
}
public A withKubeconfigPath(String kubeconfigPath){
this.kubeconfigPath=kubeconfigPath; return (A) this;
}
public Boolean hasKubeconfigPath(){
return this.kubeconfigPath != null;
}
public boolean equals(Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
KubernetesenvSpecFluentImpl that = (KubernetesenvSpecFluentImpl) o;
if (cacheRefreshDuration != null ? !cacheRefreshDuration.equals(that.cacheRefreshDuration) :that.cacheRefreshDuration != null) return false;
if (clusterRegistriesNamespace != null ? !clusterRegistriesNamespace.equals(that.clusterRegistriesNamespace) :that.clusterRegistriesNamespace != null) return false;
if (kubeconfigPath != null ? !kubeconfigPath.equals(that.kubeconfigPath) :that.kubeconfigPath != null) return false;
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy