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

io.dekorate.servicebinding.model.ApplicationBuilder Maven / Gradle / Ivy

There is a newer version: 4.1.4
Show newest version
package io.dekorate.servicebinding.model;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
public class ApplicationBuilder extends ApplicationFluentImpl implements VisitableBuilder{
  public ApplicationBuilder() {
    this(false);
  }
  public ApplicationBuilder(Boolean validationEnabled) {
    this(new Application(), validationEnabled);
  }
  public ApplicationBuilder(ApplicationFluent fluent) {
    this(fluent, false);
  }
  public ApplicationBuilder(ApplicationFluent fluent,Boolean validationEnabled) {
    this(fluent, new Application(), validationEnabled);
  }
  public ApplicationBuilder(ApplicationFluent fluent,Application instance) {
    this(fluent, instance, false);
  }
  public ApplicationBuilder(ApplicationFluent fluent,Application instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    fluent.withResource(instance.getResource()); 
    fluent.withKind(instance.getKind()); 
    fluent.withGroup(instance.getGroup()); 
    fluent.withVersion(instance.getVersion()); 
    fluent.withName(instance.getName()); 
    fluent.withBindingPath(instance.getBindingPath()); 
    this.validationEnabled = validationEnabled; 
  }
  public ApplicationBuilder(Application instance) {
    this(instance,false);
  }
  public ApplicationBuilder(Application instance,Boolean validationEnabled) {
    this.fluent = this; 
    this.withResource(instance.getResource()); 
    this.withKind(instance.getKind()); 
    this.withGroup(instance.getGroup()); 
    this.withVersion(instance.getVersion()); 
    this.withName(instance.getName()); 
    this.withBindingPath(instance.getBindingPath()); 
    this.validationEnabled = validationEnabled; 
  }
  ApplicationFluent fluent;
  Boolean validationEnabled;
  public Application build() {
    Application buildable = new Application(fluent.getResource(),fluent.getKind(),fluent.getGroup(),fluent.getVersion(),fluent.getName(),fluent.getBindingPath());
    return buildable;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy