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

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

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

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class MetricIdentifierBuilder extends MetricIdentifierFluent implements VisitableBuilder{
  public MetricIdentifierBuilder() {
    this(new MetricIdentifier());
  }
  
  public MetricIdentifierBuilder(MetricIdentifierFluent fluent) {
    this(fluent, new MetricIdentifier());
  }
  
  public MetricIdentifierBuilder(MetricIdentifierFluent fluent,MetricIdentifier instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public MetricIdentifierBuilder(MetricIdentifier instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  MetricIdentifierFluent fluent;
  
  public MetricIdentifier build() {
    MetricIdentifier buildable = new MetricIdentifier(fluent.getName(),fluent.buildSelector());
    buildable.setAdditionalProperties(fluent.getAdditionalProperties());
    return buildable;
  }
  

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy