Package uk.co.ractf.polaris.api.instance
Class InstancePortBinding
- java.lang.Object
-
- uk.co.ractf.polaris.api.common.JsonRepresentable
-
- uk.co.ractf.polaris.api.instance.InstancePortBinding
-
public class InstancePortBinding extends JsonRepresentable
The ports available on an instance{ "port": "65224/tcp", "ip": "127.0.0.1", "advertise": true }
-
-
Constructor Summary
Constructors Constructor Description InstancePortBinding(java.lang.String port, java.lang.String internalPort, java.lang.String ip, boolean advertise)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)booleangetAdvertise()java.lang.StringgetInternalPort()java.lang.StringgetIp()java.lang.StringgetPort()inthashCode()-
Methods inherited from class uk.co.ractf.polaris.api.common.JsonRepresentable
parse, toJsonString
-
-
-
-
Constructor Detail
-
InstancePortBinding
@Contract(pure=true) public InstancePortBinding(java.lang.String port, java.lang.String internalPort, java.lang.String ip, boolean advertise)- Parameters:
port- the portspec ie "1234/tcp"internalPort- the internal portip- the ip its bound toadvertise- should regular users be shown this port?
-
-
Method Detail
-
getPort
public java.lang.String getPort()
-
getIp
public java.lang.String getIp()
-
getAdvertise
public boolean getAdvertise()
-
getInternalPort
public java.lang.String getInternalPort()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-