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

io.fabric8.kubernetes.api.model.extensions.NetworkPolicyPortBuilder Maven / Gradle / Ivy

There is a newer version: 6.13.4
Show newest version
package io.fabric8.kubernetes.api.model.extensions;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class NetworkPolicyPortBuilder extends NetworkPolicyPortFluent implements VisitableBuilder{
  public NetworkPolicyPortBuilder() {
    this(new NetworkPolicyPort());
  }
  
  public NetworkPolicyPortBuilder(NetworkPolicyPortFluent fluent) {
    this(fluent, new NetworkPolicyPort());
  }
  
  public NetworkPolicyPortBuilder(NetworkPolicyPortFluent fluent,NetworkPolicyPort instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public NetworkPolicyPortBuilder(NetworkPolicyPort instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  NetworkPolicyPortFluent fluent;
  
  public NetworkPolicyPort build() {
    NetworkPolicyPort buildable = new NetworkPolicyPort(fluent.getEndPort(),fluent.buildPort(),fluent.getProtocol());
    buildable.setAdditionalProperties(fluent.getAdditionalProperties());
    return buildable;
  }
  

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy