me.snowdrop.istio.adapter.kubernetesenv.KubernetesenvFluentImpl Maven / Gradle / Ivy
package me.snowdrop.istio.adapter.kubernetesenv;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Long;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
public class KubernetesenvFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements KubernetesenvFluent{
private Long cacheRefreshDuration;
private String clusterDomainName;
private String fullyQualifiedIstioIngressServiceName;
private String kubeconfigPath;
private Boolean lookupIngressSourceAndOriginValues;
private String podLabelForIstioComponentService;
private String podLabelForService;
public KubernetesenvFluentImpl(){
}
public KubernetesenvFluentImpl(Kubernetesenv instance){
this.withCacheRefreshDuration(instance.getCacheRefreshDuration());
this.withClusterDomainName(instance.getClusterDomainName());
this.withFullyQualifiedIstioIngressServiceName(instance.getFullyQualifiedIstioIngressServiceName());
this.withKubeconfigPath(instance.getKubeconfigPath());
this.withLookupIngressSourceAndOriginValues(instance.getLookupIngressSourceAndOriginValues());
this.withPodLabelForIstioComponentService(instance.getPodLabelForIstioComponentService());
this.withPodLabelForService(instance.getPodLabelForService());
}
public Long getCacheRefreshDuration(){
return this.cacheRefreshDuration;
}
public A withCacheRefreshDuration(Long cacheRefreshDuration){
this.cacheRefreshDuration=cacheRefreshDuration; return (A) this;
}
public Boolean hasCacheRefreshDuration(){
return this.cacheRefreshDuration != null;
}
public A withNewCacheRefreshDuration(String arg1){
return (A)withCacheRefreshDuration(new Long(arg1));
}
public A withNewCacheRefreshDuration(long arg1){
return (A)withCacheRefreshDuration(new Long(arg1));
}
public String getClusterDomainName(){
return this.clusterDomainName;
}
public A withClusterDomainName(String clusterDomainName){
this.clusterDomainName=clusterDomainName; return (A) this;
}
public Boolean hasClusterDomainName(){
return this.clusterDomainName != null;
}
public String getFullyQualifiedIstioIngressServiceName(){
return this.fullyQualifiedIstioIngressServiceName;
}
public A withFullyQualifiedIstioIngressServiceName(String fullyQualifiedIstioIngressServiceName){
this.fullyQualifiedIstioIngressServiceName=fullyQualifiedIstioIngressServiceName; return (A) this;
}
public Boolean hasFullyQualifiedIstioIngressServiceName(){
return this.fullyQualifiedIstioIngressServiceName != 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 isLookupIngressSourceAndOriginValues(){
return this.lookupIngressSourceAndOriginValues;
}
public A withLookupIngressSourceAndOriginValues(Boolean lookupIngressSourceAndOriginValues){
this.lookupIngressSourceAndOriginValues=lookupIngressSourceAndOriginValues; return (A) this;
}
public Boolean hasLookupIngressSourceAndOriginValues(){
return this.lookupIngressSourceAndOriginValues != null;
}
public A withNewLookupIngressSourceAndOriginValues(boolean arg1){
return (A)withLookupIngressSourceAndOriginValues(new Boolean(arg1));
}
public A withNewLookupIngressSourceAndOriginValues(String arg1){
return (A)withLookupIngressSourceAndOriginValues(new Boolean(arg1));
}
public String getPodLabelForIstioComponentService(){
return this.podLabelForIstioComponentService;
}
public A withPodLabelForIstioComponentService(String podLabelForIstioComponentService){
this.podLabelForIstioComponentService=podLabelForIstioComponentService; return (A) this;
}
public Boolean hasPodLabelForIstioComponentService(){
return this.podLabelForIstioComponentService != null;
}
public String getPodLabelForService(){
return this.podLabelForService;
}
public A withPodLabelForService(String podLabelForService){
this.podLabelForService=podLabelForService; return (A) this;
}
public Boolean hasPodLabelForService(){
return this.podLabelForService != 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;
KubernetesenvFluentImpl that = (KubernetesenvFluentImpl) o;
if (cacheRefreshDuration != null ? !cacheRefreshDuration.equals(that.cacheRefreshDuration) :that.cacheRefreshDuration != null) return false;
if (clusterDomainName != null ? !clusterDomainName.equals(that.clusterDomainName) :that.clusterDomainName != null) return false;
if (fullyQualifiedIstioIngressServiceName != null ? !fullyQualifiedIstioIngressServiceName.equals(that.fullyQualifiedIstioIngressServiceName) :that.fullyQualifiedIstioIngressServiceName != null) return false;
if (kubeconfigPath != null ? !kubeconfigPath.equals(that.kubeconfigPath) :that.kubeconfigPath != null) return false;
if (lookupIngressSourceAndOriginValues != null ? !lookupIngressSourceAndOriginValues.equals(that.lookupIngressSourceAndOriginValues) :that.lookupIngressSourceAndOriginValues != null) return false;
if (podLabelForIstioComponentService != null ? !podLabelForIstioComponentService.equals(that.podLabelForIstioComponentService) :that.podLabelForIstioComponentService != null) return false;
if (podLabelForService != null ? !podLabelForService.equals(that.podLabelForService) :that.podLabelForService != null) return false;
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy