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

io.debezium.operator.api.model.DebeziumServerBuilder Maven / Gradle / Ivy

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

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class DebeziumServerBuilder extends DebeziumServerFluent implements VisitableBuilder{
  public DebeziumServerBuilder() {
    this(new DebeziumServer());
  }
  
  public DebeziumServerBuilder(DebeziumServerFluent fluent) {
    this(fluent, new DebeziumServer());
  }
  
  public DebeziumServerBuilder(DebeziumServerFluent fluent,DebeziumServer instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public DebeziumServerBuilder(DebeziumServer instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  DebeziumServerFluent fluent;
  
  public DebeziumServer build() {
    DebeziumServer buildable = new DebeziumServer();
    buildable.setMetadata(fluent.buildMetadata());
    buildable.setSpec(fluent.buildSpec());
    buildable.setStatus(fluent.buildStatus());
    buildable.setKind(fluent.getKind());
    buildable.setApiVersion(fluent.getApiVersion());
    return buildable;
  }
  

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy