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

io.github.microcks.operator.api.base.v1alpha1.MicrocksBuilder Maven / Gradle / Ivy

There is a newer version: 0.0.2
Show newest version
package io.github.microcks.operator.api.base.v1alpha1;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class MicrocksBuilder extends MicrocksFluent implements VisitableBuilder{
  public MicrocksBuilder() {
    this(new Microcks());
  }
  
  public MicrocksBuilder(MicrocksFluent fluent) {
    this(fluent, new Microcks());
  }
  
  public MicrocksBuilder(MicrocksFluent fluent,Microcks instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public MicrocksBuilder(Microcks instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  MicrocksFluent fluent;
  
  public Microcks build() {
    Microcks buildable = new Microcks();
    buildable.setMetadata(fluent.buildMetadata());
    buildable.setSpec(fluent.buildSpec());
    buildable.setStatus(fluent.buildStatus());
    buildable.setKind(fluent.getKind());
    buildable.setApiVersion(fluent.getApiVersion());
    return buildable;
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy