io.fabric8.openshift.api.model.miscellaneous.metal3.v1alpha1.BMCDetailsBuilder 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 BMCDetailsBuilder extends BMCDetailsFluentImpl implements VisitableBuilder{
public BMCDetailsBuilder() {
this(false);
}
public BMCDetailsBuilder(Boolean validationEnabled) {
this(new BMCDetails(), validationEnabled);
}
public BMCDetailsBuilder(BMCDetailsFluent> fluent) {
this(fluent, false);
}
public BMCDetailsBuilder(BMCDetailsFluent> fluent,Boolean validationEnabled) {
this(fluent, new BMCDetails(), validationEnabled);
}
public BMCDetailsBuilder(BMCDetailsFluent> fluent,BMCDetails instance) {
this(fluent, instance, false);
}
public BMCDetailsBuilder(BMCDetailsFluent> fluent,BMCDetails instance,Boolean validationEnabled) {
this.fluent = fluent;
if (instance != null) {
fluent.withAddress(instance.getAddress());
fluent.withCredentialsName(instance.getCredentialsName());
fluent.withDisableCertificateVerification(instance.getDisableCertificateVerification());
fluent.withAdditionalProperties(instance.getAdditionalProperties());
}
this.validationEnabled = validationEnabled;
}
public BMCDetailsBuilder(BMCDetails instance) {
this(instance,false);
}
public BMCDetailsBuilder(BMCDetails instance,Boolean validationEnabled) {
this.fluent = this;
if (instance != null) {
this.withAddress(instance.getAddress());
this.withCredentialsName(instance.getCredentialsName());
this.withDisableCertificateVerification(instance.getDisableCertificateVerification());
this.withAdditionalProperties(instance.getAdditionalProperties());
}
this.validationEnabled = validationEnabled;
}
BMCDetailsFluent> fluent;
Boolean validationEnabled;
public BMCDetails build() {
BMCDetails buildable = new BMCDetails(fluent.getAddress(),fluent.getCredentialsName(),fluent.getDisableCertificateVerification());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
return buildable;
}
}