io.fabric8.kubernetes.api.model.autoscaling.v2beta2.MetricSpecBuilder Maven / Gradle / Ivy
The newest version!
package io.fabric8.kubernetes.api.model.autoscaling.v2beta2;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class MetricSpecBuilder extends MetricSpecFluent implements VisitableBuilder{
public MetricSpecBuilder() {
this(new MetricSpec());
}
public MetricSpecBuilder(MetricSpecFluent> fluent) {
this(fluent, new MetricSpec());
}
public MetricSpecBuilder(MetricSpecFluent> fluent,MetricSpec instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public MetricSpecBuilder(MetricSpec instance) {
this.fluent = this;
this.copyInstance(instance);
}
MetricSpecFluent> fluent;
public MetricSpec build() {
MetricSpec buildable = new MetricSpec(fluent.buildContainerResource(),fluent.buildExternal(),fluent.buildObject(),fluent.buildPods(),fluent.buildResource(),fluent.getType());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
return buildable;
}
}