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

io.kubernetes.client.openapi.models.V1NodeSpecBuilder 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;
public class V1NodeSpecBuilder extends V1NodeSpecFluent implements VisitableBuilder{
  public V1NodeSpecBuilder() {
    this(new V1NodeSpec());
  }
  
  public V1NodeSpecBuilder(V1NodeSpecFluent fluent) {
    this(fluent, new V1NodeSpec());
  }
  
  public V1NodeSpecBuilder(V1NodeSpecFluent fluent,V1NodeSpec instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public V1NodeSpecBuilder(V1NodeSpec instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  V1NodeSpecFluent fluent;
  
  public V1NodeSpec build() {
    V1NodeSpec buildable = new V1NodeSpec();
    buildable.setConfigSource(fluent.buildConfigSource());
    buildable.setExternalID(fluent.getExternalID());
    buildable.setPodCIDR(fluent.getPodCIDR());
    buildable.setPodCIDRs(fluent.getPodCIDRs());
    buildable.setProviderID(fluent.getProviderID());
    buildable.setTaints(fluent.buildTaints());
    buildable.setUnschedulable(fluent.getUnschedulable());
    return buildable;
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy