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

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

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

import io.kubernetes.client.fluent.VisitableBuilder;
public class V1EndpointBuilder extends V1EndpointFluent implements VisitableBuilder{
  public V1EndpointBuilder() {
    this(new V1Endpoint());
  }
  
  public V1EndpointBuilder(V1EndpointFluent fluent) {
    this(fluent, new V1Endpoint());
  }
  
  public V1EndpointBuilder(V1EndpointFluent fluent,V1Endpoint instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public V1EndpointBuilder(V1Endpoint instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  V1EndpointFluent fluent;
  
  public V1Endpoint build() {
    V1Endpoint buildable = new V1Endpoint();
    buildable.setAddresses(fluent.getAddresses());
    buildable.setConditions(fluent.buildConditions());
    buildable.setDeprecatedTopology(fluent.getDeprecatedTopology());
    buildable.setHints(fluent.buildHints());
    buildable.setHostname(fluent.getHostname());
    buildable.setNodeName(fluent.getNodeName());
    buildable.setTargetRef(fluent.buildTargetRef());
    buildable.setZone(fluent.getZone());
    return buildable;
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy