All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.fabric8.knative.internal.autoscaling.v1alpha1.PodAutoscalerSpecBuilder Maven / Gradle / Ivy

package io.fabric8.knative.internal.autoscaling.v1alpha1;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class PodAutoscalerSpecBuilder extends PodAutoscalerSpecFluent implements VisitableBuilder{
  public PodAutoscalerSpecBuilder() {
    this(new PodAutoscalerSpec());
  }
  
  public PodAutoscalerSpecBuilder(PodAutoscalerSpecFluent fluent) {
    this(fluent, new PodAutoscalerSpec());
  }
  
  public PodAutoscalerSpecBuilder(PodAutoscalerSpecFluent fluent,PodAutoscalerSpec instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public PodAutoscalerSpecBuilder(PodAutoscalerSpec instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  PodAutoscalerSpecFluent fluent;
  
  public PodAutoscalerSpec build() {
    PodAutoscalerSpec buildable = new PodAutoscalerSpec(fluent.getContainerConcurrency(),fluent.getProtocolType(),fluent.getReachability(),fluent.buildScaleTargetRef());
    buildable.setAdditionalProperties(fluent.getAdditionalProperties());
    return buildable;
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy