Class InstanceResponse
- java.lang.Object
-
- uk.co.ractf.polaris.api.common.JsonRepresentable
-
- uk.co.ractf.polaris.api.instanceallocation.InstanceResponse
-
public class InstanceResponse extends JsonRepresentable
The reponse to anInstanceRequest
, contains the host ip and anInstance
object{ "ip": "8.8.8.8", "instance": { "id": "39b8db8f-c071-4aeb-aee3-147c4219688b", "deployment": "exampleDeployment1", "challenge": "hello-world", "host": "embedded" } }
-
-
Constructor Summary
Constructors Constructor Description InstanceResponse(java.lang.String ip, Instance instance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Instance
getInstance()
java.lang.String
getIp()
int
hashCode()
-
Methods inherited from class uk.co.ractf.polaris.api.common.JsonRepresentable
parse, toJsonString
-
-
-
-
Constructor Detail
-
InstanceResponse
@Contract(pure=true) public InstanceResponse(java.lang.String ip, Instance instance)
- Parameters:
ip
- the ip the instance is oninstance
- the instance details
-
-
Method Detail
-
getIp
public java.lang.String getIp()
-
getInstance
public Instance getInstance()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-