Class PortMapping


  • public class PortMapping
    extends JsonRepresentable
    Represents the mapping between a port on a Pod and an external port
         {
             "port": 22,
             "protocol": "tcp",
             "advertise": false
         }
     
    • Constructor Summary

      Constructors 
      Constructor Description
      PortMapping​(java.lang.Integer port, java.lang.String protocol, java.lang.Boolean advertise)  
    • Constructor Detail

      • PortMapping

        @Contract(pure=true)
        public PortMapping​(java.lang.Integer port,
                           java.lang.String protocol,
                           java.lang.Boolean advertise)
        Parameters:
        port - the port the container uses
        protocol - the protocol the port is on
        advertise - should non admins be told about the port
    • Method Detail

      • getPort

        public java.lang.Integer getPort()
      • getProtocol

        public java.lang.String getProtocol()
      • isAdvertise

        public java.lang.Boolean isAdvertise()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object