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

io.fabric8.kubernetes.api.model.NodeConfigSourceBuilder Maven / Gradle / Ivy

package io.fabric8.kubernetes.api.model;

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

public class NodeConfigSourceBuilder extends NodeConfigSourceFluentImpl implements VisitableBuilder{

    NodeConfigSourceFluent fluent;
    Boolean validationEnabled;

    public NodeConfigSourceBuilder(){
            this(true);
    }
    public NodeConfigSourceBuilder(Boolean validationEnabled){
            this(new NodeConfigSource(), validationEnabled);
    }
    public NodeConfigSourceBuilder(NodeConfigSourceFluent fluent){
            this(fluent, true);
    }
    public NodeConfigSourceBuilder(NodeConfigSourceFluent fluent,Boolean validationEnabled){
            this(fluent, new NodeConfigSource(), validationEnabled);
    }
    public NodeConfigSourceBuilder(NodeConfigSourceFluent fluent,NodeConfigSource instance){
            this(fluent, instance, true);
    }
    public NodeConfigSourceBuilder(NodeConfigSourceFluent fluent,NodeConfigSource instance,Boolean validationEnabled){
            this.fluent = fluent; 
            fluent.withConfigMap(instance.getConfigMap()); 
            this.validationEnabled = validationEnabled; 
    }
    public NodeConfigSourceBuilder(NodeConfigSource instance){
            this(instance,true);
    }
    public NodeConfigSourceBuilder(NodeConfigSource instance,Boolean validationEnabled){
            this.fluent = this; 
            this.withConfigMap(instance.getConfigMap()); 
            this.validationEnabled = validationEnabled; 
    }

    public NodeConfigSource build(){
            NodeConfigSource buildable = new NodeConfigSource(fluent.getConfigMap());
            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;
            NodeConfigSourceBuilder that = (NodeConfigSourceBuilder) 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