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

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

The newest version!
package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
public class V1beta2DeviceBuilder extends V1beta2DeviceFluent implements VisitableBuilder{
  public V1beta2DeviceBuilder() {
    this(new V1beta2Device());
  }
  
  public V1beta2DeviceBuilder(V1beta2DeviceFluent fluent) {
    this(fluent, new V1beta2Device());
  }
  
  public V1beta2DeviceBuilder(V1beta2DeviceFluent fluent,V1beta2Device instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public V1beta2DeviceBuilder(V1beta2Device instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  V1beta2DeviceFluent fluent;
  
  public V1beta2Device build() {
    V1beta2Device buildable = new V1beta2Device();
    buildable.setAllNodes(fluent.getAllNodes());
    buildable.setAttributes(fluent.getAttributes());
    buildable.setCapacity(fluent.getCapacity());
    buildable.setConsumesCounters(fluent.buildConsumesCounters());
    buildable.setName(fluent.getName());
    buildable.setNodeName(fluent.getNodeName());
    buildable.setNodeSelector(fluent.buildNodeSelector());
    buildable.setTaints(fluent.buildTaints());
    return buildable;
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy