
io.fabric8.kubernetes.api.model.autoscaling.v2beta1.PodsMetricSourceBuilder Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model.autoscaling.v2beta1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
public class PodsMetricSourceBuilder extends PodsMetricSourceFluentImpl implements VisitableBuilder{
public PodsMetricSourceBuilder() {
this(false);
}
public PodsMetricSourceBuilder(Boolean validationEnabled) {
this(new PodsMetricSource(), validationEnabled);
}
public PodsMetricSourceBuilder(PodsMetricSourceFluent> fluent) {
this(fluent, false);
}
public PodsMetricSourceBuilder(PodsMetricSourceFluent> fluent,Boolean validationEnabled) {
this(fluent, new PodsMetricSource(), validationEnabled);
}
public PodsMetricSourceBuilder(PodsMetricSourceFluent> fluent,PodsMetricSource instance) {
this(fluent, instance, false);
}
public PodsMetricSourceBuilder(PodsMetricSourceFluent> fluent,PodsMetricSource instance,Boolean validationEnabled) {
this.fluent = fluent;
fluent.withMetricName(instance.getMetricName());
fluent.withSelector(instance.getSelector());
fluent.withTargetAverageValue(instance.getTargetAverageValue());
fluent.withAdditionalProperties(instance.getAdditionalProperties());
this.validationEnabled = validationEnabled;
}
public PodsMetricSourceBuilder(PodsMetricSource instance) {
this(instance,false);
}
public PodsMetricSourceBuilder(PodsMetricSource instance,Boolean validationEnabled) {
this.fluent = this;
this.withMetricName(instance.getMetricName());
this.withSelector(instance.getSelector());
this.withTargetAverageValue(instance.getTargetAverageValue());
this.withAdditionalProperties(instance.getAdditionalProperties());
this.validationEnabled = validationEnabled;
}
PodsMetricSourceFluent> fluent;
Boolean validationEnabled;
public PodsMetricSource build() {
PodsMetricSource buildable = new PodsMetricSource(fluent.getMetricName(),fluent.getSelector(),fluent.getTargetAverageValue());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy