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

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

package io.fabric8.kubernetes.api.model.extensions;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class NetworkPolicySpecBuilder extends NetworkPolicySpecFluent implements VisitableBuilder{
  public NetworkPolicySpecBuilder() {
    this(new NetworkPolicySpec());
  }
  
  public NetworkPolicySpecBuilder(NetworkPolicySpecFluent fluent) {
    this(fluent, new NetworkPolicySpec());
  }
  
  public NetworkPolicySpecBuilder(NetworkPolicySpecFluent fluent,NetworkPolicySpec instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public NetworkPolicySpecBuilder(NetworkPolicySpec instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  NetworkPolicySpecFluent fluent;
  
  public NetworkPolicySpec build() {
    NetworkPolicySpec buildable = new NetworkPolicySpec(fluent.buildEgress(),fluent.buildIngress(),fluent.buildPodSelector(),fluent.getPolicyTypes());
    buildable.setAdditionalProperties(fluent.getAdditionalProperties());
    return buildable;
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy