io.dekorate.servicebinding.config.ApplicationConfigBuilder Maven / Gradle / Ivy
package io.dekorate.servicebinding.config;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
/**
* Generated
*/
public class ApplicationConfigBuilder extends ApplicationConfigFluentImpl implements VisitableBuilder{
public ApplicationConfigBuilder() {
this(false);
}
public ApplicationConfigBuilder(Boolean validationEnabled) {
this(new ApplicationConfig(), validationEnabled);
}
public ApplicationConfigBuilder(ApplicationConfigFluent> fluent) {
this(fluent, false);
}
public ApplicationConfigBuilder(ApplicationConfigFluent> fluent,Boolean validationEnabled) {
this(fluent, new ApplicationConfig(), validationEnabled);
}
public ApplicationConfigBuilder(ApplicationConfigFluent> fluent,ApplicationConfig instance) {
this(fluent, instance, false);
}
public ApplicationConfigBuilder(ApplicationConfigFluent> fluent,ApplicationConfig instance,Boolean validationEnabled) {
this.fluent = fluent;
fluent.withProject(instance.getProject());
fluent.withAttributes(instance.getAttributes());
fluent.withResource(instance.getResource());
fluent.withKind(instance.getKind());
fluent.withName(instance.getName());
fluent.withGroup(instance.getGroup());
fluent.withVersion(instance.getVersion());
this.validationEnabled = validationEnabled;
}
public ApplicationConfigBuilder(ApplicationConfig instance) {
this(instance,false);
}
public ApplicationConfigBuilder(ApplicationConfig instance,Boolean validationEnabled) {
this.fluent = this;
this.withProject(instance.getProject());
this.withAttributes(instance.getAttributes());
this.withResource(instance.getResource());
this.withKind(instance.getKind());
this.withName(instance.getName());
this.withGroup(instance.getGroup());
this.withVersion(instance.getVersion());
this.validationEnabled = validationEnabled;
}
ApplicationConfigFluent> fluent;
Boolean validationEnabled;
public EditableApplicationConfig build() {
EditableApplicationConfig buildable = new EditableApplicationConfig(fluent.getProject(),fluent.getAttributes(),fluent.getResource(),fluent.getKind(),fluent.getName(),fluent.getGroup(),fluent.getVersion());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy