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

io.github.microcks.operator.api.base.v1alpha1.MicrocksSpecBuilder 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 MicrocksSpecBuilder extends MicrocksSpecFluent implements VisitableBuilder{
  public MicrocksSpecBuilder() {
    this(new MicrocksSpec());
  }
  
  public MicrocksSpecBuilder(MicrocksSpecFluent fluent) {
    this(fluent, new MicrocksSpec());
  }
  
  public MicrocksSpecBuilder(MicrocksSpecFluent fluent,MicrocksSpec instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public MicrocksSpecBuilder(MicrocksSpec instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  MicrocksSpecFluent fluent;
  
  public MicrocksSpec build() {
    MicrocksSpec buildable = new MicrocksSpec();
    buildable.setVersion(fluent.getVersion());
    buildable.setMicrocks(fluent.buildMicrocks());
    buildable.setPostman(fluent.buildPostman());
    buildable.setKeycloak(fluent.buildKeycloak());
    buildable.setFeatures(fluent.buildFeatures());
    buildable.setCommonLabels(fluent.getCommonLabels());
    buildable.setCommonAnnotations(fluent.getCommonAnnotations());
    buildable.setCommonAffinities(fluent.getCommonAffinities());
    buildable.setCommonTolerations(fluent.getCommonTolerations());
    return buildable;
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy