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

io.debezium.operator.api.model.source.SourceBuilder Maven / Gradle / Ivy

The newest version!
package io.debezium.operator.api.model.source;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class SourceBuilder extends SourceFluent implements VisitableBuilder{
  public SourceBuilder() {
    this(new Source());
  }
  
  public SourceBuilder(SourceFluent fluent) {
    this(fluent, new Source());
  }
  
  public SourceBuilder(SourceFluent fluent,Source instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public SourceBuilder(Source instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  SourceFluent fluent;
  
  public Source build() {
    Source buildable = new Source();
    buildable.setSourceClass(fluent.getSourceClass());
    buildable.setOffset(fluent.buildOffset());
    buildable.setSchemaHistory(fluent.buildSchemaHistory());
    buildable.setConfig(fluent.getConfig());
    return buildable;
  }
  

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy