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

io.fabric8.tekton.triggers.v1alpha1.PodTemplateBuilder Maven / Gradle / Ivy

package io.fabric8.tekton.triggers.v1alpha1;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
public class PodTemplateBuilder extends PodTemplateFluentImpl implements VisitableBuilder{
  public PodTemplateBuilder() {
    this(false);
  }
  public PodTemplateBuilder(Boolean validationEnabled) {
    this(new PodTemplate(), validationEnabled);
  }
  public PodTemplateBuilder(PodTemplateFluent fluent) {
    this(fluent, false);
  }
  public PodTemplateBuilder(PodTemplateFluent fluent,Boolean validationEnabled) {
    this(fluent, new PodTemplate(), validationEnabled);
  }
  public PodTemplateBuilder(PodTemplateFluent fluent,PodTemplate instance) {
    this(fluent, instance, false);
  }
  public PodTemplateBuilder(PodTemplateFluent fluent,PodTemplate instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    fluent.withNodeSelector(instance.getNodeSelector()); 
    fluent.withTolerations(instance.getTolerations()); 
    this.validationEnabled = validationEnabled; 
  }
  public PodTemplateBuilder(PodTemplate instance) {
    this(instance,false);
  }
  public PodTemplateBuilder(PodTemplate instance,Boolean validationEnabled) {
    this.fluent = this; 
    this.withNodeSelector(instance.getNodeSelector()); 
    this.withTolerations(instance.getTolerations()); 
    this.validationEnabled = validationEnabled; 
  }
  PodTemplateFluent fluent;
  Boolean validationEnabled;
  public PodTemplate build() {
    PodTemplate buildable = new PodTemplate(fluent.getNodeSelector(),fluent.getTolerations());
    return buildable;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy