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

io.github.microcks.operator.api.base.v1alpha1.KafkaSpecBuilder Maven / Gradle / Ivy

There is a newer version: 0.0.2
Show newest version
package io.github.microcks.operator.api.base.v1alpha1;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class KafkaSpecBuilder extends KafkaSpecFluent implements VisitableBuilder{
  public KafkaSpecBuilder() {
    this(new KafkaSpec());
  }
  
  public KafkaSpecBuilder(KafkaSpecFluent fluent) {
    this(fluent, new KafkaSpec());
  }
  
  public KafkaSpecBuilder(KafkaSpecFluent fluent,KafkaSpec instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public KafkaSpecBuilder(KafkaSpec instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  KafkaSpecFluent fluent;
  
  public KafkaSpec build() {
    KafkaSpec buildable = new KafkaSpec();
    buildable.setInstall(fluent.isInstall());
    buildable.setUrl(fluent.getUrl());
    buildable.setIngressClassName(fluent.getIngressClassName());
    buildable.setPersistent(fluent.isPersistent());
    buildable.setVolumeSize(fluent.getVolumeSize());
    buildable.setSchemaRegistry(fluent.buildSchemaRegistry());
    buildable.setAuthentication(fluent.buildAuthentication());
    buildable.setResources(fluent.getResources());
    buildable.setZkResources(fluent.getZkResources());
    return buildable;
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy