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

io.github.microcks.operator.api.base.v1alpha1.KeycloakSpecBuilder 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 KeycloakSpecBuilder extends KeycloakSpecFluent implements VisitableBuilder{
  public KeycloakSpecBuilder() {
    this(new KeycloakSpec());
  }
  
  public KeycloakSpecBuilder(KeycloakSpecFluent fluent) {
    this(fluent, new KeycloakSpec());
  }
  
  public KeycloakSpecBuilder(KeycloakSpecFluent fluent,KeycloakSpec instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public KeycloakSpecBuilder(KeycloakSpec instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  KeycloakSpecFluent fluent;
  
  public KeycloakSpec build() {
    KeycloakSpec buildable = new KeycloakSpec();
    buildable.setInstall(fluent.isInstall());
    buildable.setRealm(fluent.getRealm());
    buildable.setImage(fluent.buildImage());
    buildable.setUrl(fluent.getUrl());
    buildable.setPrivateUrl(fluent.getPrivateUrl());
    buildable.setIngress(fluent.buildIngress());
    buildable.setPersistent(fluent.isPersistent());
    buildable.setPostgresImage(fluent.buildPostgresImage());
    buildable.setVolumeSize(fluent.getVolumeSize());
    buildable.setStorageClassName(fluent.getStorageClassName());
    buildable.setPvcAnnotations(fluent.getPvcAnnotations());
    buildable.setServiceAccount(fluent.getServiceAccount());
    buildable.setServiceAccountCredentials(fluent.getServiceAccountCredentials());
    buildable.setOperatorServiceAccountEnabled(fluent.isOperatorServiceAccountEnabled());
    buildable.setOpenshift(fluent.buildOpenshift());
    return buildable;
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy