io.dekorate.servicebinding.config.ServiceConfigBuilder Maven / Gradle / Ivy
package io.dekorate.servicebinding.config;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
/**
* Generated
*/
public class ServiceConfigBuilder extends ServiceConfigFluentImpl implements VisitableBuilder{
public ServiceConfigBuilder() {
this(false);
}
public ServiceConfigBuilder(Boolean validationEnabled) {
this(new ServiceConfig(), validationEnabled);
}
public ServiceConfigBuilder(ServiceConfigFluent> fluent) {
this(fluent, false);
}
public ServiceConfigBuilder(ServiceConfigFluent> fluent,Boolean validationEnabled) {
this(fluent, new ServiceConfig(), validationEnabled);
}
public ServiceConfigBuilder(ServiceConfigFluent> fluent,ServiceConfig instance) {
this(fluent, instance, false);
}
public ServiceConfigBuilder(ServiceConfigFluent> fluent,ServiceConfig instance,Boolean validationEnabled) {
this.fluent = fluent;
fluent.withProject(instance.getProject());
fluent.withAttributes(instance.getAttributes());
fluent.withGroup(instance.getGroup());
fluent.withKind(instance.getKind());
fluent.withName(instance.getName());
fluent.withVersion(instance.getVersion());
fluent.withId(instance.getId());
fluent.withNamespace(instance.getNamespace());
fluent.withEnvVarPrefix(instance.getEnvVarPrefix());
this.validationEnabled = validationEnabled;
}
public ServiceConfigBuilder(ServiceConfig instance) {
this(instance,false);
}
public ServiceConfigBuilder(ServiceConfig instance,Boolean validationEnabled) {
this.fluent = this;
this.withProject(instance.getProject());
this.withAttributes(instance.getAttributes());
this.withGroup(instance.getGroup());
this.withKind(instance.getKind());
this.withName(instance.getName());
this.withVersion(instance.getVersion());
this.withId(instance.getId());
this.withNamespace(instance.getNamespace());
this.withEnvVarPrefix(instance.getEnvVarPrefix());
this.validationEnabled = validationEnabled;
}
ServiceConfigFluent> fluent;
Boolean validationEnabled;
public EditableServiceConfig build() {
EditableServiceConfig buildable = new EditableServiceConfig(fluent.getProject(),fluent.getAttributes(),fluent.getGroup(),fluent.getKind(),fluent.getName(),fluent.getVersion(),fluent.getId(),fluent.getNamespace(),fluent.getEnvVarPrefix());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy