me.snowdrop.istio.api.model.v1.routing.DelayFluentImpl 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 DelayFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements me.snowdrop.istio.api.model.v1.routing.DelayFluent{
private Object httpDelayType;
private String overrideHeaderName;
private Double percent;
public DelayFluentImpl(){
}
public DelayFluentImpl(me.snowdrop.istio.api.model.v1.routing.Delay instance){
this.withHttpDelayType(instance.getHttpDelayType());
this.withOverrideHeaderName(instance.getOverrideHeaderName());
this.withPercent(instance.getPercent());
}
public Object getHttpDelayType(){
return this.httpDelayType;
}
public A withHttpDelayType(Object httpDelayType){
this.httpDelayType=httpDelayType; return (A) this;
}
public Boolean hasHttpDelayType(){
return this.httpDelayType != 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;
DelayFluentImpl that = (DelayFluentImpl) o;
if (httpDelayType != null &&httpDelayType != this ? !httpDelayType.equals(that.httpDelayType) :that.httpDelayType != null &&httpDelayType != 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