me.snowdrop.istio.api.model.v1.networking.DelayFluentImpl Maven / Gradle / Ivy
package me.snowdrop.istio.api.model.v1.networking;
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 DelayFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements DelayFluent{
private Object httpDelayType;
private Integer percent;
public DelayFluentImpl(){
}
public DelayFluentImpl(Delay instance){
this.withHttpDelayType(instance.getHttpDelayType());
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 Integer getPercent(){
return this.percent;
}
public A withPercent(Integer percent){
this.percent=percent; return (A) this;
}
public Boolean hasPercent(){
return this.percent != null;
}
public A withNewPercent(int arg1){
return (A)withPercent(new Integer(arg1));
}
public A withNewPercent(String arg1){
return (A)withPercent(new Integer(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 (percent != null ? !percent.equals(that.percent) :that.percent != null) return false;
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy