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

annotations.io.fabric8.knative.sources.v1.PingSourceSpecBuilder Maven / Gradle / Ivy

package io.fabric8.knative.sources.v1;

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

public class PingSourceSpecBuilder extends io.fabric8.knative.sources.v1.PingSourceSpecFluentImpl implements io.fabric8.kubernetes.api.builder.VisitableBuilder {

    io.fabric8.knative.sources.v1.PingSourceSpecFluent fluent;
    java.lang.Boolean validationEnabled;

    public PingSourceSpecBuilder() {
        this(true);
    }

    public PingSourceSpecBuilder(java.lang.Boolean validationEnabled) {
        this(new PingSourceSpec(), validationEnabled);
    }

    public PingSourceSpecBuilder(io.fabric8.knative.sources.v1.PingSourceSpecFluent fluent) {
        this(fluent, true);
    }

    public PingSourceSpecBuilder(io.fabric8.knative.sources.v1.PingSourceSpecFluent fluent,java.lang.Boolean validationEnabled) {
        this(fluent, new PingSourceSpec(), validationEnabled);
    }

    public PingSourceSpecBuilder(io.fabric8.knative.sources.v1.PingSourceSpecFluent fluent,io.fabric8.knative.sources.v1.PingSourceSpec instance) {
        this(fluent, instance, true);
    }

    public PingSourceSpecBuilder(io.fabric8.knative.sources.v1.PingSourceSpecFluent fluent,io.fabric8.knative.sources.v1.PingSourceSpec instance,java.lang.Boolean validationEnabled) {
        this.fluent = fluent; 
        fluent.withCeOverrides(instance.getCeOverrides()); 
        fluent.withContentType(instance.getContentType()); 
        fluent.withData(instance.getData()); 
        fluent.withDataBase64(instance.getDataBase64()); 
        fluent.withSchedule(instance.getSchedule()); 
        fluent.withSink(instance.getSink()); 
        fluent.withTimezone(instance.getTimezone()); 
        this.validationEnabled = validationEnabled; 
    }

    public PingSourceSpecBuilder(io.fabric8.knative.sources.v1.PingSourceSpec instance) {
        this(instance,true);
    }

    public PingSourceSpecBuilder(io.fabric8.knative.sources.v1.PingSourceSpec instance,java.lang.Boolean validationEnabled) {
        this.fluent = this; 
        this.withCeOverrides(instance.getCeOverrides()); 
        this.withContentType(instance.getContentType()); 
        this.withData(instance.getData()); 
        this.withDataBase64(instance.getDataBase64()); 
        this.withSchedule(instance.getSchedule()); 
        this.withSink(instance.getSink()); 
        this.withTimezone(instance.getTimezone()); 
        this.validationEnabled = validationEnabled; 
    }

    public io.fabric8.knative.sources.v1.EditablePingSourceSpec build() {
        EditablePingSourceSpec buildable = new EditablePingSourceSpec(fluent.getCeOverrides(),fluent.getContentType(),fluent.getData(),fluent.getDataBase64(),fluent.getSchedule(),fluent.getSink(),fluent.getTimezone());
        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;
        PingSourceSpecBuilder that = (PingSourceSpecBuilder) 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