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

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

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

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class NetworkPolicyBuilder extends NetworkPolicyFluent implements VisitableBuilder{
  public NetworkPolicyBuilder() {
    this(new NetworkPolicy());
  }
  
  public NetworkPolicyBuilder(NetworkPolicyFluent fluent) {
    this(fluent, new NetworkPolicy());
  }
  
  public NetworkPolicyBuilder(NetworkPolicyFluent fluent,NetworkPolicy instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public NetworkPolicyBuilder(NetworkPolicy instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  NetworkPolicyFluent fluent;
  
  public NetworkPolicy build() {
    NetworkPolicy buildable = new NetworkPolicy(fluent.getApiVersion(),fluent.getKind(),fluent.buildMetadata(),fluent.buildSpec());
    buildable.setAdditionalProperties(fluent.getAdditionalProperties());
    return buildable;
  }
  

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy