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

me.snowdrop.istio.mixer.adapter.prometheus.ExponentialBucketsDefinitionFluentImpl Maven / Gradle / Ivy

package me.snowdrop.istio.mixer.adapter.prometheus;

import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.fabric8.kubernetes.api.builder.Nested;
import java.lang.Double;
import java.lang.Integer;
import java.lang.Deprecated;
import javax.validation.Valid;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.Boolean;

public class ExponentialBucketsDefinitionFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements ExponentialBucketsDefinitionFluent{

    private ExponentialBuilder exponentialBuckets;

    public ExponentialBucketsDefinitionFluentImpl(){
    }
    public ExponentialBucketsDefinitionFluentImpl(ExponentialBucketsDefinition instance){
            this.withExponentialBuckets(instance.getExponentialBuckets()); 
    }

    
/**
 * This method has been deprecated, please use method buildExponentialBuckets instead.
 * @return The buildable object.
 */
@Deprecated public Exponential getExponentialBuckets(){
            return this.exponentialBuckets!=null?this.exponentialBuckets.build():null;
    }

    public Exponential buildExponentialBuckets(){
            return this.exponentialBuckets!=null?this.exponentialBuckets.build():null;
    }

    public A withExponentialBuckets(Exponential exponentialBuckets){
            _visitables.remove(this.exponentialBuckets);
            if (exponentialBuckets!=null){ this.exponentialBuckets= new ExponentialBuilder(exponentialBuckets); _visitables.add(this.exponentialBuckets);} return (A) this;
    }

    public Boolean hasExponentialBuckets(){
            return this.exponentialBuckets != null;
    }

    public A withNewExponentialBuckets(Double growthFactor,Integer numFiniteBuckets,Double scale){
            return (A)withExponentialBuckets(new Exponential(growthFactor, numFiniteBuckets, scale));
    }

    public ExponentialBucketsDefinitionFluent.ExponentialBucketsNested withNewExponentialBuckets(){
            return new ExponentialBucketsNestedImpl();
    }

    public ExponentialBucketsDefinitionFluent.ExponentialBucketsNested withNewExponentialBucketsLike(Exponential item){
            return new ExponentialBucketsNestedImpl(item);
    }

    public ExponentialBucketsDefinitionFluent.ExponentialBucketsNested editExponentialBuckets(){
            return withNewExponentialBucketsLike(getExponentialBuckets());
    }

    public ExponentialBucketsDefinitionFluent.ExponentialBucketsNested editOrNewExponentialBuckets(){
            return withNewExponentialBucketsLike(getExponentialBuckets() != null ? getExponentialBuckets(): new ExponentialBuilder().build());
    }

    public ExponentialBucketsDefinitionFluent.ExponentialBucketsNested editOrNewExponentialBucketsLike(Exponential item){
            return withNewExponentialBucketsLike(getExponentialBuckets() != null ? getExponentialBuckets(): item);
    }

    public boolean equals(Object o){
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            if (!super.equals(o)) return false;
            ExponentialBucketsDefinitionFluentImpl that = (ExponentialBucketsDefinitionFluentImpl) o;
            if (exponentialBuckets != null ? !exponentialBuckets.equals(that.exponentialBuckets) :that.exponentialBuckets != null) return false;
            return true;
    }


    public class ExponentialBucketsNestedImpl extends ExponentialFluentImpl> implements ExponentialBucketsDefinitionFluent.ExponentialBucketsNested,io.fabric8.kubernetes.api.builder.Nested{

            private final ExponentialBuilder builder;
    
            ExponentialBucketsNestedImpl(Exponential item){
                    this.builder = new ExponentialBuilder(this, item);
            }
            ExponentialBucketsNestedImpl(){
                    this.builder = new ExponentialBuilder(this);
            }
    
    public N and(){
            return (N) ExponentialBucketsDefinitionFluentImpl.this.withExponentialBuckets(builder.build());
    }
    public N endExponentialBuckets(){
            return and();
    }

}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy