Class EgressNetworkPolicyPeer

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<EgressNetworkPolicyPeerBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class EgressNetworkPolicyPeer
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<EgressNetworkPolicyPeerBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    EgressNetworkPolicyPeer specifies a target to apply egress network policy to
    See Also:
    Serialized Form
    • Constructor Detail

      • EgressNetworkPolicyPeer

        public EgressNetworkPolicyPeer()
        No args constructor for use in serialization
      • EgressNetworkPolicyPeer

        public EgressNetworkPolicyPeer​(String cidrSelector,
                                       String dnsName)
    • Method Detail

      • getCidrSelector

        public String getCidrSelector()
        cidrSelector is the CIDR range to allow/deny traffic to. If this is set, dnsName must be unset Ideally we would have liked to use the cidr openapi format for this property. But openshift-sdn only supports v4 while specifying the cidr format allows both v4 and v6 cidrs We are therefore using a regex pattern to validate instead.
      • setCidrSelector

        public void setCidrSelector​(String cidrSelector)
        cidrSelector is the CIDR range to allow/deny traffic to. If this is set, dnsName must be unset Ideally we would have liked to use the cidr openapi format for this property. But openshift-sdn only supports v4 while specifying the cidr format allows both v4 and v6 cidrs We are therefore using a regex pattern to validate instead.
      • getDnsName

        public String getDnsName()
        dnsName is the domain name to allow/deny traffic to. If this is set, cidrSelector must be unset
      • setDnsName

        public void setDnsName​(String dnsName)
        dnsName is the domain name to allow/deny traffic to. If this is set, cidrSelector must be unset
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)