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

io.kubernetes.client.openapi.models.V1ServicePortBuilder Maven / Gradle / Ivy

There is a newer version: 24.0.0-legacy
Show newest version
package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
public class V1ServicePortBuilder extends V1ServicePortFluent implements VisitableBuilder{
  public V1ServicePortBuilder() {
    this(new V1ServicePort());
  }
  
  public V1ServicePortBuilder(V1ServicePortFluent fluent) {
    this(fluent, new V1ServicePort());
  }
  
  public V1ServicePortBuilder(V1ServicePortFluent fluent,V1ServicePort instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public V1ServicePortBuilder(V1ServicePort instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  V1ServicePortFluent fluent;
  
  public V1ServicePort build() {
    V1ServicePort buildable = new V1ServicePort();
    buildable.setAppProtocol(fluent.getAppProtocol());
    buildable.setName(fluent.getName());
    buildable.setNodePort(fluent.getNodePort());
    buildable.setPort(fluent.getPort());
    buildable.setProtocol(fluent.getProtocol());
    buildable.setTargetPort(fluent.getTargetPort());
    return buildable;
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy