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 aPodand 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 booleanequals(java.lang.Object o)java.lang.IntegergetPort()java.lang.StringgetProtocol()inthashCode()java.lang.BooleanisAdvertise()-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-