All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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 me.snowdrop.istio.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
import java.lang.Double;

public class DelayFluentImpl> extends me.snowdrop.istio.api.builder.BaseFluent implements DelayFluent{

    private Object httpDelayType;
    private String overrideHeaderName;
    private Double percent;

    public DelayFluentImpl(){
    }
    public DelayFluentImpl(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 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