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

io.dekorate.prometheus.model.ServiceMonitorSpecBuilder 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 ServiceMonitorSpecBuilder extends ServiceMonitorSpecFluent implements VisitableBuilder{
  public ServiceMonitorSpecBuilder() {
    this(new ServiceMonitorSpec());
  }
  
  public ServiceMonitorSpecBuilder(ServiceMonitorSpecFluent fluent) {
    this(fluent, new ServiceMonitorSpec());
  }
  
  public ServiceMonitorSpecBuilder(ServiceMonitorSpecFluent fluent,ServiceMonitorSpec instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public ServiceMonitorSpecBuilder(ServiceMonitorSpec instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  ServiceMonitorSpecFluent fluent;
  
  public ServiceMonitorSpec build() {
    ServiceMonitorSpec buildable = new ServiceMonitorSpec(fluent.buildSelector(),fluent.buildEndpoints());
    return buildable;
  }
  

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy