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

io.kubernetes.client.openapi.models.V1NodeBuilder 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 V1NodeBuilder extends V1NodeFluent implements VisitableBuilder{
  public V1NodeBuilder() {
    this(new V1Node());
  }
  
  public V1NodeBuilder(V1NodeFluent fluent) {
    this(fluent, new V1Node());
  }
  
  public V1NodeBuilder(V1NodeFluent fluent,V1Node instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public V1NodeBuilder(V1Node instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  V1NodeFluent fluent;
  
  public V1Node build() {
    V1Node buildable = new V1Node();
    buildable.setApiVersion(fluent.getApiVersion());
    buildable.setKind(fluent.getKind());
    buildable.setMetadata(fluent.buildMetadata());
    buildable.setSpec(fluent.buildSpec());
    buildable.setStatus(fluent.buildStatus());
    return buildable;
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy