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

io.kubernetes.client.openapi.models.V2ResourceMetricSourceBuilder Maven / Gradle / Ivy

package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Boolean;
public class V2ResourceMetricSourceBuilder extends V2ResourceMetricSourceFluentImpl implements VisitableBuilder{
  public V2ResourceMetricSourceBuilder() {
    this(false);
  }
  public V2ResourceMetricSourceBuilder(Boolean validationEnabled) {
    this(new V2ResourceMetricSource(), validationEnabled);
  }
  public V2ResourceMetricSourceBuilder(V2ResourceMetricSourceFluent fluent) {
    this(fluent, false);
  }
  public V2ResourceMetricSourceBuilder(V2ResourceMetricSourceFluent fluent,Boolean validationEnabled) {
    this(fluent, new V2ResourceMetricSource(), validationEnabled);
  }
  public V2ResourceMetricSourceBuilder(V2ResourceMetricSourceFluent fluent,V2ResourceMetricSource instance) {
    this(fluent, instance, false);
  }
  public V2ResourceMetricSourceBuilder(V2ResourceMetricSourceFluent fluent,V2ResourceMetricSource instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    if (instance != null) {
      fluent.withName(instance.getName());
      fluent.withTarget(instance.getTarget());
    }
    this.validationEnabled = validationEnabled; 
  }
  public V2ResourceMetricSourceBuilder(V2ResourceMetricSource instance) {
    this(instance,false);
  }
  public V2ResourceMetricSourceBuilder(V2ResourceMetricSource instance,Boolean validationEnabled) {
    this.fluent = this; 
    if (instance != null) {
      this.withName(instance.getName());
      this.withTarget(instance.getTarget());
    }
    this.validationEnabled = validationEnabled; 
  }
  V2ResourceMetricSourceFluent fluent;
  Boolean validationEnabled;
  public V2ResourceMetricSource build() {
    V2ResourceMetricSource buildable = new V2ResourceMetricSource();
    buildable.setName(fluent.getName());
    buildable.setTarget(fluent.getTarget());
    return buildable;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy