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

io.fabric8.knative.duck.v1alpha1.PlaceableBuilder Maven / Gradle / Ivy

package io.fabric8.knative.duck.v1alpha1;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class PlaceableBuilder extends PlaceableFluent implements VisitableBuilder{
  public PlaceableBuilder() {
    this(new Placeable());
  }
  
  public PlaceableBuilder(PlaceableFluent fluent) {
    this(fluent, new Placeable());
  }
  
  public PlaceableBuilder(PlaceableFluent fluent,Placeable instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public PlaceableBuilder(Placeable instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  PlaceableFluent fluent;
  
  public Placeable build() {
    Placeable buildable = new Placeable(fluent.getMaxAllowedVReplicas(),fluent.buildPlacements());
    buildable.setAdditionalProperties(fluent.getAdditionalProperties());
    return buildable;
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy