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

annotations.io.fabric8.knative.duck.v1beta1.ChannelableSpecBuilder Maven / Gradle / Ivy

package io.fabric8.knative.duck.v1beta1;

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

public class ChannelableSpecBuilder extends io.fabric8.knative.duck.v1beta1.ChannelableSpecFluentImpl implements VisitableBuilder{

    io.fabric8.knative.duck.v1beta1.ChannelableSpecFluent fluent;
    Boolean validationEnabled;

    public ChannelableSpecBuilder(){
            this(true);
    }
    public ChannelableSpecBuilder(Boolean validationEnabled){
            this(new ChannelableSpec(), validationEnabled);
    }
    public ChannelableSpecBuilder(io.fabric8.knative.duck.v1beta1.ChannelableSpecFluent fluent){
            this(fluent, true);
    }
    public ChannelableSpecBuilder(io.fabric8.knative.duck.v1beta1.ChannelableSpecFluent fluent,Boolean validationEnabled){
            this(fluent, new ChannelableSpec(), validationEnabled);
    }
    public ChannelableSpecBuilder(io.fabric8.knative.duck.v1beta1.ChannelableSpecFluent fluent,io.fabric8.knative.duck.v1beta1.ChannelableSpec instance){
            this(fluent, instance, true);
    }
    public ChannelableSpecBuilder(io.fabric8.knative.duck.v1beta1.ChannelableSpecFluent fluent,io.fabric8.knative.duck.v1beta1.ChannelableSpec instance,Boolean validationEnabled){
            this.fluent = fluent; 
            fluent.withDelivery(instance.getDelivery()); 
            fluent.withSubscribers(instance.getSubscribers()); 
            this.validationEnabled = validationEnabled; 
    }
    public ChannelableSpecBuilder(io.fabric8.knative.duck.v1beta1.ChannelableSpec instance){
            this(instance,true);
    }
    public ChannelableSpecBuilder(io.fabric8.knative.duck.v1beta1.ChannelableSpec instance,Boolean validationEnabled){
            this.fluent = this; 
            this.withDelivery(instance.getDelivery()); 
            this.withSubscribers(instance.getSubscribers()); 
            this.validationEnabled = validationEnabled; 
    }

    public io.fabric8.knative.duck.v1beta1.ChannelableSpec build(){
            ChannelableSpec buildable = new ChannelableSpec(fluent.getDelivery(),fluent.getSubscribers());
            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;
            ChannelableSpecBuilder that = (ChannelableSpecBuilder) 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