io.dekorate.servicebinding.config.ServiceBindingConfigBuilder Maven / Gradle / Ivy
package io.dekorate.servicebinding.config;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
/**
* Generated
*/
public class ServiceBindingConfigBuilder extends ServiceBindingConfigFluentImpl implements VisitableBuilder{
public ServiceBindingConfigBuilder() {
this(false);
}
public ServiceBindingConfigBuilder(Boolean validationEnabled) {
this(new ServiceBindingConfig(), validationEnabled);
}
public ServiceBindingConfigBuilder(ServiceBindingConfigFluent> fluent) {
this(fluent, false);
}
public ServiceBindingConfigBuilder(ServiceBindingConfigFluent> fluent,Boolean validationEnabled) {
this(fluent, new ServiceBindingConfig(), validationEnabled);
}
public ServiceBindingConfigBuilder(ServiceBindingConfigFluent> fluent,ServiceBindingConfig instance) {
this(fluent, instance, false);
}
public ServiceBindingConfigBuilder(ServiceBindingConfigFluent> fluent,ServiceBindingConfig instance,Boolean validationEnabled) {
this.fluent = fluent;
fluent.withProject(instance.getProject());
fluent.withAttributes(instance.getAttributes());
fluent.withPartOf(instance.getPartOf());
fluent.withName(instance.getName());
fluent.withVersion(instance.getVersion());
fluent.withApplication(instance.getApplication());
fluent.withServices(instance.getServices());
fluent.withEnvVarPrefix(instance.getEnvVarPrefix());
fluent.withDetectBindingResources(instance.getDetectBindingResources());
fluent.withBindAsFiles(instance.getBindAsFiles());
fluent.withMountPath(instance.getMountPath());
fluent.withCustomEnvVar(instance.getCustomEnvVar());
fluent.withBindingPath(instance.getBindingPath());
this.validationEnabled = validationEnabled;
}
public ServiceBindingConfigBuilder(ServiceBindingConfig instance) {
this(instance,false);
}
public ServiceBindingConfigBuilder(ServiceBindingConfig instance,Boolean validationEnabled) {
this.fluent = this;
this.withProject(instance.getProject());
this.withAttributes(instance.getAttributes());
this.withPartOf(instance.getPartOf());
this.withName(instance.getName());
this.withVersion(instance.getVersion());
this.withApplication(instance.getApplication());
this.withServices(instance.getServices());
this.withEnvVarPrefix(instance.getEnvVarPrefix());
this.withDetectBindingResources(instance.getDetectBindingResources());
this.withBindAsFiles(instance.getBindAsFiles());
this.withMountPath(instance.getMountPath());
this.withCustomEnvVar(instance.getCustomEnvVar());
this.withBindingPath(instance.getBindingPath());
this.validationEnabled = validationEnabled;
}
ServiceBindingConfigFluent> fluent;
Boolean validationEnabled;
public EditableServiceBindingConfig build() {
EditableServiceBindingConfig buildable = new EditableServiceBindingConfig(fluent.getProject(),fluent.getAttributes(),fluent.getPartOf(),fluent.getName(),fluent.getVersion(),fluent.getApplication(),fluent.getServices(),fluent.getEnvVarPrefix(),fluent.getDetectBindingResources(),fluent.getBindAsFiles(),fluent.getMountPath(),fluent.getCustomEnvVar(),fluent.getBindingPath());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy