io.fabric8.knative.internal.autoscaling.v1alpha1.PodAutoscalerSpecBuilder Maven / Gradle / Ivy
package io.fabric8.knative.internal.autoscaling.v1alpha1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
public class PodAutoscalerSpecBuilder extends PodAutoscalerSpecFluent implements VisitableBuilder{
public PodAutoscalerSpecBuilder() {
this(false);
}
public PodAutoscalerSpecBuilder(Boolean validationEnabled) {
this(new PodAutoscalerSpec(), validationEnabled);
}
public PodAutoscalerSpecBuilder(PodAutoscalerSpecFluent> fluent) {
this(fluent, false);
}
public PodAutoscalerSpecBuilder(PodAutoscalerSpecFluent> fluent,Boolean validationEnabled) {
this(fluent, new PodAutoscalerSpec(), validationEnabled);
}
public PodAutoscalerSpecBuilder(PodAutoscalerSpecFluent> fluent,PodAutoscalerSpec instance) {
this(fluent, instance, false);
}
public PodAutoscalerSpecBuilder(PodAutoscalerSpecFluent> fluent,PodAutoscalerSpec instance,Boolean validationEnabled) {
this.fluent = fluent;
instance = (instance != null ? instance : new PodAutoscalerSpec());
if (instance != null) {
fluent.withContainerConcurrency(instance.getContainerConcurrency());
fluent.withProtocolType(instance.getProtocolType());
fluent.withReachability(instance.getReachability());
fluent.withScaleTargetRef(instance.getScaleTargetRef());
fluent.withContainerConcurrency(instance.getContainerConcurrency());
fluent.withProtocolType(instance.getProtocolType());
fluent.withReachability(instance.getReachability());
fluent.withScaleTargetRef(instance.getScaleTargetRef());
}
this.validationEnabled = validationEnabled;
}
public PodAutoscalerSpecBuilder(PodAutoscalerSpec instance) {
this(instance,false);
}
public PodAutoscalerSpecBuilder(PodAutoscalerSpec instance,Boolean validationEnabled) {
this.fluent = this;
instance = (instance != null ? instance : new PodAutoscalerSpec());
if (instance != null) {
this.withContainerConcurrency(instance.getContainerConcurrency());
this.withProtocolType(instance.getProtocolType());
this.withReachability(instance.getReachability());
this.withScaleTargetRef(instance.getScaleTargetRef());
this.withContainerConcurrency(instance.getContainerConcurrency());
this.withProtocolType(instance.getProtocolType());
this.withReachability(instance.getReachability());
this.withScaleTargetRef(instance.getScaleTargetRef());
}
this.validationEnabled = validationEnabled;
}
PodAutoscalerSpecFluent> fluent;
Boolean validationEnabled;
public PodAutoscalerSpec build() {
PodAutoscalerSpec buildable = new PodAutoscalerSpec(fluent.getContainerConcurrency(),fluent.getProtocolType(),fluent.getReachability(),fluent.buildScaleTargetRef());
return buildable;
}
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy