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

io.strimzi.api.kafka.model.jmxtrans.JmxTransSpecBuilder Maven / Gradle / Ivy

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

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class JmxTransSpecBuilder extends JmxTransSpecFluent implements VisitableBuilder{
  public JmxTransSpecBuilder() {
    this(new JmxTransSpec());
  }
  
  public JmxTransSpecBuilder(JmxTransSpecFluent fluent) {
    this(fluent, new JmxTransSpec());
  }
  
  public JmxTransSpecBuilder(JmxTransSpecFluent fluent,JmxTransSpec instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public JmxTransSpecBuilder(JmxTransSpec instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  JmxTransSpecFluent fluent;
  
  public JmxTransSpec build() {
    JmxTransSpec buildable = new JmxTransSpec();
    buildable.setImage(fluent.getImage());
    buildable.setLogLevel(fluent.getLogLevel());
    buildable.setOutputDefinitions(fluent.buildOutputDefinitions());
    buildable.setKafkaQueries(fluent.buildKafkaQueries());
    buildable.setResources(fluent.getResources());
    buildable.setTemplate(fluent.buildTemplate());
    return buildable;
  }
  

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy