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

io.fabric8.openshift.api.model.installer.v1.ClusterMetadataBuilder Maven / Gradle / Ivy

The newest version!
package io.fabric8.openshift.api.model.installer.v1;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class ClusterMetadataBuilder extends ClusterMetadataFluent implements VisitableBuilder{
  public ClusterMetadataBuilder() {
    this(new ClusterMetadata());
  }
  
  public ClusterMetadataBuilder(ClusterMetadataFluent fluent) {
    this(fluent, new ClusterMetadata());
  }
  
  public ClusterMetadataBuilder(ClusterMetadataFluent fluent,ClusterMetadata instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public ClusterMetadataBuilder(ClusterMetadata instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  ClusterMetadataFluent fluent;
  
  public ClusterMetadata build() {
    ClusterMetadata buildable = new ClusterMetadata(fluent.buildAws(),fluent.buildAzure(),fluent.buildBaremetal(),fluent.getClusterID(),fluent.getClusterName(),fluent.getCustomFeatureSet(),fluent.getFeatureSet(),fluent.buildGcp(),fluent.buildIbmcloud(),fluent.getInfraID(),fluent.buildNutanix(),fluent.buildOpenstack(),fluent.buildOvirt(),fluent.buildPowervs(),fluent.buildVsphere());
    buildable.setAdditionalProperties(fluent.getAdditionalProperties());
    return buildable;
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy