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

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

There is a newer version: 22.0.0
Show newest version
package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Boolean;
public class V2beta2ResourceMetricSourceBuilder extends V2beta2ResourceMetricSourceFluentImpl implements VisitableBuilder{
  public V2beta2ResourceMetricSourceBuilder() {
    this(false);
  }
  public V2beta2ResourceMetricSourceBuilder(Boolean validationEnabled) {
    this(new V2beta2ResourceMetricSource(), validationEnabled);
  }
  public V2beta2ResourceMetricSourceBuilder(V2beta2ResourceMetricSourceFluent fluent) {
    this(fluent, false);
  }
  public V2beta2ResourceMetricSourceBuilder(V2beta2ResourceMetricSourceFluent fluent,Boolean validationEnabled) {
    this(fluent, new V2beta2ResourceMetricSource(), validationEnabled);
  }
  public V2beta2ResourceMetricSourceBuilder(V2beta2ResourceMetricSourceFluent fluent,V2beta2ResourceMetricSource instance) {
    this(fluent, instance, false);
  }
  public V2beta2ResourceMetricSourceBuilder(V2beta2ResourceMetricSourceFluent fluent,V2beta2ResourceMetricSource instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    fluent.withName(instance.getName());

    fluent.withTarget(instance.getTarget());

    this.validationEnabled = validationEnabled; 
  }
  public V2beta2ResourceMetricSourceBuilder(V2beta2ResourceMetricSource instance) {
    this(instance,false);
  }
  public V2beta2ResourceMetricSourceBuilder(V2beta2ResourceMetricSource instance,Boolean validationEnabled) {
    this.fluent = this; 
    this.withName(instance.getName());

    this.withTarget(instance.getTarget());

    this.validationEnabled = validationEnabled; 
  }
  V2beta2ResourceMetricSourceFluent fluent;
  Boolean validationEnabled;
  public V2beta2ResourceMetricSource build() {
    V2beta2ResourceMetricSource buildable = new V2beta2ResourceMetricSource();
    buildable.setName(fluent.getName());
    buildable.setTarget(fluent.getTarget());
    return buildable;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy