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

io.github.microcks.operator.api.model.OpenShiftRouteSpecBuilder Maven / Gradle / Ivy

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

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class OpenShiftRouteSpecBuilder extends OpenShiftRouteSpecFluent implements VisitableBuilder{
  public OpenShiftRouteSpecBuilder() {
    this(new OpenShiftRouteSpec());
  }
  
  public OpenShiftRouteSpecBuilder(OpenShiftRouteSpecFluent fluent) {
    this(fluent, new OpenShiftRouteSpec());
  }
  
  public OpenShiftRouteSpecBuilder(OpenShiftRouteSpecFluent fluent,OpenShiftRouteSpec instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public OpenShiftRouteSpecBuilder(OpenShiftRouteSpec instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  OpenShiftRouteSpecFluent fluent;
  
  public OpenShiftRouteSpec build() {
    OpenShiftRouteSpec buildable = new OpenShiftRouteSpec();
    buildable.setEnabled(fluent.isEnabled());
    buildable.setTlsTermination(fluent.getTlsTermination());
    buildable.setTlsKey(fluent.getTlsKey());
    buildable.setTlsCertificate(fluent.getTlsCertificate());
    buildable.setTlsCaCertificate(fluent.getTlsCaCertificate());
    buildable.setTlsDestinationCaCertificate(fluent.getTlsDestinationCaCertificate());
    buildable.setTlsInsecureEdgeTerminationPolicy(fluent.getTlsInsecureEdgeTerminationPolicy());
    return buildable;
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy