io.github.microcks.operator.api.base.v1alpha1.MongoDBSpecBuilder Maven / Gradle / Ivy
package io.github.microcks.operator.api.base.v1alpha1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class MongoDBSpecBuilder extends MongoDBSpecFluent implements VisitableBuilder{
public MongoDBSpecBuilder() {
this(new MongoDBSpec());
}
public MongoDBSpecBuilder(MongoDBSpecFluent> fluent) {
this(fluent, new MongoDBSpec());
}
public MongoDBSpecBuilder(MongoDBSpecFluent> fluent,MongoDBSpec instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public MongoDBSpecBuilder(MongoDBSpec instance) {
this.fluent = this;
this.copyInstance(instance);
}
MongoDBSpecFluent> fluent;
public MongoDBSpec build() {
MongoDBSpec buildable = new MongoDBSpec();
buildable.setInstall(fluent.isInstall());
buildable.setImage(fluent.buildImage());
buildable.setUri(fluent.getUri());
buildable.setUriParameters(fluent.getUriParameters());
buildable.setDatabase(fluent.getDatabase());
buildable.setSecretRef(fluent.buildSecretRef());
buildable.setResources(fluent.getResources());
buildable.setSecurityContext(fluent.getSecurityContext());
buildable.setPersistent(fluent.isPersistent());
buildable.setVolumeSize(fluent.getVolumeSize());
buildable.setStorageClassName(fluent.getStorageClassName());
buildable.setPvcAnnotations(fluent.getPvcAnnotations());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy