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

io.fabric8.kubernetes.api.model.autoscaling.v2beta1.ContainerResourceMetricSourceBuilder Maven / Gradle / Ivy

The newest version!
package io.fabric8.kubernetes.api.model.autoscaling.v2beta1;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class ContainerResourceMetricSourceBuilder extends ContainerResourceMetricSourceFluent implements VisitableBuilder{
  public ContainerResourceMetricSourceBuilder() {
    this(new ContainerResourceMetricSource());
  }
  
  public ContainerResourceMetricSourceBuilder(ContainerResourceMetricSourceFluent fluent) {
    this(fluent, new ContainerResourceMetricSource());
  }
  
  public ContainerResourceMetricSourceBuilder(ContainerResourceMetricSourceFluent fluent,ContainerResourceMetricSource instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public ContainerResourceMetricSourceBuilder(ContainerResourceMetricSource instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  ContainerResourceMetricSourceFluent fluent;
  
  public ContainerResourceMetricSource build() {
    ContainerResourceMetricSource buildable = new ContainerResourceMetricSource(fluent.getContainer(),fluent.getName(),fluent.getTargetAverageUtilization(),fluent.getTargetAverageValue());
    buildable.setAdditionalProperties(fluent.getAdditionalProperties());
    return buildable;
  }
  

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy