io.fabric8.openshift.api.model.installer.baremetal.v1.HostBuilder Maven / Gradle / Ivy
package io.fabric8.openshift.api.model.installer.baremetal.v1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
public class HostBuilder extends HostFluentImpl implements VisitableBuilder{
public HostBuilder() {
this(false);
}
public HostBuilder(Boolean validationEnabled) {
this(new Host(), validationEnabled);
}
public HostBuilder(HostFluent> fluent) {
this(fluent, false);
}
public HostBuilder(io.fabric8.openshift.api.model.installer.baremetal.v1.HostFluent> fluent,java.lang.Boolean validationEnabled) {
this(fluent, new Host(), validationEnabled);
}
public HostBuilder(io.fabric8.openshift.api.model.installer.baremetal.v1.HostFluent> fluent,io.fabric8.openshift.api.model.installer.baremetal.v1.Host instance) {
this(fluent, instance, false);
}
public HostBuilder(io.fabric8.openshift.api.model.installer.baremetal.v1.HostFluent> fluent,io.fabric8.openshift.api.model.installer.baremetal.v1.Host instance,java.lang.Boolean validationEnabled) {
this.fluent = fluent;
fluent.withBmc(instance.getBmc());
fluent.withBootMACAddress(instance.getBootMACAddress());
fluent.withBootMode(instance.getBootMode());
fluent.withHardwareProfile(instance.getHardwareProfile());
fluent.withName(instance.getName());
fluent.withNetworkConfig(instance.getNetworkConfig());
fluent.withRole(instance.getRole());
fluent.withRootDeviceHints(instance.getRootDeviceHints());
fluent.withAdditionalProperties(instance.getAdditionalProperties());
this.validationEnabled = validationEnabled;
}
public HostBuilder(io.fabric8.openshift.api.model.installer.baremetal.v1.Host instance) {
this(instance,false);
}
public HostBuilder(io.fabric8.openshift.api.model.installer.baremetal.v1.Host instance,java.lang.Boolean validationEnabled) {
this.fluent = this;
this.withBmc(instance.getBmc());
this.withBootMACAddress(instance.getBootMACAddress());
this.withBootMode(instance.getBootMode());
this.withHardwareProfile(instance.getHardwareProfile());
this.withName(instance.getName());
this.withNetworkConfig(instance.getNetworkConfig());
this.withRole(instance.getRole());
this.withRootDeviceHints(instance.getRootDeviceHints());
this.withAdditionalProperties(instance.getAdditionalProperties());
this.validationEnabled = validationEnabled;
}
io.fabric8.openshift.api.model.installer.baremetal.v1.HostFluent> fluent;
java.lang.Boolean validationEnabled;
public io.fabric8.openshift.api.model.installer.baremetal.v1.Host build() {
Host buildable = new Host(fluent.getBmc(),fluent.getBootMACAddress(),fluent.getBootMode(),fluent.getHardwareProfile(),fluent.getName(),fluent.getNetworkConfig(),fluent.getRole(),fluent.getRootDeviceHints());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
return buildable;
}
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy