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

io.dekorate.prometheus.model.EndpointBuilder 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 EndpointBuilder extends EndpointFluent implements VisitableBuilder{
  public EndpointBuilder() {
    this(new Endpoint());
  }
  
  public EndpointBuilder(EndpointFluent fluent) {
    this(fluent, new Endpoint());
  }
  
  public EndpointBuilder(EndpointFluent fluent,Endpoint instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public EndpointBuilder(Endpoint instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  EndpointFluent fluent;
  
  public Endpoint build() {
    Endpoint buildable = new Endpoint(fluent.getPort(),fluent.getProxyUrl(),fluent.getScheme(),fluent.getTargetPort(),fluent.getPath(),fluent.getInterval(),fluent.isHonorLabels());
    return buildable;
  }
  

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy