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

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

package io.fabric8.kubernetes.api.model.discovery.v1;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class EndpointSliceBuilder extends EndpointSliceFluent implements VisitableBuilder{
  public EndpointSliceBuilder() {
    this(new EndpointSlice());
  }
  
  public EndpointSliceBuilder(EndpointSliceFluent fluent) {
    this(fluent, new EndpointSlice());
  }
  
  public EndpointSliceBuilder(EndpointSliceFluent fluent,EndpointSlice instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public EndpointSliceBuilder(EndpointSlice instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  EndpointSliceFluent fluent;
  
  public EndpointSlice build() {
    EndpointSlice buildable = new EndpointSlice(fluent.getAddressType(),fluent.getApiVersion(),fluent.buildEndpoints(),fluent.getKind(),fluent.buildMetadata(),fluent.buildPorts());
    buildable.setAdditionalProperties(fluent.getAdditionalProperties());
    return buildable;
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy