io.fabric8.kubernetes.api.model.autoscaling.v2beta1.PodsMetricStatusBuilder Maven / Gradle / Ivy
The newest version!
package io.fabric8.kubernetes.api.model.autoscaling.v2beta1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class PodsMetricStatusBuilder extends PodsMetricStatusFluent implements VisitableBuilder{
public PodsMetricStatusBuilder() {
this(new PodsMetricStatus());
}
public PodsMetricStatusBuilder(PodsMetricStatusFluent> fluent) {
this(fluent, new PodsMetricStatus());
}
public PodsMetricStatusBuilder(PodsMetricStatusFluent> fluent,PodsMetricStatus instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public PodsMetricStatusBuilder(PodsMetricStatus instance) {
this.fluent = this;
this.copyInstance(instance);
}
PodsMetricStatusFluent> fluent;
public PodsMetricStatus build() {
PodsMetricStatus buildable = new PodsMetricStatus(fluent.getCurrentAverageValue(),fluent.getMetricName(),fluent.buildSelector());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
return buildable;
}
}