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

io.fabric8.openshift.api.model.miscellaneous.metal3.v1alpha1.BareMetalHostSpecBuilder Maven / Gradle / Ivy

package io.fabric8.openshift.api.model.miscellaneous.metal3.v1alpha1;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
public class BareMetalHostSpecBuilder extends BareMetalHostSpecFluentImpl implements VisitableBuilder{
  public BareMetalHostSpecBuilder() {
    this(false);
  }
  public BareMetalHostSpecBuilder(Boolean validationEnabled) {
    this(new BareMetalHostSpec(), validationEnabled);
  }
  public BareMetalHostSpecBuilder(BareMetalHostSpecFluent fluent) {
    this(fluent, false);
  }
  public BareMetalHostSpecBuilder(BareMetalHostSpecFluent fluent,Boolean validationEnabled) {
    this(fluent, new BareMetalHostSpec(), validationEnabled);
  }
  public BareMetalHostSpecBuilder(BareMetalHostSpecFluent fluent,BareMetalHostSpec instance) {
    this(fluent, instance, false);
  }
  public BareMetalHostSpecBuilder(BareMetalHostSpecFluent fluent,BareMetalHostSpec instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    if (instance != null) {
      fluent.withAutomatedCleaningMode(instance.getAutomatedCleaningMode());
      fluent.withBmc(instance.getBmc());
      fluent.withBootMACAddress(instance.getBootMACAddress());
      fluent.withBootMode(instance.getBootMode());
      fluent.withConsumerRef(instance.getConsumerRef());
      fluent.withCustomDeploy(instance.getCustomDeploy());
      fluent.withDescription(instance.getDescription());
      fluent.withExternallyProvisioned(instance.getExternallyProvisioned());
      fluent.withFirmware(instance.getFirmware());
      fluent.withHardwareProfile(instance.getHardwareProfile());
      fluent.withImage(instance.getImage());
      fluent.withMetaData(instance.getMetaData());
      fluent.withNetworkData(instance.getNetworkData());
      fluent.withOnline(instance.getOnline());
      fluent.withPreprovisioningNetworkDataName(instance.getPreprovisioningNetworkDataName());
      fluent.withRaid(instance.getRaid());
      fluent.withRootDeviceHints(instance.getRootDeviceHints());
      fluent.withTaints(instance.getTaints());
      fluent.withUserData(instance.getUserData());
      fluent.withAdditionalProperties(instance.getAdditionalProperties());
    }
    this.validationEnabled = validationEnabled; 
  }
  public BareMetalHostSpecBuilder(BareMetalHostSpec instance) {
    this(instance,false);
  }
  public BareMetalHostSpecBuilder(BareMetalHostSpec instance,Boolean validationEnabled) {
    this.fluent = this; 
    if (instance != null) {
      this.withAutomatedCleaningMode(instance.getAutomatedCleaningMode());
      this.withBmc(instance.getBmc());
      this.withBootMACAddress(instance.getBootMACAddress());
      this.withBootMode(instance.getBootMode());
      this.withConsumerRef(instance.getConsumerRef());
      this.withCustomDeploy(instance.getCustomDeploy());
      this.withDescription(instance.getDescription());
      this.withExternallyProvisioned(instance.getExternallyProvisioned());
      this.withFirmware(instance.getFirmware());
      this.withHardwareProfile(instance.getHardwareProfile());
      this.withImage(instance.getImage());
      this.withMetaData(instance.getMetaData());
      this.withNetworkData(instance.getNetworkData());
      this.withOnline(instance.getOnline());
      this.withPreprovisioningNetworkDataName(instance.getPreprovisioningNetworkDataName());
      this.withRaid(instance.getRaid());
      this.withRootDeviceHints(instance.getRootDeviceHints());
      this.withTaints(instance.getTaints());
      this.withUserData(instance.getUserData());
      this.withAdditionalProperties(instance.getAdditionalProperties());
    }
    this.validationEnabled = validationEnabled; 
  }
  BareMetalHostSpecFluent fluent;
  Boolean validationEnabled;
  public BareMetalHostSpec build() {
    BareMetalHostSpec buildable = new BareMetalHostSpec(fluent.getAutomatedCleaningMode(),fluent.getBmc(),fluent.getBootMACAddress(),fluent.getBootMode(),fluent.getConsumerRef(),fluent.getCustomDeploy(),fluent.getDescription(),fluent.getExternallyProvisioned(),fluent.getFirmware(),fluent.getHardwareProfile(),fluent.getImage(),fluent.getMetaData(),fluent.getNetworkData(),fluent.getOnline(),fluent.getPreprovisioningNetworkDataName(),fluent.getRaid(),fluent.getRootDeviceHints(),fluent.getTaints(),fluent.getUserData());
    buildable.setAdditionalProperties(fluent.getAdditionalProperties());
    return buildable;
  }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy