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

annotations.io.fabric8.knative.sources.v1beta1.ApiServerSourceSpecBuilder Maven / Gradle / Ivy

package io.fabric8.knative.sources.v1beta1;

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

public class ApiServerSourceSpecBuilder extends io.fabric8.knative.sources.v1beta1.ApiServerSourceSpecFluentImpl implements io.fabric8.kubernetes.api.builder.VisitableBuilder {

    io.fabric8.knative.sources.v1beta1.ApiServerSourceSpecFluent fluent;
    java.lang.Boolean validationEnabled;

    public ApiServerSourceSpecBuilder() {
        this(true);
    }

    public ApiServerSourceSpecBuilder(java.lang.Boolean validationEnabled) {
        this(new ApiServerSourceSpec(), validationEnabled);
    }

    public ApiServerSourceSpecBuilder(io.fabric8.knative.sources.v1beta1.ApiServerSourceSpecFluent fluent) {
        this(fluent, true);
    }

    public ApiServerSourceSpecBuilder(io.fabric8.knative.sources.v1beta1.ApiServerSourceSpecFluent fluent,java.lang.Boolean validationEnabled) {
        this(fluent, new ApiServerSourceSpec(), validationEnabled);
    }

    public ApiServerSourceSpecBuilder(io.fabric8.knative.sources.v1beta1.ApiServerSourceSpecFluent fluent,io.fabric8.knative.sources.v1beta1.ApiServerSourceSpec instance) {
        this(fluent, instance, true);
    }

    public ApiServerSourceSpecBuilder(io.fabric8.knative.sources.v1beta1.ApiServerSourceSpecFluent fluent,io.fabric8.knative.sources.v1beta1.ApiServerSourceSpec instance,java.lang.Boolean validationEnabled) {
        this.fluent = fluent; 
        fluent.withCeOverrides(instance.getCeOverrides()); 
        fluent.withMode(instance.getMode()); 
        fluent.withOwner(instance.getOwner()); 
        fluent.withResources(instance.getResources()); 
        fluent.withServiceAccountName(instance.getServiceAccountName()); 
        fluent.withSink(instance.getSink()); 
        this.validationEnabled = validationEnabled; 
    }

    public ApiServerSourceSpecBuilder(io.fabric8.knative.sources.v1beta1.ApiServerSourceSpec instance) {
        this(instance,true);
    }

    public ApiServerSourceSpecBuilder(io.fabric8.knative.sources.v1beta1.ApiServerSourceSpec instance,java.lang.Boolean validationEnabled) {
        this.fluent = this; 
        this.withCeOverrides(instance.getCeOverrides()); 
        this.withMode(instance.getMode()); 
        this.withOwner(instance.getOwner()); 
        this.withResources(instance.getResources()); 
        this.withServiceAccountName(instance.getServiceAccountName()); 
        this.withSink(instance.getSink()); 
        this.validationEnabled = validationEnabled; 
    }

    public io.fabric8.knative.sources.v1beta1.EditableApiServerSourceSpec build() {
        EditableApiServerSourceSpec buildable = new EditableApiServerSourceSpec(fluent.getCeOverrides(),fluent.getMode(),fluent.getOwner(),fluent.getResources(),fluent.getServiceAccountName(),fluent.getSink());
        return buildable;
    }

    public boolean equals(java.lang.Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        ApiServerSourceSpecBuilder that = (ApiServerSourceSpecBuilder) 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 - 2025 Weber Informatics LLC | Privacy Policy