io.github.microcks.operator.api.base.v1alpha1.MicrocksServiceSpecBuilder Maven / Gradle / Ivy
package io.github.microcks.operator.api.base.v1alpha1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class MicrocksServiceSpecBuilder extends MicrocksServiceSpecFluent implements VisitableBuilder{
public MicrocksServiceSpecBuilder() {
this(new MicrocksServiceSpec());
}
public MicrocksServiceSpecBuilder(MicrocksServiceSpecFluent> fluent) {
this(fluent, new MicrocksServiceSpec());
}
public MicrocksServiceSpecBuilder(MicrocksServiceSpecFluent> fluent,MicrocksServiceSpec instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public MicrocksServiceSpecBuilder(MicrocksServiceSpec instance) {
this.fluent = this;
this.copyInstance(instance);
}
MicrocksServiceSpecFluent> fluent;
public MicrocksServiceSpec build() {
MicrocksServiceSpec buildable = new MicrocksServiceSpec();
buildable.setImage(fluent.buildImage());
buildable.setReplicas(fluent.getReplicas());
buildable.setUrl(fluent.getUrl());
buildable.setIngress(fluent.buildIngress());
buildable.setGrpcIngress(fluent.buildGrpcIngress());
buildable.setResources(fluent.getResources());
buildable.setMockInvocationStats(fluent.getMockInvocationStats());
buildable.setLogLevel(fluent.getLogLevel());
buildable.setOpenshift(fluent.buildOpenshift());
buildable.setEnv(fluent.getEnv());
buildable.setExtraProperties(fluent.getExtraProperties());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy