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

io.dekorate.prometheus.model.ServiceMonitorBuilder Maven / Gradle / Ivy

There is a newer version: 4.1.4
Show newest version
package io.dekorate.prometheus.model;

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy