me.snowdrop.istio.api.model.v1.routing.AbortFluentImpl Maven / Gradle / Ivy
package me.snowdrop.istio.api.model.v1.routing;
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;
import java.lang.Double;
public class AbortFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements me.snowdrop.istio.api.model.v1.routing.AbortFluent{
private Object errorType;
private String overrideHeaderName;
private Double percent;
public AbortFluentImpl(){
}
public AbortFluentImpl(me.snowdrop.istio.api.model.v1.routing.Abort instance){
this.withErrorType(instance.getErrorType());
this.withOverrideHeaderName(instance.getOverrideHeaderName());
this.withPercent(instance.getPercent());
}
public Object getErrorType(){
return this.errorType;
}
public A withErrorType(Object errorType){
this.errorType=errorType; return (A) this;
}
public Boolean hasErrorType(){
return this.errorType != null;
}
public String getOverrideHeaderName(){
return this.overrideHeaderName;
}
public A withOverrideHeaderName(String overrideHeaderName){
this.overrideHeaderName=overrideHeaderName; return (A) this;
}
public Boolean hasOverrideHeaderName(){
return this.overrideHeaderName != null;
}
public Double getPercent(){
return this.percent;
}
public A withPercent(Double percent){
this.percent=percent; return (A) this;
}
public Boolean hasPercent(){
return this.percent != null;
}
public A withNewPercent(double arg1){
return (A)withPercent(new Double(arg1));
}
public A withNewPercent(String arg1){
return (A)withPercent(new Double(arg1));
}
public boolean equals(Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
AbortFluentImpl that = (AbortFluentImpl) o;
if (errorType != null &&errorType != this ? !errorType.equals(that.errorType) :that.errorType != null &&errorType != this ) return false;
if (overrideHeaderName != null ? !overrideHeaderName.equals(that.overrideHeaderName) :that.overrideHeaderName != null) return false;
if (percent != null ? !percent.equals(that.percent) :that.percent != null) return false;
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy