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

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.Boolean;
public class PingSourceSpecBuilder extends PingSourceSpecFluentImpl implements VisitableBuilder{
  public PingSourceSpecBuilder() {
    this(false);
  }
  public PingSourceSpecBuilder(Boolean validationEnabled) {
    this(new PingSourceSpec(), validationEnabled);
  }
  public PingSourceSpecBuilder(PingSourceSpecFluent fluent) {
    this(fluent, false);
  }
  public PingSourceSpecBuilder(PingSourceSpecFluent fluent,Boolean validationEnabled) {
    this(fluent, new PingSourceSpec(), validationEnabled);
  }
  public PingSourceSpecBuilder(PingSourceSpecFluent fluent,PingSourceSpec instance) {
    this(fluent, instance, false);
  }
  public PingSourceSpecBuilder(PingSourceSpecFluent fluent,PingSourceSpec instance,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(PingSourceSpec instance) {
    this(instance,false);
  }
  public PingSourceSpecBuilder(PingSourceSpec instance,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; 
  }
  PingSourceSpecFluent fluent;
  Boolean validationEnabled;
  public PingSourceSpec build() {
    PingSourceSpec buildable = new PingSourceSpec(fluent.getCeOverrides(),fluent.getContentType(),fluent.getData(),fluent.getDataBase64(),fluent.getSchedule(),fluent.getSink(),fluent.getTimezone());
    return buildable;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy