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

io.strimzi.api.kafka.model.SidecarBuilder Maven / Gradle / Ivy

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

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
public class SidecarBuilder extends SidecarFluent implements VisitableBuilder{
  public SidecarBuilder() {
    this(false);
  }
  public SidecarBuilder(Boolean validationEnabled) {
    this(new Sidecar(), validationEnabled);
  }
  public SidecarBuilder(SidecarFluent fluent) {
    this(fluent, false);
  }
  public SidecarBuilder(SidecarFluent fluent,Boolean validationEnabled) {
    this(fluent, new Sidecar(), validationEnabled);
  }
  public SidecarBuilder(SidecarFluent fluent,Sidecar instance) {
    this(fluent, instance, false);
  }
  public SidecarBuilder(SidecarFluent fluent,Sidecar instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    instance = (instance != null ? instance : new Sidecar());

    if (instance != null) {
      fluent.withImage(instance.getImage());
      fluent.withResources(instance.getResources());
    }
    this.validationEnabled = validationEnabled; 
  }
  public SidecarBuilder(Sidecar instance) {
    this(instance,false);
  }
  public SidecarBuilder(Sidecar instance,Boolean validationEnabled) {
    this.fluent = this; 
    instance = (instance != null ? instance : new Sidecar());

    if (instance != null) {
      this.withImage(instance.getImage());
      this.withResources(instance.getResources());
    }
    this.validationEnabled = validationEnabled; 
  }
  SidecarFluent fluent;
  Boolean validationEnabled;
  public Sidecar build() {
    Sidecar buildable = new Sidecar();
    buildable.setImage(fluent.getImage());
    buildable.setResources(fluent.getResources());
    return buildable;
  }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy