Package uk.co.ractf.polaris.api.pod
Class PortMapping
- java.lang.Object
-
- uk.co.ractf.polaris.api.common.JsonRepresentable
-
- uk.co.ractf.polaris.api.pod.PortMapping
-
public class PortMapping extends JsonRepresentable
Represents the mapping between a port on aPod
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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.Integer
getPort()
java.lang.String
getProtocol()
int
hashCode()
java.lang.Boolean
isAdvertise()
-
Methods inherited from class uk.co.ractf.polaris.api.common.JsonRepresentable
parse, toJsonString
-
-
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-