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

io.kubernetes.client.openapi.models.FlowcontrolV1alpha1SubjectBuilder Maven / Gradle / Ivy

There is a newer version: 22.0.0
Show newest version
package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;

public class FlowcontrolV1alpha1SubjectBuilder extends FlowcontrolV1alpha1SubjectFluentImpl implements VisitableBuilder {

    FlowcontrolV1alpha1SubjectFluent fluent;
    Boolean validationEnabled;

    public FlowcontrolV1alpha1SubjectBuilder() { 
        this(true);
    }


    public FlowcontrolV1alpha1SubjectBuilder(Boolean validationEnabled) { 
        this(new FlowcontrolV1alpha1Subject(), validationEnabled);
    }


    public FlowcontrolV1alpha1SubjectBuilder(FlowcontrolV1alpha1SubjectFluent fluent) { 
        this(fluent, true);
    }


    public FlowcontrolV1alpha1SubjectBuilder(FlowcontrolV1alpha1SubjectFluent fluent,Boolean validationEnabled) { 
        this(fluent, new FlowcontrolV1alpha1Subject(), validationEnabled);
    }


    public FlowcontrolV1alpha1SubjectBuilder(FlowcontrolV1alpha1SubjectFluent fluent,FlowcontrolV1alpha1Subject instance) { 
        this(fluent, instance, true);
    }


    public FlowcontrolV1alpha1SubjectBuilder(FlowcontrolV1alpha1SubjectFluent fluent,FlowcontrolV1alpha1Subject instance,Boolean validationEnabled) { 
        this.fluent = fluent; 
        fluent.withGroup(instance.getGroup());

        fluent.withKind(instance.getKind());

        fluent.withServiceAccount(instance.getServiceAccount());

        fluent.withUser(instance.getUser());

        this.validationEnabled = validationEnabled; 
    }


    public FlowcontrolV1alpha1SubjectBuilder(FlowcontrolV1alpha1Subject instance) { 
        this(instance,true);
    }


    public FlowcontrolV1alpha1SubjectBuilder(FlowcontrolV1alpha1Subject instance,Boolean validationEnabled) { 
        this.fluent = this; 
        this.withGroup(instance.getGroup());

        this.withKind(instance.getKind());

        this.withServiceAccount(instance.getServiceAccount());

        this.withUser(instance.getUser());

        this.validationEnabled = validationEnabled; 
    }


    public FlowcontrolV1alpha1Subject build() {
        FlowcontrolV1alpha1Subject buildable = new FlowcontrolV1alpha1Subject();
        buildable.setGroup(fluent.getGroup());
        buildable.setKind(fluent.getKind());
        buildable.setServiceAccount(fluent.getServiceAccount());
        buildable.setUser(fluent.getUser());
        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;
        FlowcontrolV1alpha1SubjectBuilder that = (FlowcontrolV1alpha1SubjectBuilder) 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;
    }

    public int hashCode() {
        return java.util.Objects.hash(fluent,  validationEnabled,  super.hashCode());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy