io.fabric8.kubernetes.api.model.autoscaling.v2.HPAScalingRulesBuilder Maven / Gradle / Ivy
The newest version!
package io.fabric8.kubernetes.api.model.autoscaling.v2;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class HPAScalingRulesBuilder extends HPAScalingRulesFluent implements VisitableBuilder{
public HPAScalingRulesBuilder() {
this(new HPAScalingRules());
}
public HPAScalingRulesBuilder(HPAScalingRulesFluent> fluent) {
this(fluent, new HPAScalingRules());
}
public HPAScalingRulesBuilder(HPAScalingRulesFluent> fluent,HPAScalingRules instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public HPAScalingRulesBuilder(HPAScalingRules instance) {
this.fluent = this;
this.copyInstance(instance);
}
HPAScalingRulesFluent> fluent;
public HPAScalingRules build() {
HPAScalingRules buildable = new HPAScalingRules(fluent.buildPolicies(),fluent.getSelectPolicy(),fluent.getStabilizationWindowSeconds());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
return buildable;
}
}