Class NetworkPolicyPort

    • Constructor Detail

      • NetworkPolicyPort

        public NetworkPolicyPort()
        No args constructor for use in serialization
    • Method Detail

      • getEndPort

        public Integer getEndPort()
        endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.
      • setEndPort

        public void setEndPort​(Integer endPort)
        endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.
      • getPort

        public IntOrString getPort()
        NetworkPolicyPort describes a port to allow traffic on
      • setPort

        public void setPort​(IntOrString port)
        NetworkPolicyPort describes a port to allow traffic on
      • getProtocol

        public String getProtocol()
        protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.
      • setProtocol

        public void setProtocol​(String protocol)
        protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.
      • getAdditionalProperties

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

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

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