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

io.strimzi.api.kafka.model.common.template.ContainerTemplateBuilder Maven / Gradle / Ivy

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

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class ContainerTemplateBuilder extends ContainerTemplateFluent implements VisitableBuilder{
  public ContainerTemplateBuilder() {
    this(new ContainerTemplate());
  }
  
  public ContainerTemplateBuilder(ContainerTemplateFluent fluent) {
    this(fluent, new ContainerTemplate());
  }
  
  public ContainerTemplateBuilder(ContainerTemplateFluent fluent,ContainerTemplate instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public ContainerTemplateBuilder(ContainerTemplate instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  ContainerTemplateFluent fluent;
  
  public ContainerTemplate build() {
    ContainerTemplate buildable = new ContainerTemplate();
    buildable.setEnv(fluent.buildEnv());
    buildable.setSecurityContext(fluent.getSecurityContext());
    buildable.setVolumeMounts(fluent.getVolumeMounts());
    return buildable;
  }
  

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy