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

me.snowdrop.istio.api.model.v1.mixer.QuotaParamsFluentImpl Maven / Gradle / Ivy

package me.snowdrop.istio.api.model.v1.mixer;

import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.lang.Long;
import me.snowdrop.istio.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.Boolean;

public class QuotaParamsFluentImpl> extends me.snowdrop.istio.api.builder.BaseFluent implements QuotaParamsFluent{

    private Long amount;
    private Boolean bestEffort;

    public QuotaParamsFluentImpl(){
    }
    public QuotaParamsFluentImpl(QuotaParams instance){
            this.withAmount(instance.getAmount()); 
            this.withBestEffort(instance.getBestEffort()); 
    }

    public Long getAmount(){
            return this.amount;
    }

    public A withAmount(Long amount){
            this.amount=amount; return (A) this;
    }

    public Boolean hasAmount(){
            return this.amount != null;
    }

    public Boolean isBestEffort(){
            return this.bestEffort;
    }

    public A withBestEffort(Boolean bestEffort){
            this.bestEffort=bestEffort; return (A) this;
    }

    public Boolean hasBestEffort(){
            return this.bestEffort != 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;
            QuotaParamsFluentImpl that = (QuotaParamsFluentImpl) o;
            if (amount != null ? !amount.equals(that.amount) :that.amount != null) return false;
            if (bestEffort != null ? !bestEffort.equals(that.bestEffort) :that.bestEffort != null) return false;
            return true;
    }




}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy