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

io.fabric8.kubernetes.api.model.extensions.NetworkPolicyPeerBuilder 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 NetworkPolicyPeerBuilder extends NetworkPolicyPeerFluent implements VisitableBuilder{
  public NetworkPolicyPeerBuilder() {
    this(new NetworkPolicyPeer());
  }
  
  public NetworkPolicyPeerBuilder(NetworkPolicyPeerFluent fluent) {
    this(fluent, new NetworkPolicyPeer());
  }
  
  public NetworkPolicyPeerBuilder(NetworkPolicyPeerFluent fluent,NetworkPolicyPeer instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public NetworkPolicyPeerBuilder(NetworkPolicyPeer instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  NetworkPolicyPeerFluent fluent;
  
  public NetworkPolicyPeer build() {
    NetworkPolicyPeer buildable = new NetworkPolicyPeer(fluent.buildIpBlock(),fluent.buildNamespaceSelector(),fluent.buildPodSelector());
    buildable.setAdditionalProperties(fluent.getAdditionalProperties());
    return buildable;
  }
  

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy