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

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;
public class ClusterNetworkEntryBuilder extends ClusterNetworkEntryFluent implements VisitableBuilder{
  public ClusterNetworkEntryBuilder() {
    this(new ClusterNetworkEntry());
  }
  
  public ClusterNetworkEntryBuilder(ClusterNetworkEntryFluent fluent) {
    this(fluent, new ClusterNetworkEntry());
  }
  
  public ClusterNetworkEntryBuilder(ClusterNetworkEntryFluent fluent,ClusterNetworkEntry instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public ClusterNetworkEntryBuilder(ClusterNetworkEntry instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  ClusterNetworkEntryFluent fluent;
  
  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