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

io.fabric8.kubernetes.api.model.discovery.v1.EndpointPortBuilder Maven / Gradle / Ivy

The newest version!
package io.fabric8.kubernetes.api.model.discovery.v1;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class EndpointPortBuilder extends EndpointPortFluent implements VisitableBuilder{
  public EndpointPortBuilder() {
    this(new EndpointPort());
  }
  
  public EndpointPortBuilder(EndpointPortFluent fluent) {
    this(fluent, new EndpointPort());
  }
  
  public EndpointPortBuilder(EndpointPortFluent fluent,EndpointPort instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public EndpointPortBuilder(EndpointPort instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  EndpointPortFluent fluent;
  
  public EndpointPort build() {
    EndpointPort buildable = new EndpointPort(fluent.getAppProtocol(),fluent.getName(),fluent.getPort(),fluent.getProtocol());
    buildable.setAdditionalProperties(fluent.getAdditionalProperties());
    return buildable;
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy