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

io.strimzi.api.kafka.model.connector.AutoRestartBuilder Maven / Gradle / Ivy

There is a newer version: 0.44.0
Show newest version
package io.strimzi.api.kafka.model.connector;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class AutoRestartBuilder extends AutoRestartFluent implements VisitableBuilder{
  public AutoRestartBuilder() {
    this(new AutoRestart());
  }
  
  public AutoRestartBuilder(AutoRestartFluent fluent) {
    this(fluent, new AutoRestart());
  }
  
  public AutoRestartBuilder(AutoRestartFluent fluent,AutoRestart instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public AutoRestartBuilder(AutoRestart instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  AutoRestartFluent fluent;
  
  public AutoRestart build() {
    AutoRestart buildable = new AutoRestart();
    buildable.setEnabled(fluent.isEnabled());
    buildable.setMaxRestarts(fluent.getMaxRestarts());
    return buildable;
  }
  

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy