Class IoK8sApiNetworkingV1NetworkPolicyPort


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]")
    public class IoK8sApiNetworkingV1NetworkPolicyPort
    extends Object
    NetworkPolicyPort describes a port to allow traffic on
    • Constructor Detail

      • IoK8sApiNetworkingV1NetworkPolicyPort

        public IoK8sApiNetworkingV1NetworkPolicyPort()
    • Method Detail

      • getPort

        @Nullable
        public String getPort()
        IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.
        Returns:
        port
      • setPort

        public void setPort​(String port)
      • getProtocol

        @Nullable
        public String getProtocol()
        The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.
        Returns:
        protocol
      • setProtocol

        public void setProtocol​(String protocol)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object