io.fabric8.kubernetes.api.model.autoscaling.v2.PodsMetricSourceBuilder Maven / Gradle / Ivy
The newest version!
package io.fabric8.kubernetes.api.model.autoscaling.v2;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class PodsMetricSourceBuilder extends PodsMetricSourceFluent implements VisitableBuilder{
public PodsMetricSourceBuilder() {
this(new PodsMetricSource());
}
public PodsMetricSourceBuilder(PodsMetricSourceFluent> fluent) {
this(fluent, new PodsMetricSource());
}
public PodsMetricSourceBuilder(PodsMetricSourceFluent> fluent,PodsMetricSource instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public PodsMetricSourceBuilder(PodsMetricSource instance) {
this.fluent = this;
this.copyInstance(instance);
}
PodsMetricSourceFluent> fluent;
public PodsMetricSource build() {
PodsMetricSource buildable = new PodsMetricSource(fluent.buildMetric(),fluent.buildTarget());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
return buildable;
}
}