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 boolean
equals(java.lang.Object o)
boolean
getAdvertise()
java.lang.String
getInternalPort()
java.lang.String
getIp()
java.lang.String
getPort()
int
hashCode()
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-