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

io.fabric8.kubernetes.api.model.apps.StatefulSetBuilder Maven / Gradle / Ivy

The newest version!
package io.fabric8.kubernetes.api.model.apps;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class StatefulSetBuilder extends StatefulSetFluent implements VisitableBuilder{
  public StatefulSetBuilder() {
    this(new StatefulSet());
  }
  
  public StatefulSetBuilder(StatefulSetFluent fluent) {
    this(fluent, new StatefulSet());
  }
  
  public StatefulSetBuilder(StatefulSetFluent fluent,StatefulSet instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public StatefulSetBuilder(StatefulSet instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  StatefulSetFluent fluent;
  
  public StatefulSet build() {
    StatefulSet buildable = new StatefulSet(fluent.getApiVersion(),fluent.getKind(),fluent.buildMetadata(),fluent.buildSpec(),fluent.buildStatus());
    buildable.setAdditionalProperties(fluent.getAdditionalProperties());
    return buildable;
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy