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

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

package io.dekorate.servicebinding.model;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
public class ServiceBindingSpecBuilder extends ServiceBindingSpecFluentImpl implements VisitableBuilder{
  public ServiceBindingSpecBuilder() {
    this(false);
  }
  public ServiceBindingSpecBuilder(Boolean validationEnabled) {
    this(new ServiceBindingSpec(), validationEnabled);
  }
  public ServiceBindingSpecBuilder(ServiceBindingSpecFluent fluent) {
    this(fluent, false);
  }
  public ServiceBindingSpecBuilder(ServiceBindingSpecFluent fluent,Boolean validationEnabled) {
    this(fluent, new ServiceBindingSpec(), validationEnabled);
  }
  public ServiceBindingSpecBuilder(ServiceBindingSpecFluent fluent,ServiceBindingSpec instance) {
    this(fluent, instance, false);
  }
  public ServiceBindingSpecBuilder(ServiceBindingSpecFluent fluent,ServiceBindingSpec instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    fluent.withApplication(instance.getApplication()); 
    fluent.withServices(instance.getServices()); 
    fluent.withEnvVarPrefix(instance.getEnvVarPrefix()); 
    fluent.withDetectBindingResources(instance.getDetectBindingResources()); 
    fluent.withBindAsFiles(instance.isBindAsFiles()); 
    fluent.withMountPath(instance.getMountPath()); 
    fluent.withCustomEnvVar(instance.getCustomEnvVar()); 
    this.validationEnabled = validationEnabled; 
  }
  public ServiceBindingSpecBuilder(ServiceBindingSpec instance) {
    this(instance,false);
  }
  public ServiceBindingSpecBuilder(ServiceBindingSpec instance,Boolean validationEnabled) {
    this.fluent = this; 
    this.withApplication(instance.getApplication()); 
    this.withServices(instance.getServices()); 
    this.withEnvVarPrefix(instance.getEnvVarPrefix()); 
    this.withDetectBindingResources(instance.getDetectBindingResources()); 
    this.withBindAsFiles(instance.isBindAsFiles()); 
    this.withMountPath(instance.getMountPath()); 
    this.withCustomEnvVar(instance.getCustomEnvVar()); 
    this.validationEnabled = validationEnabled; 
  }
  ServiceBindingSpecFluent fluent;
  Boolean validationEnabled;
  public ServiceBindingSpec build() {
    ServiceBindingSpec buildable = new ServiceBindingSpec(fluent.getApplication(),fluent.getServices(),fluent.getEnvVarPrefix(),fluent.isDetectBindingResources(),fluent.isBindAsFiles(),fluent.getMountPath(),fluent.getCustomEnvVar());
    return buildable;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy