io.fabric8.knative.internal.autoscaling.v1alpha1.PodScalableSpecBuilder Maven / Gradle / Ivy
The newest version!
package io.fabric8.knative.internal.autoscaling.v1alpha1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class PodScalableSpecBuilder extends PodScalableSpecFluent implements VisitableBuilder{
public PodScalableSpecBuilder() {
this(new PodScalableSpec());
}
public PodScalableSpecBuilder(PodScalableSpecFluent> fluent) {
this(fluent, new PodScalableSpec());
}
public PodScalableSpecBuilder(PodScalableSpecFluent> fluent,PodScalableSpec instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public PodScalableSpecBuilder(PodScalableSpec instance) {
this.fluent = this;
this.copyInstance(instance);
}
PodScalableSpecFluent> fluent;
public PodScalableSpec build() {
PodScalableSpec buildable = new PodScalableSpec(fluent.getReplicas(),fluent.buildSelector(),fluent.buildTemplate());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
return buildable;
}
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy