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

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

There is a newer version: 6.13.4
Show newest version
package io.fabric8.openshift.api.model.miscellaneous.metal3.v1alpha1;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
public class HardwareRAIDVolumeBuilder extends HardwareRAIDVolumeFluentImpl implements VisitableBuilder{
  public HardwareRAIDVolumeBuilder() {
    this(false);
  }
  public HardwareRAIDVolumeBuilder(Boolean validationEnabled) {
    this(new HardwareRAIDVolume(), validationEnabled);
  }
  public HardwareRAIDVolumeBuilder(HardwareRAIDVolumeFluent fluent) {
    this(fluent, false);
  }
  public HardwareRAIDVolumeBuilder(HardwareRAIDVolumeFluent fluent,Boolean validationEnabled) {
    this(fluent, new HardwareRAIDVolume(), validationEnabled);
  }
  public HardwareRAIDVolumeBuilder(HardwareRAIDVolumeFluent fluent,HardwareRAIDVolume instance) {
    this(fluent, instance, false);
  }
  public HardwareRAIDVolumeBuilder(HardwareRAIDVolumeFluent fluent,HardwareRAIDVolume instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    fluent.withLevel(instance.getLevel()); 
    fluent.withName(instance.getName()); 
    fluent.withNumberOfPhysicalDisks(instance.getNumberOfPhysicalDisks()); 
    fluent.withRotational(instance.getRotational()); 
    fluent.withSizeGibibytes(instance.getSizeGibibytes()); 
    fluent.withAdditionalProperties(instance.getAdditionalProperties());

    this.validationEnabled = validationEnabled; 
  }
  public HardwareRAIDVolumeBuilder(HardwareRAIDVolume instance) {
    this(instance,false);
  }
  public HardwareRAIDVolumeBuilder(HardwareRAIDVolume instance,Boolean validationEnabled) {
    this.fluent = this; 
    this.withLevel(instance.getLevel()); 
    this.withName(instance.getName()); 
    this.withNumberOfPhysicalDisks(instance.getNumberOfPhysicalDisks()); 
    this.withRotational(instance.getRotational()); 
    this.withSizeGibibytes(instance.getSizeGibibytes()); 
    this.withAdditionalProperties(instance.getAdditionalProperties());

    this.validationEnabled = validationEnabled; 
  }
  HardwareRAIDVolumeFluent fluent;
  Boolean validationEnabled;
  public HardwareRAIDVolume build() {
    HardwareRAIDVolume buildable = new HardwareRAIDVolume(fluent.getLevel(),fluent.getName(),fluent.getNumberOfPhysicalDisks(),fluent.getRotational(),fluent.getSizeGibibytes());
    buildable.setAdditionalProperties(fluent.getAdditionalProperties());
    return buildable;
  }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy