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

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

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

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;

public class ReferencedAttributesBuilder extends ReferencedAttributesFluentImpl implements VisitableBuilder{

    ReferencedAttributesFluent fluent;
    Boolean validationEnabled;

    public ReferencedAttributesBuilder(){
            this(true);
    }
    public ReferencedAttributesBuilder(Boolean validationEnabled){
            this(new ReferencedAttributes(), validationEnabled);
    }
    public ReferencedAttributesBuilder(ReferencedAttributesFluent fluent){
            this(fluent, true);
    }
    public ReferencedAttributesBuilder(ReferencedAttributesFluent fluent,Boolean validationEnabled){
            this(fluent, new ReferencedAttributes(), validationEnabled);
    }
    public ReferencedAttributesBuilder(ReferencedAttributesFluent fluent,ReferencedAttributes instance){
            this(fluent, instance, true);
    }
    public ReferencedAttributesBuilder(ReferencedAttributesFluent fluent,ReferencedAttributes instance,Boolean validationEnabled){
            this.fluent = fluent; 
            fluent.withAttributeMatches(instance.getAttributeMatches()); 
            fluent.withWords(instance.getWords()); 
            this.validationEnabled = validationEnabled; 
    }
    public ReferencedAttributesBuilder(ReferencedAttributes instance){
            this(instance,true);
    }
    public ReferencedAttributesBuilder(ReferencedAttributes instance,Boolean validationEnabled){
            this.fluent = this; 
            this.withAttributeMatches(instance.getAttributeMatches()); 
            this.withWords(instance.getWords()); 
            this.validationEnabled = validationEnabled; 
    }

    public ReferencedAttributes build(){
            ReferencedAttributes buildable = new ReferencedAttributes(fluent.getAttributeMatches(),fluent.getWords());
            io.fabric8.kubernetes.api.builder.ValidationUtils.validate(buildable);
            return buildable;
    }

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

            if (validationEnabled != null ? !validationEnabled.equals(that.validationEnabled) :that.validationEnabled != null) return false;
            return true;
    }




}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy