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

io.fabric8.kubernetes.api.model.autoscaling.v2.ResourceMetricSourceBuilder Maven / Gradle / Ivy

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

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class ResourceMetricSourceBuilder extends ResourceMetricSourceFluent implements VisitableBuilder{
  public ResourceMetricSourceBuilder() {
    this(new ResourceMetricSource());
  }
  
  public ResourceMetricSourceBuilder(ResourceMetricSourceFluent fluent) {
    this(fluent, new ResourceMetricSource());
  }
  
  public ResourceMetricSourceBuilder(ResourceMetricSourceFluent fluent,ResourceMetricSource instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public ResourceMetricSourceBuilder(ResourceMetricSource instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  ResourceMetricSourceFluent fluent;
  
  public ResourceMetricSource build() {
    ResourceMetricSource buildable = new ResourceMetricSource(fluent.getName(),fluent.buildTarget());
    buildable.setAdditionalProperties(fluent.getAdditionalProperties());
    return buildable;
  }
  

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy