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