Class NetworkPolicyPort

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

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class NetworkPolicyPort
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<NetworkPolicyPortBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    NetworkPolicyPort describes a port to allow traffic on
    See Also:
    Serialized Form
    • Constructor Detail

      • NetworkPolicyPort

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

        public NetworkPolicyPort​(Integer endPort,
                                 io.fabric8.kubernetes.api.model.IntOrString port,
                                 String protocol)
    • 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 io.fabric8.kubernetes.api.model.IntOrString getPort()
        NetworkPolicyPort describes a port to allow traffic on
      • setPort

        public void setPort​(io.fabric8.kubernetes.api.model.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)