io.fabric8.openshift.api.model.installer.v1.ClusterNetworkEntryBuilder Maven / Gradle / Ivy
package io.fabric8.openshift.api.model.installer.v1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
public class ClusterNetworkEntryBuilder extends ClusterNetworkEntryFluentImpl implements VisitableBuilder{
public ClusterNetworkEntryBuilder() {
this(false);
}
public ClusterNetworkEntryBuilder(Boolean validationEnabled) {
this(new ClusterNetworkEntry(), validationEnabled);
}
public ClusterNetworkEntryBuilder(ClusterNetworkEntryFluent> fluent) {
this(fluent, false);
}
public ClusterNetworkEntryBuilder(ClusterNetworkEntryFluent> fluent,Boolean validationEnabled) {
this(fluent, new ClusterNetworkEntry(), validationEnabled);
}
public ClusterNetworkEntryBuilder(ClusterNetworkEntryFluent> fluent,ClusterNetworkEntry instance) {
this(fluent, instance, false);
}
public ClusterNetworkEntryBuilder(ClusterNetworkEntryFluent> fluent,ClusterNetworkEntry instance,Boolean validationEnabled) {
this.fluent = fluent;
if (instance != null) {
fluent.withCidr(instance.getCidr());
fluent.withHostPrefix(instance.getHostPrefix());
fluent.withHostSubnetLength(instance.getHostSubnetLength());
fluent.withAdditionalProperties(instance.getAdditionalProperties());
}
this.validationEnabled = validationEnabled;
}
public ClusterNetworkEntryBuilder(ClusterNetworkEntry instance) {
this(instance,false);
}
public ClusterNetworkEntryBuilder(ClusterNetworkEntry instance,Boolean validationEnabled) {
this.fluent = this;
if (instance != null) {
this.withCidr(instance.getCidr());
this.withHostPrefix(instance.getHostPrefix());
this.withHostSubnetLength(instance.getHostSubnetLength());
this.withAdditionalProperties(instance.getAdditionalProperties());
}
this.validationEnabled = validationEnabled;
}
ClusterNetworkEntryFluent> fluent;
Boolean validationEnabled;
public ClusterNetworkEntry build() {
ClusterNetworkEntry buildable = new ClusterNetworkEntry(fluent.getCidr(),fluent.getHostPrefix(),fluent.getHostSubnetLength());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
return buildable;
}
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy